:row-class-name="tableRowClassName"
tableRowClassName({ row, rowIndex }) {
row.index = rowIndex;
if (rowIndex % 2 == 1) {
return "heighlight-row";
}
return "";
},
场景:需要通过表格的索引值给echarts的图例
:row-class-name="tableRowClassName"
tableRowClassName({ row, rowIndex }) {
row.index = rowIndex;
if (rowIndex % 2 == 1) {
return "heighlight-row";
}
return "";
},
场景:需要通过表格的索引值给echarts的图例