feat: 完成绘制汉字基础功能

This commit is contained in:
R524809
2025-10-17 17:48:34 +08:00
parent 7ac81eb961
commit 2734b9de9e
18 changed files with 16428 additions and 299 deletions
@@ -18,6 +18,10 @@ Component({
type: String,
value: '',
},
disabledColor: {
type: Boolean,
value: false,
},
},
/**
* 组件的初始数据
@@ -27,7 +31,7 @@ Component({
color: '',
},
lifetimes: {
attached() {},
attached() { },
},
/**
* 组件的方法列表
@@ -1,5 +1,6 @@
<view class="word-card">
<view
wx:if="{{!disabledColor}}"
class="color-box"
style="background-color: {{color}};"
bindtap="onColorTap"></view>
@@ -30,12 +30,12 @@ Component({
ready() {
},
},
observers: {
/* observers: {
cardList(newVal: CardList) {
const selectedWords = newVal.map((item) => item.word);
this.setData({ selectedWords });
},
},
}, */
/**
* 组件的方法列表
*/