feat: 生产 shape

This commit is contained in:
2025-08-08 17:32:39 +08:00
parent 738358ab76
commit 64deb9f3be
16 changed files with 1219 additions and 160 deletions
@@ -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 });
},
},
});