<view class="list">
<checkbox-group @change="checkboxChange(1)">
<label>
<checkbox :checked="state" color="#FFCC33" style="transform:scale(0.7)" />字
</label>
</checkbox-group>
<checkbox-group @change="checkboxChange(2)">
<label>
<checkbox :checked="statee" color="#FFCC33" style="transform:scale(0.7)" />号
</label>
</checkbox-group>
</view>
data() {
return {
state:false,
statee:false
}
},
checkboxChange(i){
if(i ==1){
console.log(!this.state)
this.state = !this.state;
}else{
this.statee = !this.statee;
}
},