Alfred-Skyblue / vue-draggable-plus

Universal Drag-and-Drop Component Supporting both Vue 3 and Vue 2
https://vue-draggable-plus.pages.dev/en/
MIT License
2.74k stars 105 forks source link

How to specify sub-draggable item #37

Open rafaellehmkuhl opened 11 months ago

rafaellehmkuhl commented 11 months ago

I have the following scenario: image

Items 1 and 2 are the draggable targets, within the same group. Item 3 is the actual child that I want to drag from target container 2 to 1. Notice that in container 2 I add a different background as well as the name of the child, but I don't want those to be dragged. I want only item 3 to be dragged.

Today, the entire child goes dragged and dropped, like this: image

When I finish dropping the element (mouse up), everything goes ok, because the object being transported is correct. The problem is just visual during dragging and dropping.

Is there any way to do that today?