1.在<el-table/>中加入ref="elTable"
<el-table :data="Data" ref="elTable" />
2.在el-table中加入选框
<el-table-column type="selection"> el-table-column>
3.在方法里使用
const list = this.$refs.elTable.selection;console.log('list',list)
京公网安备 11010502049817号