This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git
The following commit(s) were added to refs/heads/master by this push:
new 09bbf84 fix(tree): add `tree.data.collapsed` (#229)
09bbf84 is described below
commit 09bbf84cca8329c2605dc511490b436ffa3759c7
Author: susiwen8 <[email protected]>
AuthorDate: Thu Mar 10 16:37:32 2022 +0800
fix(tree): add `tree.data.collapsed` (#229)
* fix(tree): add `tree.data.collapsed`
* Update tree.md
* Update tree.md
---
en/option/series/tree.md | 6 +++++-
zh/option/series/tree.md | 4 ++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/en/option/series/tree.md b/en/option/series/tree.md
index e7fe5f5..03f412d 100644
--- a/en/option/series/tree.md
+++ b/en/option/series/tree.md
@@ -278,7 +278,7 @@ Select state of leaves nodes.
itemStyle: {
...
},
- collapsed: null, // If set as `true`, the node is collpased in the
initialization.
+ collapsed: null, // If set as `true`, the node is collapsed in the
initialization.
children: [...] // leaf nodes do not have children, can not write.
},
...
@@ -294,6 +294,10 @@ The name of the tree node, used to identify each node.
The value of the node, displayed in the tooltip.
+### collapsed(boolean)
+
+Whether to collapse node at initialization.
+
### itemStyle(Object)
The style of the node.
diff --git a/zh/option/series/tree.md b/zh/option/series/tree.md
index 6817bec..b5d8105 100644
--- a/zh/option/series/tree.md
+++ b/zh/option/series/tree.md
@@ -336,6 +336,10 @@ const option = {
节点的值,在 tooltip 中显示。
+### collapsed(boolean)
+
+节点初始化是否折叠。
+
### itemStyle(Object)
该节点的样式。
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]