feat: 添加自定义iconfont
This commit is contained in:
@@ -6,36 +6,40 @@ Component({
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
key: {
|
||||
type: Number,
|
||||
value: 0,
|
||||
},
|
||||
word: {
|
||||
type: {
|
||||
type: String,
|
||||
value: '',
|
||||
value: 'default', // default, green, white
|
||||
},
|
||||
color: {
|
||||
size: {
|
||||
type: String,
|
||||
value: '',
|
||||
value: 'normal', // large, normal, small, mini
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
value: '', // 图标名称
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
value: false, // 是否禁用
|
||||
},
|
||||
flat: {
|
||||
type: Boolean,
|
||||
value: false, // 是否扁平化
|
||||
},
|
||||
loading: {
|
||||
type: Boolean,
|
||||
value: false, // 是否加载中
|
||||
},
|
||||
},
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
word: '',
|
||||
color: '',
|
||||
},
|
||||
data: {},
|
||||
lifetimes: {
|
||||
attached() {},
|
||||
},
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
onDelete() {
|
||||
const { key, word } = this.data;
|
||||
this.triggerEvent('onDelete', { key, word });
|
||||
},
|
||||
},
|
||||
methods: {},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user