Skip to content

Commit

Permalink
Merge pull request #16638 from eruca/master
Browse files Browse the repository at this point in the history
fix: Tree.onDragEnter function parameter
  • Loading branch information
afc163 committed May 17, 2019
2 parents e0f8aed + 7cb4a11 commit 0c1b062
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/tree/Tree.tsx
Expand Up @@ -73,6 +73,10 @@ export interface AntTreeNodeMouseEvent {
event: React.MouseEvent<any>;
}

export interface AntTreeNodeDragEnterEvent extends AntTreeNodeMouseEvent {
expandedKeys: string[];
}

export interface AntTreeNodeDropEvent {
node: AntTreeNode;
dragNode: AntTreeNode;
Expand Down Expand Up @@ -136,7 +140,7 @@ export interface TreeProps {
/** 设置节点可拖拽(IE>8)*/
draggable?: boolean;
onDragStart?: (options: AntTreeNodeMouseEvent) => void;
onDragEnter?: (options: AntTreeNodeMouseEvent) => void;
onDragEnter?: (options: AntTreeNodeDragEnterEvent) => void;
onDragOver?: (options: AntTreeNodeMouseEvent) => void;
onDragLeave?: (options: AntTreeNodeMouseEvent) => void;
onDragEnd?: (options: AntTreeNodeMouseEvent) => void;
Expand Down

0 comments on commit 0c1b062

Please sign in to comment.