可以通過scope.row.屬性名
和三目運算符給特殊的屬性值設定樣式
類似下面的效果
<el-table-column property="examine" label="審核情況" width="">
<template slot-scope="scope">
<div :class="scope.row.examine === '待審核' ? 'specailColor' : ''">{{scope.row.examine}}</div>
</template>
</el-table-column>
<el-table-column property="publish" label="公示情況" width="">
<template slot-scope="scope">
<div :class="scope.row.publish === '未公示' ? 'specailColor' : ''">{{scope.row.publish}}</div>
</template>
</el-table-column>