监听器
watch: {
//dataList2为监听的数据
dataList2: {
// handler为任意函数名
handler(val) {
for (let i = 0; i < val.length; i++) {
if (val[i].checked) {
this.isActivation = true;
return;
}
}
this.isActivation = false;
},
//对dataList2进行数据拷贝
deep: true,
},
},