1.0.5 • Published 3 years ago
vue-online-icon v1.0.5
vue-online-icon
安装
yarn add vue-online-icon 或者 npm install vue-online-icon
使用
import Vue from 'vue';
import Icon from 'vue-online-icon';
Icon.registScript('//at.alicdn.com/t/font_11000000_aaaaddddddd.js');
Icon.registAnimation('icon-animation--');
Vue.use(Icon);
demo
<template>
<Icon name="aaa" />
</template>
属性
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
name | 图标名称 | string | - | — |
prefix | 图标前缀 | string | - | — |
animation | 动画名称 | string | — | - |
width | 宽 | string | — | - |
height | 高 | string | — | - |
color | 颜色 | string | — | - |
opacity | 透明度 | number | — | - |