doc: update tree switchIcon props type description (#5485)

Co-authored-by: xzp <xingzepeng@geo-compass.com>
pull/5502/head
Roubaozi 3 years ago committed by GitHub
parent 7a050e2498
commit 32a145a79f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,7 +35,7 @@ Almost anything can be represented in a tree structure. Examples include directo
| selectedKeys(v-model) | (Controlled) Specifies the keys of the selected treeNodes | string\[] \| number\[] | - | |
| 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 | |
| showLine | Shows a connecting line | boolean \| {showLeafIcon: boolean}(3.0+) | false | |
| switcherIcon | customize collapse/expand icon of tree node | slot | - | |
| switcherIcon | customize collapse/expand icon of tree node | v-slot:switcherIcon="{active, checked, expanded, loading, selected, halfChecked, title, key, children, dataRef, data, defaultIcon, switcherCls}" | - | |
| title | custom title | slot | | 2.0.0 |
| treeData | treeNode of tree, please use `treeNodes` before v1.1.4 | [TreeNode\[\]](#TreeNode) | - | |
| virtual | Disable virtual scroll when set to false | boolean | true | 3.0 |

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

Loading…
Cancel
Save