Merge pull request #16638 from eruca/master

fix: Tree.onDragEnter function parameter
This commit is contained in:
偏右 2019-05-17 10:48:11 +08:00 committed by GitHub
commit 0c1b062c11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
@ -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;