项目是:vue-li+element-ui+axios+qs+vue-router框架

当前样式表现为:

element table动态添加列样式

 如果要将状态涂上不同的背景颜色来更明显的区分不同状态,该怎么实现

element table动态添加列样式

 

显示思路:

1.添加属性cell-style,并起名cellStyle,然后再methods添加cellStyle的实现代码。

注意:columnIndex是指向该行的对应列

element table动态添加列样式

 

element table动态添加列样式

 

原文链接:https://blog.csdn.net/qq_32741973/article/details/84447904

 

相关文章:

  • 2021-12-16
  • 2022-02-21
  • 2021-11-10
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案