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>`
}

 

相关文章:

  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2021-11-30
  • 2021-06-17
  • 2021-04-18
  • 2022-12-23
  • 2021-04-11
猜你喜欢
  • 2021-12-21
  • 2021-07-01
  • 2021-09-04
  • 2022-12-23
  • 2022-01-01
  • 2021-12-09
  • 2021-06-30
相关资源
相似解决方案