Skip to content

Commit 58b451d

Browse files
xliezthinkasany
andauthored
docs(tree): add onDoubleClick API documentation (ant-design#56911)
* docs(tree): add onDoubleClick API documentation * update --------- Co-authored-by: thinkasany <480968828@qq.com>
1 parent e242c9a commit 58b451d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

components/tree/index.en-US.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ Common props ref:[Common props](/docs/react/common-props)
7979
| treeData | The treeNodes data Array, if set it then you need not to construct children TreeNode. (key should be unique across the whole array) | array&lt;{ key, title, children, \[disabled, selectable] }> | - | |
8080
| virtual | Disable virtual scroll when set to false | boolean | true | 4.1.0 |
8181
| onCheck | Callback function for when the onCheck event occurs | function(checkedKeys, e:{checked: boolean, checkedNodes, node, event, halfCheckedKeys}) | - | |
82+
| onDoubleClick | Callback function for when the user double clicks a treeNode | function(event, node) | - | |
8283
| onDragEnd | Callback function for when the onDragEnd event occurs | function({event, node}) | - | |
8384
| onDragEnter | Callback function for when the onDragEnter event occurs | function({event, node, expandedKeys}) | - | |
8485
| onDragLeave | Callback function for when the onDragLeave event occurs | function({event, node}) | - | |

components/tree/index.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ demo:
7878
| treeData | treeNodes 数据,如果设置则不需要手动构造 TreeNode 节点(key 在整个树范围内唯一) | array&lt;{key, title, children, \[disabled, selectable]}> | - | |
7979
| virtual | 设置 false 时关闭虚拟滚动 | boolean | true | 4.1.0 |
8080
| onCheck | 点击复选框触发 | function(checkedKeys, e:{checked: boolean, checkedNodes, node, event, halfCheckedKeys}) | - | |
81+
| onDoubleClick | 双击树节点触发 | function(event, node) | - | |
8182
| onDragEnd | dragend 触发时调用 | function({event, node}) | - | |
8283
| onDragEnter | dragenter 触发时调用 | function({event, node, expandedKeys}) | - | |
8384
| onDragLeave | dragleave 触发时调用 | function({event, node}) | - | |

0 commit comments

Comments
 (0)