Browse Source

docs(Tree): update docs (#42989)

* docs: update docs

* docs: update docs

* docs: update docs
pull/42998/head
蘑菇 1 year ago
committed by GitHub
parent
commit
478a2a9086
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/tree/index.en-US.md
  2. 2
      components/tree/index.zh-CN.md

2
components/tree/index.en-US.md

@ -61,7 +61,7 @@ Almost anything can be represented in a tree structure. Examples include directo
| rootClassName | ClassName on the root element | string | - | 4.20.0 |
| rootStyle | Style on the root element | CSSProperties | - | 4.20.0 |
| selectable | Whether can be selected | boolean | true | |
| selectedKeys | (Controlled) Specifies the keys of the selected treeNodes | string\[] | - | |
| selectedKeys | (Controlled) Specifies the keys of the selected treeNodes, multiple selection needs to set `multiple` to true | string\[] | - | |
| 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 \| ReactNode \| ((props: AntTreeNodeProps) => ReactNode)} | false | |
| switcherIcon | Customize collapse/expand icon of tree node | ReactNode \| ((props: AntTreeNodeProps) => ReactNode) | - | renderProps: 4.20.0 |

2
components/tree/index.zh-CN.md

@ -63,7 +63,7 @@ demo:
| rootClassName | 添加在 Tree 最外层的 className | string | - | 4.20.0 |
| rootStyle | 添加在 Tree 最外层的 style | CSSProperties | - | 4.20.0 |
| selectable | 是否可选中 | boolean | true | |
| selectedKeys | (受控)设置选中的树节点 | string\[] | - | |
| selectedKeys | (受控)设置选中的树节点,多选需设置 `multiple` 为 true | string\[] | - | |
| showIcon | 是否展示 TreeNode title 前的图标,没有默认样式,如设置为 true,需要自行定义图标相关样式 | boolean | false | |
| showLine | 是否展示连接线 | boolean \| {showLeafIcon: boolean \| ReactNode \| ((props: AntTreeNodeProps) => ReactNode)} | false | |
| switcherIcon | 自定义树节点的展开/折叠图标 | ReactNode \| ((props: AntTreeNodeProps) => ReactNode) | - | renderProps: 4.20.0 |

Loading…
Cancel
Save