feat: 图形页开发
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
Component({
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
key: {
|
||||
type: Number,
|
||||
value: 0,
|
||||
},
|
||||
img: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
name: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
color: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
},
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
onDelete() {
|
||||
const { key } = this.data;
|
||||
this.triggerEvent('onDelete', { key });
|
||||
},
|
||||
onColorTap() {
|
||||
const { key, color } = this.data;
|
||||
this.triggerEvent('onColorTap', { key, color });
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user