Skip to content

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

Open
@LXJ-ziLiang

Description

@LXJ-ziLiang
  • 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 事件没有响应

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions