Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
vue-multi-drag
Advanced tools
Drag'n'Drop with multiple Elements. Provides a vue directive for draggable element and a vue directive for dropzones.
![Vue-multi-drag icon](assets/drag.png)
Vue implementation to support drag'n'drop multiple items at the same time. Most of the code comes from https://www.sitepoint.com/accessible-drag-drop/
npm i vue-multi-drag --save
main.js
import VueMultiDrag from 'vue-multi-drag'
Vue.use(VueMultiDrag)
YourComponent.vue
<template>
<div class="template-class">
<div class="col col-3">
<ul v-mz-dropzone>
<li v-mz-drag
@dragend="method"
@dragenter="method2"
@dragexit="method3"
@dragleave="method4"
@dragover="method5"
@dragstart="method6">Element 1</li>
<li v-mz-drag>Element 2</li>
<li v-mz-drag>Element 3</li>
<li v-mz-drag>Element 4</li>
<li v-mz-drag>Element 5</li>
</ul>
</div>
<div class="col col-3">
<ul v-mz-dropzone>
</ul>
</div>
<div class="col col-3">
<ul v-mz-dropzone>
</ul>
</div>
</div>
</template>
The li-tags can also be generated with a for-loop
In Windows when you have multiple items selected in the explorer and you start
dragging, a big Icon with an selected Item counter appears above your cursor.
This helps keep track of selected items.
Assign a group to each dropzone, so that items in that group can only be dropped in their corresponding group. For instance, there are 3 dropzones assigned to group 'groupX' and 2 dropzones assigned to group 'groupZ'. The items inside groupX can only be dropped to zones in 'groupX'.
# install deps
npm install
# serve demo at localhost:8080
npm run dev
Copyright (c) 2019 msz
FAQs
Drag'n'Drop with multiple Elements. Provides a vue directive for draggable element and a vue directive for dropzones.
We found that vue-multi-drag demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.