element ui table 获取选中的行索引的方法,直接获取的好像没有,我的解决方案是通过:
row-class-name
    
   
RowClassName({ row, rowIndex }) {	//行元素,行索引
  	row.index = rowIndex;
}
 
版权声明:本文为sinat_42338962原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
 
element ui table 获取选中的行索引的方法,直接获取的好像没有,我的解决方案是通过:
row-class-name
    
   
RowClassName({ row, rowIndex }) {	//行元素,行索引
  	row.index = rowIndex;
}