使用了斑马纹border stripe就会失效
<el-table :data="logLists" ref="multipleTable"
@selection-change="handleSelectionChange"
:row-class-name="tableRowClassName"
style="width: 100%" border stripe>
正常代码
<el-table :data="logLists" ref="multipleTable"
@selection-change="handleSelectionChange"
:row-class-name="tableRowClassName"
style="width: 100%" >
<style>
.el-table .fail {
background: #FF0000;
}
</style>
tableRowClassName({row, rowIndex}) {
if (row.localstatus === 0 || row.transtatus===0) {
return 'fail';
}
return '';
},