Skip to content

Commit 32a145a

Browse files
xzp-gitxzp
andauthored
doc: update tree switchIcon props type description (#5485)
Co-authored-by: xzp <[email protected]>
1 parent 7a050e2 commit 32a145a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/tree/index.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Almost anything can be represented in a tree structure. Examples include directo
3535
| selectedKeys(v-model) | (Controlled) Specifies the keys of the selected treeNodes | string\[] \| number\[] | - | |
3636
| showIcon | Shows the icon before a TreeNode's title. There is no default style; you must set a custom style for it if set to `true` | boolean | false | |
3737
| showLine | Shows a connecting line | boolean \| {showLeafIcon: boolean}(3.0+) | false | |
38-
| switcherIcon | customize collapse/expand icon of tree node | slot | - | |
38+
| switcherIcon | customize collapse/expand icon of tree node | v-slot:switcherIcon="{active, checked, expanded, loading, selected, halfChecked, title, key, children, dataRef, data, defaultIcon, switcherCls}" | - | |
3939
| title | custom title | slot | | 2.0.0 |
4040
| treeData | treeNode of tree, please use `treeNodes` before v1.1.4 | [TreeNode\[\]](#TreeNode) | - | |
4141
| virtual | Disable virtual scroll when set to false | boolean | true | 3.0 |

components/tree/index.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/Xh-oWqg9k/Tree.svg
3636
| selectedKeys(v-model) | (受控)设置选中的树节点 | string\[] \| number\[] | - | | |
3737
| showIcon | 是否展示 TreeNode title 前的图标,没有默认样式,如设置为 true,需要自行定义图标相关样式 | boolean | false | | |
3838
| showLine | 是否展示连接线 | boolean \| {showLeafIcon: boolean}(3.0+) | false | | |
39-
| switcherIcon | 自定义树节点的展开/折叠图标 | slot | - | | |
39+
| switcherIcon | 自定义树节点的展开/折叠图标 | v-slot:switcherIcon="{active, checked, expanded, loading, selected, halfChecked, title, key, children, dataRef, data, defaultIcon, switcherCls}" | - | | |
4040
| title | 自定义标题 | slot | | 2.0.0 | |
4141
| treeData | treeNodes 数据,如果设置则不需要手动构造 TreeNode 节点(key 在整个树范围内唯一) | [TreeNode\[\]](#TreeNode) | -- | | |
4242
| virtual | 设置 false 时关闭虚拟滚动 | boolean | true | 3.0 | |

0 commit comments

Comments
 (0)