Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Tree.onDragEnter function parameter #16638

Merged
merged 1 commit into from May 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion components/tree/Tree.tsx
Expand Up @@ -72,6 +72,10 @@ export interface AntTreeNodeMouseEvent {
event: React.MouseEventHandler<any>;
}

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

export interface AntTreeNodeDropEvent {
node: AntTreeNode;
dragNode: AntTreeNode;
Expand Down Expand Up @@ -135,7 +139,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