Tencent / Tencent/tdesign-react
tdesign-react/chat的 user 角色增加对话操作栏
Open
Nobody has claimed this yet.
💪🏻 enhancement
- Dominant language
- TypeScript
- Stars
- 965
- Forks
- 373
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
这个功能解决了什么问题
希望能够为 user 角色增加对话操作栏(以便于复制、修改用户消息等),目前分析看:
即使我们在 messageProps 中为 user 角色配置了 actions: ['copy', 'replay'],组件内部的 getChatActionBar 对非 AI 消息直接返回 false,actionbar 插槽保留为空(对应看到的 )
你建议的方案是什么
不限制 user 角色用户的对话操作栏
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Chat component's getChatActionBar logic and the messageProps handling for user messages. Check how the actionbar slot is populated when actions such as copy and replay are configured; done means user messages can render the configured conversation action bar instead of returning false for non-AI messages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100