Skip to content

Commit

Permalink
add tree's tips
Browse files Browse the repository at this point in the history
  • Loading branch information
warmhug authored Jul 25, 2016
1 parent f3f952e commit bc5f5d5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/tree/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'}`

0 comments on commit bc5f5d5

Please sign in to comment.