feat: 生产 shape
This commit is contained in:
@@ -3,7 +3,7 @@ Component({
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
key: {
|
||||
index: {
|
||||
type: Number,
|
||||
value: 0,
|
||||
},
|
||||
@@ -73,17 +73,18 @@ Component({
|
||||
});
|
||||
},
|
||||
onDelete() {
|
||||
const { key } = this.data;
|
||||
this.triggerEvent('onDelete', { key });
|
||||
const { index } = this.data;
|
||||
this.triggerEvent('onDelete', { index });
|
||||
},
|
||||
onColorTap() {
|
||||
const { key, fillColor } = this.data;
|
||||
this.triggerEvent('onColorTap', { key, fillColor });
|
||||
const { index, fillColor } = this.data;
|
||||
console.log('onColorTap', index, fillColor);
|
||||
this.triggerEvent('onColorTap', { index, fillColor });
|
||||
},
|
||||
|
||||
onShapeTap() {
|
||||
const { key } = this.data;
|
||||
this.triggerEvent('onShapeTap', { key });
|
||||
const { index } = this.data;
|
||||
this.triggerEvent('onShapeTap', { index });
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user