mirror of
https://github.com/1024-lab/smart-admin.git
synced 2026-06-17 11:14:24 +00:00
v2.0代码提交
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
<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>
|
||||
@@ -1,2 +0,0 @@
|
||||
import Icons from './icons.vue';
|
||||
export default Icons;
|
||||
Reference in New Issue
Block a user