ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

两个Tree 互相拖拽 / 外部数据拖拽到tree中 drop 事件 没有监听到 有什么解决办法?

Open LXJ-ziLiang opened this issue 5 months ago • 0 comments
trafficstars

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.6

Environment

vue3

Reproduction link

Edit on CodeSandbox

Steps to reproduce

<a-tree :tree-data="tree2" draggable block-node :allow-drop="() => true" @dragstart="(info:any) =>onDragStart(info,'tree2')" @drop="(info:any) => onDrop(info,'tree2')" />

What is expected?

希望drop 事件能监听到 外部数据的拖入 / 两个tree 可以互相拖拽

What is actually happening?

drop 事件没有响应

LXJ-ziLiang avatar Jun 09 '25 12:06 LXJ-ziLiang