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

3.0.0引入iconfont不生效 #1133

Open
webxiaonew opened this issue Mar 9, 2021 · 6 comments
Open

3.0.0引入iconfont不生效 #1133

webxiaonew opened this issue Mar 9, 2021 · 6 comments
Labels
question Further information is requested

Comments

@webxiaonew
Copy link

Question (问题描述)
3.0.0引入iconfont不生效

Describe the solution you'd like (你期待的是什么?)
生效
企业微信截图_16152532058073
企业微信截图_16152532354716

Additional context(附加信息)
Add any other context or screenshots about the feature request here.

@webxiaonew webxiaonew added the question Further information is requested label Mar 9, 2021
@webxiaonew
Copy link
Author

已解决
企业微信截图_16152603908136
企业微信截图_16152604057844
Uploading 企业微信截图_16152604142952.png…

@gaolongge
Copy link

我引入的iconfont也不生效。你这中引入方式,不算引入iconfont的Symbol方式啊,你这是直接引入的svg资源啊。

@webxiaonew
Copy link
Author

嗯嗯,找到解决办法了吗,网上都是2.0版本的,3.0的找不到。。

@gaolongge
Copy link

方案一:参考:https://www.jianshu.com/p/bd3b7110868e;
方案二:
1、在node_modules包里面,@ant-design-vue/pro-layout/es/components/RouteMenu/BaseMenu.js中,加入
image
image
这两种都可以,但是还是没有直接在配置iconfontUrl,直接引用icon方便。

@webxiaonew
Copy link
Author

ok.简书的那个我之前看过,方案2在源码里添加代码的操作很6,谢谢老哥!

@EricGSX
Copy link

EricGSX commented Nov 24, 2021

nice

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

No branches or pull requests

3 participants