el-table实现翻页选择和回看
html
<el-table
...
<!-- row-key的row.id是你的行唯一标识,一般用id,翻页选的关键 -->
:row-key="row => row.id"
<!-- selection-change选择后的回调函数 -->
@selection-change="selectedItemList = $event"
>
<el-table-column
...
<!-- 选择框 -->
type="selection"
<!-- 回显的关键 -->
reserve-selection
>
</el-table-column>
</el-table>
js
data(){
selectedItemList: [],
}