Skip to content

Fix/md#4378

Open
chenweiliang6 wants to merge 4 commits into
Tencent:developfrom
chenweiliang6:fix/md
Open

Fix/md#4378
chenweiliang6 wants to merge 4 commits into
Tencent:developfrom
chenweiliang6:fix/md

Conversation

@chenweiliang6
Copy link
Copy Markdown

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

1、对于历史会话,后端是按照分页的形式返回的,并不是全量返回,此时需要发射组件内部scroll-view的scrolltoupper和scrolltolower事件来支持这个需求。
2、发送新消息时,列表需要滚动到底部,chat-list组件中有scrollToBottom方法,但在文档中没有列出来,我给补充上了。
3、chat-message关于自定义content、actionbar插槽的描述在文档中没有列出来,我也给补充上了。

📝 更新日志

@tdesign/uniapp-chat

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Mar 26, 2026

Open in StackBlitz

npm i https://pkg.pr.new/tdesign-miniprogram@4378
npm i https://pkg.pr.new/@tdesign/uniapp@4378
npm i https://pkg.pr.new/@tdesign/uniapp-chat@4378

commit: 0576d68

@tdesign-bot
Copy link
Copy Markdown
Collaborator

tdesign-bot commented Mar 26, 2026

TDesign Component Site Preview Open

Component Preview
tdesign-miniprogram 完成
@tdesign-miniprogram/chat 完成
tdesign-uniapp 完成
tdesign-uniapp-chat 完成

this.addFragment();
}
//向父组件发射该事件,用于满足开发者滚动分页加载的需求
this.$emit('handlerScrollToUpper')
Copy link
Copy Markdown
Collaborator

@zydemail zydemail May 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1、api规范使用scrollToUpper
2、原生小程序版本需要同步支持scrollToUpper
3、chat-list的events文档新增scrollToUpper说明

this.addFragment();
}
//向父组件发射该事件,用于满足开发者滚动分页加载的需求
this.$emit('handlerScrollToLower')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1、api规范使用scrollToLower
2、原生小程序版本需要同步支持scrollToLower
3、chat-list的events文档新增scrollToLower说明


名称 | 参数 | 返回值 | 描述
-- | --
scrollToBottom | - | - | 对话列表过长时,以及发送新消息时,需要将对话列表滚动到底部,支持对话列表重新滚动回底部的方法。
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scrollToBottom是组件实例方法

Copy link
Copy Markdown
Collaborator

@zydemail zydemail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1、api规范使用scrollToUpper
2、原生小程序版本需要同步支持scrollToUpper
3、chat-list的events文档新增scrollToUpper说明

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UniApp UniApp 系列

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants