Feat:drag插件的beforeDragEnd选项新增当前被拖拽的节点列表的回调参数

This commit is contained in:
街角小林 2024-06-24 18:54:31 +08:00
parent dc096fd535
commit 35c8e129f0

View File

@ -148,7 +148,8 @@ class Drag extends Base {
const isCancel = await beforeDragEnd({ const isCancel = await beforeDragEnd({
overlapNodeUid, overlapNodeUid,
prevNodeUid, prevNodeUid,
nextNodeUid nextNodeUid,
beingDragNodeList: [...this.beingDragNodeList]
}) })
if (isCancel) { if (isCancel) {
this.reset() this.reset()