This commit is contained in:
“zhuoda
2020-01-13 12:23:07 +08:00
parent ee6bd6782f
commit c9ef7d3b41
614 changed files with 266 additions and 372 deletions
@@ -0,0 +1,38 @@
<template>
<i :class="`iconfont icon-${type}`" :style="styles"></i>
</template>
<script>
export default {
name: 'Icons',
props: {
// 图标名
type: {
type: String,
required: true
},
// 图标颜色
color: {
type: String,
default: '#5c6b77'
},
// 图标尺寸
size: {
type: Number,
default: 16
}
},
computed: {
styles () {
return {
fontSize: `${this.size}px`,
color: this.color
};
}
}
};
</script>
<style>
</style>
@@ -0,0 +1,2 @@
import Icons from './icons.vue';
export default Icons;