You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/docs-site/docs/en/v2/api.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -789,6 +789,10 @@ Draggable component instance. The tree drag start at.
789
789
790
790
Draggable component instance. Drag target tree.
791
791
792
+
#### closestNode
793
+
794
+
Type: [Stat](#Stat)|null. The closest node in dragging. You can use it in [eachDroppable](#eachdroppable).
795
+
792
796
#### Example - dragContext
793
797
794
798
Use the dragContext to obtain the dragNode in [eachDroppable](#eachdroppable) and achieve the following effect: odd nodes only accept odd nodes, even nodes only accept even nodes.
0 commit comments