思路:利用el-table自带方法selection-change(当选择项发生变化时触发该事件)
关键代码:
this.$refs.serialnoTable.clearSelection() this.$refs.serialnoTable.toggleRowSelection(val.pop())
element表格多选改为单选
最新推荐文章于 2024-07-23 11:14:55 发布
思路:利用el-table自带方法selection-change(当选择项发生变化时触发该事件)
关键代码:
this.$refs.serialnoTable.clearSelection() this.$refs.serialnoTable.toggleRowSelection(val.pop())