批量选择table 的行数

element table 批量获取选择的行的数据(selection 勾选框)

代码实现:

在<el-table >添加属性 ref = "multipleTable " ,

在<el-table-colum> 添加type属性 type=" selection "

 

再通过一下代码就能获取已选择的行的数据;

this.$refs.multipleTable.selection

这里的 multipleTable 是上面ref 的值;

element table 批量获取选择的行的数据(selection 勾选框)

element table 批量获取选择的行的数据(selection 勾选框)

 

 

 

 

 

相关文章:

  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
猜你喜欢
  • 2021-08-24
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
相关资源
相似解决方案