简体   繁体   中英

How to implement drag drop of html elements in VueJs

If I would like to implement drag drop similar to JQuery with vuejs how would I do that ? How to move the elements in the DOM ?

I don't want to use a plugin I want to understand how to do it.

Thanks.

When you start to drag a node save a reference of that node. When you drop that node use that reference.

Make container draggable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM