created() { this.tableData = this.tableList[0]; }, mounted() {}, methods: { handleSelectionChange(val) { this.multipleSelection[this.radio1] = val; }, selectChange(e) { this.radio1 = e; this.tableData = this.tableList[e - 1]; setTimeout(this.toggls,100,this.multipleSelection[e]) }, toggls(row){ if(row && row.length!=0){ row.forEach(element => { this.$refs.multipleTable.toggleRowSelection(element,true); }); } }
原文:https://www.cnblogs.com/linliu/p/14744045.html