首页 > 其他 > 详细

antdvue2.x 使用阿里iconfont自定义组件iconfont

时间:2021-08-29 19:08:24      阅读:37      评论:0      收藏:0      [点我收藏+]
var style = `.icon {
       width: 1em; height: 1em;
       vertical-align: -0.15em;
       fill: currentColor;
       overflow: hidden;
    }`
myutils.loadStyle(style);
var IconFont = {
    name: IconFont,
    props: [type],
    template: `<span><svg class="icon" aria-hidden="true"><use :xlink:href="‘#‘+type"></use></svg></span>`
}

 

antdvue2.x 使用阿里iconfont自定义组件iconfont

原文:https://www.cnblogs.com/Im-Victor/p/15200382.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!