Skip to content
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

icons-react 的 createFromIconfontCN 加载远程字体图标文件缺少异步逻辑处理 #645

Open
linmingdao opened this issue May 15, 2024 · 0 comments

Comments

@linmingdao
Copy link

🔥 问题原因:

https://github.com/ant-design/ant-design-icons/blob/master/packages/icons-react/src/components/IconFont.tsx#L62

image

🔥 导致业务图标加载失败:

image

🔥 用户需要手动处理异步加载字体文件方能正常显示(繁琐):

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant