|
[多端开发]
请问想要引入iconfont的图标库该怎么弄?是否支持?
[复制链接]
使用的是Symbol 引用方式,因为图标有部分是多色图标
但发现引入后报错,猜测是对他这种引入方式的svg标签 不识别?
可有什么办法? 不吝赐教![](static/image/smiley/default/loveliness.gif)
- <template name='icon-font'>
- <svg class="icon" aria-hidden="true">
- <use xlink:href="#icon-artist-add"></use>
- </svg>
- </template>
- <script>
- import '../res/iconfont/iconfont.js';
- export default {
- name: 'icon-font',
- props:{
- icon: String
- }
- }
- </script>
- <style>
- .icon {
- width: 1em;
- height: 1em;
- vertical-align: -0.15em;
- fill: currentColor;
- overflow: hidden;
- }
- </style>
复制代码
|
|