先说需求:实时记录当前选中的分页中的列表,分页保存数据,然后在用选中的数据进行某些操作;PS:左下角的数字为记录的当前选中的列表的和
直接上可用的代码,前提已配置好各种环境
HTML部分
<!--table组件需要使用ref=table-->
<template>
<div>
<el data=tableData ref=table xss=removed selection-change=handleSelectionChange>
<el-table-column type=selection width=55