elementui table 翻页后记忆之前勾选

在el-table标签上添加 :row-key=“id” 然后再 type = "selection" 这个标签上添加 :reserve-selection = "true" 这样表格的记忆功能就Ok啦

<el-table :row-key="id">
    <el-table-column type="selection" :reserve-selection="true"> </el-table-column>
</el-table>

 

转自于:https://www.cnblogs.com/tlfe/p/12118150.html

posted @ 2020-01-02 17:16  本溢  阅读(1062)  评论(0)    收藏  举报