转换数据显示不同CSS Share 1234567891011<el-table-column prop="state" label="状态" width="150" > <template scope="scope"> <div :class="{active:scope.row.state == '0'}"> <span>{{scope.row.state == '0'?'冻结':'正常'}}</span> </div> </template></el-table-column>