mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-19 06:43:16 +08:00
docs: fix Tree prop autoExpandParent default value (#26426)
This commit is contained in:
parent
a6180008c5
commit
dd547aabfd
@ -17,7 +17,7 @@ Almost anything can be represented in a tree structure. Examples include directo
|
|||||||
|
|
||||||
| Property | Description | Type | Default | Version |
|
| Property | Description | Type | Default | Version |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- | --- |
|
||||||
| autoExpandParent | Whether to automatically expand a parent treeNode | boolean | true | |
|
| autoExpandParent | Whether to automatically expand a parent treeNode | boolean | false | |
|
||||||
| blockNode | Whether treeNode fill remaining horizontal space | boolean | false | |
|
| blockNode | Whether treeNode fill remaining horizontal space | boolean | false | |
|
||||||
| checkable | Add a Checkbox before the treeNodes | boolean | false | |
|
| checkable | Add a Checkbox before the treeNodes | boolean | false | |
|
||||||
| checkedKeys | (Controlled) Specifies the keys of the checked treeNodes (PS: When this specifies the key of a treeNode which is also a parent treeNode, all the children treeNodes of will be checked; and vice versa, when it specifies the key of a treeNode which is a child treeNode, its parent treeNode will also be checked. When `checkable` and `checkStrictly` is true, its object has `checked` and `halfChecked` property. Regardless of whether the child or parent treeNode is checked, they won't impact each other | string\[] \| {checked: string\[], halfChecked: string\[]} | \[] | |
|
| checkedKeys | (Controlled) Specifies the keys of the checked treeNodes (PS: When this specifies the key of a treeNode which is also a parent treeNode, all the children treeNodes of will be checked; and vice versa, when it specifies the key of a treeNode which is a child treeNode, its parent treeNode will also be checked. When `checkable` and `checkStrictly` is true, its object has `checked` and `halfChecked` property. Regardless of whether the child or parent treeNode is checked, they won't impact each other | string\[] \| {checked: string\[], halfChecked: string\[]} | \[] | |
|
||||||
|
@ -18,7 +18,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/Xh-oWqg9k/Tree.svg
|
|||||||
|
|
||||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- | --- |
|
||||||
| autoExpandParent | 是否自动展开父节点 | boolean | true | |
|
| autoExpandParent | 是否自动展开父节点 | boolean | false | |
|
||||||
| blockNode | 是否节点占据一行 | boolean | false | |
|
| blockNode | 是否节点占据一行 | boolean | false | |
|
||||||
| checkable | 节点前添加 Checkbox 复选框 | boolean | false | |
|
| checkable | 节点前添加 Checkbox 复选框 | boolean | false | |
|
||||||
| checkedKeys | (受控)选中复选框的树节点(注意:父子节点有关联,如果传入父节点 key,则子节点自动选中;相应当子节点 key 都传入,父节点也自动选中。当设置`checkable`和`checkStrictly`,它是一个有`checked`和`halfChecked`属性的对象,并且父子节点的选中与否不再关联 | string\[] \| {checked: string\[], halfChecked: string\[]} | \[] | |
|
| checkedKeys | (受控)选中复选框的树节点(注意:父子节点有关联,如果传入父节点 key,则子节点自动选中;相应当子节点 key 都传入,父节点也自动选中。当设置`checkable`和`checkStrictly`,它是一个有`checked`和`halfChecked`属性的对象,并且父子节点的选中与否不再关联 | string\[] \| {checked: string\[], halfChecked: string\[]} | \[] | |
|
||||||
|
Loading…
Reference in New Issue
Block a user