Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.9k views
in Technique[技术] by (71.8m points)

请问Ant design pro(react)如何自定义菜单图标【不使用iconfont】

之前修改菜单的icon都是在config.ts中对icon修改的,现在美工给了一组菜单图标,都是png格式的图片,无法像Ant design的图标或者iconfont那样使用,直接引入图片地址肯定是不行的。会变成下图的样子:

config.ts
image.png

效果:
image.png

请问这个该如何解决呢,就是用现有的png图片替换路由菜单中的icon


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...