Tencent / Tencent/tdesign-react
[Message] message.config是否可以根据theme全局配置icon
Open
Nobody has claimed this yet.
💪🏻 enhancement
- Dominant language
- TypeScript
- Stars
- 965
- Forks
- 373
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
这个功能解决了什么问题
支持全局根据messageplugin的theme修改配置icon
你建议的方案是什么
icon新增回调函数类型,传回theme
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 at the message.config entry point and the message plugin's theme handling described in the issue. Trace the icon configuration path, then verify that a globally configured icon callback receives the active theme and changes the rendered message icon.
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
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100