1.~版本
handleCheckAllChange(event) {
this.checkedCities = event.target.checked ? cityOptions : [];
this.isIndeterminate = false;
},
2.0版本的是boolean值
handleCheckAllChange(val) {
this.checkedCities = val ? cityOptions : [];
this.isIndeterminate = false;
}
¶element-ui 递归出来的el-checkbox实现全选和反选
最新推荐文章于 2024-05-21 21:57:08 发布