单选的反选

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

View File

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