elementUi table组件 setCurrentRow()方法,默认选中某一行显示高亮

3,497 阅读1分钟

给table表格设置高亮属性 highlight-current-row,监听表格变化,通过setCurrentRow()方法实现默认选中某一行。

1630985431(1).jpg

image.png