diff --git a/components/tree/index.en-US.md b/components/tree/index.en-US.md index b20b65f12..c29368f89 100644 --- a/components/tree/index.en-US.md +++ b/components/tree/index.en-US.md @@ -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 | diff --git a/components/tree/index.zh-CN.md b/components/tree/index.zh-CN.md index 48bced1b2..984f6e16d 100644 --- a/components/tree/index.zh-CN.md +++ b/components/tree/index.zh-CN.md @@ -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 | |