<base-table v-loading="table.loading" :data="table.data" :empty-text="table.empty"
@current-change="handleSelectionChange">
<el-table-column width="55" >
<template #default="{row}">
<el-radio v-model="currentRow" :label="row"> </el-radio>
</template>
</el-table-column>
<el-table-column label="序号" type="index" width="55" />
<el-table-column label="事项编码" prop="matterCode" show-overflow-tooltip/>
<el-table-column label="事项名称" prop="matterName" show-overflow-tooltip/>
<template #noOperate></template>
</base-table>
// 单选框的绑定值要定义一个空对象
const multipleSelection = ref([]);
const currentRow = ref({});
const handleSelectionChange = (val) => {
multipleSelection.value = [val]; // 获取当前选中的值
currentRow.value = val; // 点击行,让对应的单选选中的值和表格的选中值保持一致
}