From a6e620c975a70dee250b5a342625a676a4145302 Mon Sep 17 00:00:00 2001 From: TangLL Date: Thu, 22 Sep 2022 11:38:17 +0800 Subject: [PATCH] docs: defaultExpandedAll is not exist, should be defaultExpandAll (#37689) Co-authored-by: nocodeempire --- components/tree/index.en-US.md | 4 ++-- components/tree/index.zh-CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/tree/index.en-US.md b/components/tree/index.en-US.md index 77aaab480e..8daabb5167 100644 --- a/components/tree/index.en-US.md +++ b/components/tree/index.en-US.md @@ -109,9 +109,9 @@ Before `3.4.0`: The number of treeNodes can be very large, but when `checkable=t File icon realize by using switcherIcon. You can overwrite the style to hide it: -### Why defaultExpandedAll not working on ajax data? +### Why defaultExpandAll not working on ajax data? -`default` prefix prop only works when inited. So `defaultExpandedAll` has already executed when ajax load data. You can control `expandedKeys` or render Tree when data loaded to realize expanded all. +`default` prefix prop only works when inited. So `defaultExpandAll` has already executed when ajax load data. You can control `expandedKeys` or render Tree when data loaded to realize expanded all. ### Virtual scroll limitation diff --git a/components/tree/index.zh-CN.md b/components/tree/index.zh-CN.md index cccc34db83..c813be306b 100644 --- a/components/tree/index.zh-CN.md +++ b/components/tree/index.zh-CN.md @@ -110,9 +110,9 @@ cover: https://gw.alipayobjects.com/zos/alicdn/Xh-oWqg9k/Tree.svg 文件图标通过 switcherIcon 来实现,如果不需要你可以覆盖对应的样式: -### defaultExpandedAll 在异步加载数据时为何不生效? +### defaultExpandAll 在异步加载数据时为何不生效? -`default` 前缀属性只有在初始化时生效,因而异步加载数据时 `defaultExpandedAll` 已经执行完成。你可以通过受控 `expandedKeys` 或者在数据加载完成后渲染 Tree 来实现全部展开。 +`default` 前缀属性只有在初始化时生效,因而异步加载数据时 `defaultExpandAll` 已经执行完成。你可以通过受控 `expandedKeys` 或者在数据加载完成后渲染 Tree 来实现全部展开。 ### 虚拟滚动的限制