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

请问如何把antd的图标放到本地? #327

Closed
wing2002li opened this issue Jun 3, 2017 · 4 comments
Closed

请问如何把antd的图标放到本地? #327

wing2002li opened this issue Jun 3, 2017 · 4 comments

Comments

@wing2002li
Copy link

wing2002li commented Jun 3, 2017

#270
1、在src/themes/default.less中添加了@icon-url: "/antd/iconfont";但是还请求的网络地址,请问还有什么注意
2、我在iconfont'上已经生成了新项目,如何下载以后和默认的antd图标合并在一起,补充,我是想把menu的icon改变到本地,并且menu的icon是自定义的图标,原有的antd自带的icon保留。。

@zuiidea
Copy link
Owner

zuiidea commented Jun 5, 2017

  • @icon-url :'"icon-url"',请注意引号,这种方式会覆盖的
  • 扩展请参照 关于Iconfont #270,请看项目中的为了扩展图标写的 Iconfont 组件

@wing2002li
Copy link
Author

wing2002li commented Jun 5, 2017

qq 20170605230612
我按照你的项目里面写的。 最后发现是antd版本的问题,我原来的是2.9,你的是2.10这个影响大吗,郁闷。

@zuiidea
Copy link
Owner

zuiidea commented Jun 6, 2017

https://ant.design/changelog-cn 2.9至2.10 你看一下这里有没有不兼容升级就可以了

@zuiidea zuiidea closed this as completed Jun 13, 2017
@haanyip
Copy link

haanyip commented Mar 6, 2019

发现一个粗暴的方法 把 node_modules/antd/lib/style/themes/default.less里面的@icon-url路径换掉后再打包 可以临时解决问题 不推荐 另有规范方法 https://github.com/builden/antd-iconfont

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

3 participants