A sortable list directive with Vue
Makes your elements draggable in Vue.
See Demo: http://hilongjw.github.io/vue-dragging/
Some of goals of this project worth noting include:
From npm:
$ npm install awe-dnd --save
//main.js
import VueDND from 'awe-dnd'
Vue.use(VueDND)
v-dragging="{ item: color, list: colors, group: 'color' }"
{item} Object{list} Array{group} String{comb} String group is unique key of dragable list.
comb use for multi drag
export default {
mounted () {
this.$dragging.$on('dragged', ({ value }) => {
console.log(value.item)
console.log(value.list)
console.log(value.otherData)
})
this.$dragging.$on('dragend', () => {
})
}
}No open issues yet, or sync has not completed.