1.el-table 中加入事件@selection-change="handleSelectionChange"
<el-table-column type="selection" width="55"></el-table-column>这样就是复选框了
handleSelectionChange(val) {
this.multipleSelection = val
},
this.multipleSelection是一个数组,然后对数组进行自己需要的操作
1.el-table 中加入事件@selection-change="handleSelectionChange"
<el-table-column type="selection" width="55"></el-table-column>这样就是复选框了
handleSelectionChange(val) {
this.multipleSelection = val
},
this.multipleSelection是一个数组,然后对数组进行自己需要的操作