代码:

<el-table-column prop="status" label="状态">
                <template scope="scope">
                    <span v-if="scope.row.status=== 0">显示</span>
                    <span v-else-if="scope.row.status=== 1">隐藏</span>
                    <span v-else style="color: red">删除</span>
                </template>
</el-table-column>


效果如图:

element指定表格某个单元格颜色element指定表格某个单元格颜色element指定表格某个单元格颜色

相关文章:

  • 2022-12-23
  • 2021-04-03
  • 2021-12-26
  • 2021-12-22
  • 2021-08-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案