Echarts.js tree tree structure node unfold and fold state

the official website describes it as follows:

demo:


Aug.27,2021

I don't quite understand what you want to achieve. Is that what you want?

  

the official website reads:
Note: if you configure a custom image as the tag of a node, it is impossible to distinguish whether the current node has a folded subtree by filling colors. Currently, it is not supported. Uploading two images indicates that the node is folded and expanded, respectively. so, if you want to explicitly display the two states of a node, it is recommended that you use ECharts's regular tag types, such as' emptyCircle' , and so on.
at present, it is found that only the hollow state of symbol: 'emptyCircle' can expand and fold, expand to hollow, fold to solid, and have the same color

.
Menu