Home > front end >  Vue tree, a tree structure, according to the condition judgment to modify the font color for part of
Vue tree, a tree structure, according to the condition judgment to modify the font color for part of

Time:10-21



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 class

https://cn.vuejs.org/v2/guide/class-and-style.html
  • Related