add the 'selectable' attribute (#8048)

This commit is contained in:
翁润雨 2017-10-28 19:39:33 +08:00 committed by afc163
parent a617a9593a
commit 58fe3277d8
2 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,7 @@ Almost anything can be represented in a tree structure. Examples include directo
| -------- | ----------- | ---- | ------- |
| disableCheckbox | Disables the checkbox of the treeNode | boolean | false |
| disabled | Disables the treeNode | boolean | false |
| selectable | Set whether the treeNode can be selected | boolean | true |
| isLeaf | Determines if this is a leaf node(effective when `loadData` is specified) | boolean | false |
| key | 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 |
| title | Title | string\|ReactNode | '---' |

View File

@ -48,6 +48,7 @@ subtitle: 树形控件
| --- | --- | --- | --- |
| disableCheckbox | 禁掉 checkbox | boolean | false |
| disabled | 禁掉响应 | boolean | false |
| selectable | 设置节点是否可被选中 | boolean | true |
| isLeaf | 设置为叶子节点(设置了`loadData`时有效) | boolean | false |
| key | 被树的 (default)ExpandedKeys / (default)CheckedKeys / (default)SelectedKeys 属性所用。注意:整个树范围内的所有节点的 key 值不能重复! | string | 内部计算出的节点位置 |
| title | 标题 | string\|ReactNode | '---' |