There are two sibling components in Vue. Can you drag and drop the HTML of one component into the tag of the other?

problem description

want to drag and drop the sibling element into a parent-child element, try the slot slot, but find that the slot is fixed and the drag-and-drop dynamic generation is not successful. I"d like to ask you what you think?

Jun.23,2022

you can write a component B in component A beforehand, and control external component B to hide component B in component A when dragging is detected.


Native dom operation, a.appendChild (b)
Menu