使用场景:多选表格中,有5行处于选中状态。取消选中第3行数据
1.使用 第一个参数是第二行对象,第二个参数false表明选中状态为false
this.$refs.dataList.toggleRowSelection(this.dataList[2],false)
2.相反如果需要选中第二行数据,则toggleRowSelection方法有第一个参数即可
this.$refs.dataList.toggleRowSelection(this.dataList[2])
3如果是取消选中所有行 使用 clearSelection
this.$refs.dataList.clearSelection()