feat: 完成文字涂色卡功能
This commit is contained in:
@@ -27,7 +27,6 @@ Component({
|
||||
},
|
||||
lifetimes: {
|
||||
ready() {
|
||||
console.log('selectedWords', this.data.selectedWords);
|
||||
},
|
||||
},
|
||||
/**
|
||||
@@ -38,6 +37,12 @@ Component({
|
||||
this.triggerEvent('onClose');
|
||||
},
|
||||
|
||||
onClear() {
|
||||
this.setData({
|
||||
selectedWords: [],
|
||||
});
|
||||
},
|
||||
|
||||
onChange() {
|
||||
this.triggerEvent('onChange', { selectedWords: this.data.selectedWords });
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user