Permalink
Browse files

fix #12269. Fix Tree onDrop ts type

  • Loading branch information...
zombieJ committed Sep 17, 2018
1 parent c935d53 commit e58273dccf59d58862e8bab0da36c7065e1c1044
Showing with 8 additions and 1 deletion.
  1. +8 −1 components/tree/Tree.tsx
@@ -71,6 +71,13 @@ export interface AntTreeNodeMouseEvent {
event: React.MouseEventHandler<any>;
}
export interface AntTreeNodeDropEvent {
node: AntTreeNode;
dragNode: AntTreeNode;
dragNodesKeys: string[];
event: React.MouseEventHandler<any>;
}
export interface TreeProps {
showLine?: boolean;
className?: string;
@@ -130,7 +137,7 @@ export interface TreeProps {
/** dragleave 触发时调用 */
onDragLeave?: (options: AntTreeNodeMouseEvent) => void;
/** drop 触发时调用 */
onDrop?: (options: AntTreeNodeMouseEvent) => void;
onDrop?: (options: AntTreeNodeDropEvent) => void;
style?: React.CSSProperties;
showIcon?: boolean;
icon?: (nodeProps: AntdTreeNodeAttribute) => React.ReactNode | React.ReactNode;

0 comments on commit e58273d

Please sign in to comment.