element ui table 获取选中的行索引的方法:如getRowIndex()方法

element ui table 获取选中的行索引的方法,直接获取的好像没有,我的解决方案是通过:

row-class-name

element ui table 获取选中的行索引的方法:如getRowIndex()方法_第1张图片

RowClassName({ row, rowIndex }) {	//行元素,行索引
  	row.index = rowIndex;
}

你可能感兴趣的:(vue,web,javascript)