问题:使用el-table的row-class-name属性设置行的样式时,只有行索引值为偶数的行生效

原因:为表格设置了 stripe 斑马纹属性

解决:删除 stripe 属性即可

 

相关文章: