el-table 有个一 :row-class-name="getRowClass" 属性可以设置行样式,可以试试,参考.
你试试这个 https://segmentfault.com/a/1190000018516736?utm_source=tag-newest