mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Merge pull request #16638 from eruca/master
fix: Tree.onDragEnter function parameter
This commit is contained in:
commit
0c1b062c11
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user