标签:selectall EDA ref undefined table multi false ble tip
@select-all="selectAll" ref="multipleTable" 在table里进行绑定 checkedKeys: false, 在data里进行声明 selectAll() { this.checkedKeys = !this.checkedKeys; this.splite(this.tableData, this.checkedKeys); }, /** * 处理数据 */ splite(data, flag) { data.forEach((row) => { this.$refs.multipleTable.toggleRowSelection(row, flag); if (row.children != undefined) { this.splite(row.children); } }); }, method里进行声明
标签:selectall EDA ref undefined table multi false ble tip
原文地址:https://www.cnblogs.com/hurenjie/p/14007558.html