el-table设置多选框selection选中切换分页之后能够保留之前选中列
1、在el-table里面设置row-key="id"
2、在type="selection"对应el-table-column里面设置reserve-selction,如下设置
取消全部勾选:this.$refs["multipleTable"].clearSelection();
取消单行勾选:this.$refs.multipleTable.toggleRowSelection(row...
原创
2020-01-14 17:04:29 ·
4835 阅读 ·
0 评论