echarts type: 'tree' 树形结构点击展开收起, 如何拿到整棵树哪些节点是展开状态,哪些节点是收起状态

ovfsdjhp  于 2022-11-02  发布在  Echarts
关注(0)|答案(1)|浏览(505)

What problem does this feature solve?

期待点击展开收起的时候, 能拿到整棵树节点 , 哪些是展开和收起的状态。 便于动态获取树节点的最大高度

What does the proposed API look like?

展开树节点,每一层级会计算一个高度, 但是收起的时候,点击第二层级, 拿到的是点三层级的高度

ljsrvy3e

ljsrvy3e1#

@loufangjin-cpu It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

type: 'tree' tree structure click to expand and collapse, how to get the entire tree which nodes are in the expanded state and which nodes are in the collapsed state

BODY

What problem does this feature solve?

Looking forward to clicking on the expand and collapse, you can get the whole tree node, which are the states of expansion and collapse. Facilitates dynamic acquisition of the maximum height of tree nodes

What does the proposed API look like?

Expand the tree node, each level will calculate a height, but when you put it away, click on the second level, and you get the height of the third level

相关问题