-
Notifications
You must be signed in to change notification settings - Fork 41
feat(chat): support multiple conversation #623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
zwight
wants to merge
6
commits into
DTStack:master
Choose a base branch
from
zwight:feat/chat_conversations
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 tasks
LuckyFBB
reviewed
Nov 14, 2025
src/chat/conversations/index.tsx
Outdated
|
|
||
| export interface IConversationsProps extends React.HTMLAttributes<HTMLUListElement> { | ||
| conversations: ConversationInfo[]; | ||
| activeKey?: ConversationInfo['id']; |
Collaborator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
设置了 activeKey 的时候,一般表示为受控吧,得暴露回调函数吧
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onItemClick就是设置的回调方法
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
变更类型
请选择以下选项以描述 PR 的类型:
相关问题
变更内容
https://zwight.github.io/dt-react-component/components/chat?tab=conversations
新增
Conversations组件Conversations管理和显示具有分组功能的对话列表的组件GroupTitle用于显示组标题的组件Conversations.Item用于渲染对话的组件useGroupable,以方便对对话数据进行高效的分组和排序dropdown参数,为对话项目添加了下拉菜单,可执行更多操作groupable参数,用于控制是否分组,以及自定义分组的排序和标签渲染header参数,为对话列表顶部添加可拓展区,一般用于新增对话按钮操作Conversations组件Chat.Button组件修改linearGradient的x和y参数,用百分比替换掉固定值,适用更多场景Chat.Input组件参数调整Input的autoSize参数调整到{...rest}之前,便于使用的时候覆盖默认参数Markdown组件ReactMarkdown新增table的自定义,用于添加table的className以及添加table的样式useChat_updatePrompt接受的data参数类型拓展,初始化的时候可以重定义Prompt的类型,但是在update的时候接收的还是默认类型,拓展成初始化时自定义的类型其他
Conversations单测详细描述
对应 Previewer