单选的反选

This commit is contained in:
朱菊兰 2022-12-26 18:40:51 +08:00
parent c37a6de593
commit 43c75e5d8f

View File

@ -1,6 +1,7 @@
<template>
<div class="baseTable">
<el-table
:ref="id"
:data="renderData"
v-bind="$attrs"
@current-change="currentChange"
@ -128,6 +129,11 @@ export default {
return []
}
},
id: {
type: String,
required: false,
default: ''
},
page: {
type: Number,
required: false,
@ -189,6 +195,11 @@ export default {
},
emitButtonClick() {
this.$emit('emitButtonClick')
},
setCurrent(name, index) {
let _this = this
let obj = _this.$refs[name].data[index]
_this.$refs[name].setCurrentRow(obj)
}
}
}