feat: 添加自定义iconfont

This commit is contained in:
2025-06-04 17:45:32 +08:00
parent 82c55fece3
commit a12107da40
21 changed files with 3463 additions and 52 deletions
+22 -18
View File
@@ -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: {},
});