图标库是iconfont,这里面的图标够用了吧
一.新建项目

二.选择喜欢的图标,加入购物车,再添加到项目
三.生成代码

四.将链接粘贴到地址栏,将css内容复制到icon.css

五.在App.vue进行全局引用

六.在相应组件使用van-icon,iconfont类是必须要有的,不同的图标就是不同的percy-icon-xxxx

图标库是iconfont,这里面的图标够用了吧
本文标题:vant中van-icon使用自定义图标简单粗暴
本文链接:https://www.haomeiwen.com/subject/wevnkctx.html
网友评论