This commit is contained in:
zhuoda
2022-11-05 22:38:44 +08:00
parent 20e308793a
commit 1f75c9614e
1848 changed files with 15509 additions and 130864 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;