mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
add tree's tips
This commit is contained in:
parent
f3f952e40f
commit
bc5f5d5ba4
@ -47,3 +47,11 @@ Directory, organization, biological classification, country, and etc. Almost thi
|
||||
|title | title | String/element | '---' |
|
||||
|key | it's used with (default)ExpandedKeys / (default)CheckedKeys / (default)SelectedKeys. P.S.: it must be unique in all of treeNodes of the tree! | String | internal calculated position of treeNode |
|
||||
|isLeaf | whether it's leaf node | bool | false |
|
||||
|
||||
## note
|
||||
|
||||
The number of treeNodes can be very large, but when enable `checkable`,
|
||||
it will spend more computing time, so we cached some calculations(e.g. `this.treeNodesStates`),
|
||||
to avoid double computing. But, this bring some restrictions,
|
||||
**when you async load treeNodes, you should render tree like this**
|
||||
`{this.state.treeData.length ? <Tree ...>{this.state.treeData.map(t => <TreeNode ... />)}</Tree> : 'loading tree'}`
|
||||
|
Loading…
Reference in New Issue
Block a user