feat: 完成绘制汉字基础功能
This commit is contained in:
@@ -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 });
|
||||
},
|
||||
},
|
||||
}, */
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user