Tencent / Tencent/tdesign-react

[Icon] 直接接受PUA代码和对应图标的font-family名指定外部图标

Open
#4,187 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.