Vue in according to the condition judgment, set the node of the font color, for example: szzjg2 anomalies, font color becomes green, the color of the other sites as the gray, don't change,
The style of the font color of the original node is as follows:
. El - tree {
font-size: 14px;
Color: # 606266;
}
How according to site conditions determine different status, different color
CodePudding user response:
Different site condition apply colours to a drawing classhttps://cn.vuejs.org/v2/guide/class-and-style.html