el-table分页之后,选择中,翻页保留之前选中的数据
1,唯一标识row-key
<el-table
:data="leftDataList"
ref="multipleTable"
style="width: 100%; margin-bottom: 10px"
v-loading="leftLoading"
@selection-change="handleSelectId"
:row-key="
(row) => {
return row.customerId;
}
"
>
2 :reserve-selection="true"
<el-table-column
:reserve-selection="true"
type="selection"
width="55">
</el-table-column>