<el-table ref="table" stripe height="400" border :data="list" @selection-change="userSelectionChange">
userSelectionChange(val) {
if(this.limit == 1){
if (val.length > 1) {
this.$refs.table.clearSelection()
this.$refs.table.toggleRowSelection(val[val.length - 1])
}
this.multiple = [val[val.length - 1]]
}else{
this.multiple = val;
}
},
el-table单选,多选
于 2023-09-11 13:45:37 首次发布