element-ui table自定義斑馬條紋顏色

1.el-table 加 :row-class-name="xxxTableRowClassName" 2.methods 中加方法 xxxTableRowClassName({row, rowIndex}) { if (rowIndex%2==0) { return 'statistics-warning-row'; } else { return ''; }
相關文章
相關標籤/搜索