feat:完成自定义文字涂色卡

This commit is contained in:
2025-07-02 15:17:50 +08:00
parent 26af95b604
commit 8006695f65
19 changed files with 201 additions and 39 deletions
@@ -14,7 +14,7 @@ Component({
type: Number,
value: 0,
},
selectedWords: {
cardList: {
type: Array,
value: [],
},
@@ -24,11 +24,18 @@ Component({
*/
data: {
wordList: WORDS,
selectedWords: [] as string[],
},
lifetimes: {
ready() {
},
},
observers: {
cardList(newVal: CardList) {
const selectedWords = newVal.map((item) => item.word);
this.setData({ selectedWords });
},
},
/**
* 组件的方法列表
*/