在网上看到了解决办法,提到在style中去掉scoped,但我去掉了还是没有生效
tableRowClassName({ row }){
if(row.isExpire===0){
consolo.log(11112222)
return 'warningrow'
}
},
<style>
.el-table .waringrow{
color: red !important;
}
</style>
11112222都能输出,有没有大佬知道是什么问题。。。。
单词写错了吧,返回的是
warningrow
,而class写的是waringrow