Tencent / Tencent/tdesign-react
[Icon] 直接接受PUA代码和对应图标的font-family名指定外部图标
Open
Nobody has claimed this yet.
💪🏻 enhancement
- Dominant language
- TypeScript
- Stars
- 965
- Forks
- 373
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
这个功能解决了什么问题
此功能将更方便地引入已加载的图标字体的图标
你建议的方案是什么
新建ExtIcon组件,接收至少两个参数PUACode和FontFamily用于指定使用的图标字体和对应码位
通过框架的支持将有助于样式统一管理
p.s. 已在现有issue中搜索 is:issue icon pua没有找到对应内容,故创建新issue
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 reviewing the repository's existing icon components and their public APIs, then compare how styles and external font assets are currently handled. Define the proposed ExtIcon API around PUA code and font-family inputs, and verify that an externally loaded icon font renders consistently with the framework's styling conventions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100