toggleRowSelection 方法
vue el-table 设置selection选中状态
关键代码
multipleTableRef.value!.toggleRowSelection(item, true);
<el-table
:data="data"
:border="setBorder"
v-bind="$attrs"
row-key="id"
stripe
style="width: 100%"
v-loading="config.loading"
@selection-change="onSelectionChange"
header-row-class-name="headerClass"
ref="multipleTableRef"
>
</el-table>