element table动态添加列样式
项目是:vue-li+element-ui+axios+qs+vue-router框架
当前样式表现为:
如果要将状态涂上不同的背景颜色来更明显的区分不同状态,该怎么实现
显示思路:
1.添加属性cell-style,并起名cellStyle,然后再methods添加cellStyle的实现代码。
注意:columnIndex是指向该行的对应列
原文链接:https://blog.****.net/qq_32741973/article/details/84447904