From 3582f46347b7670d7c23a98751f15f23f46229c8 Mon Sep 17 00:00:00 2001 From: Alexey Yakovlev Date: Thu, 16 Aug 2018 15:15:58 +0300 Subject: [PATCH] Update TreeProps.onCheck callback signature. --- components/tree/Tree.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tree/Tree.tsx b/components/tree/Tree.tsx index d39918f3f6..aa3da79642 100644 --- a/components/tree/Tree.tsx +++ b/components/tree/Tree.tsx @@ -100,7 +100,7 @@ export interface TreeProps { /** 展开/收起节点时触发 */ onExpand?: (expandedKeys: string[], info: AntTreeNodeExpandedEvent) => void | PromiseLike; /** 点击复选框触发 */ - onCheck?: (checkedKeys: string[], e: AntTreeNodeCheckedEvent) => void; + onCheck?: (checkedKeys: string[] | { checked: string[]; halfChecked: string[] }, e: AntTreeNodeCheckedEvent) => void; /** 点击树节点触发 */ onSelect?: (selectedKeys: string[], e: AntTreeNodeSelectedEvent) => void; /** 单击树节点触发 */