Yichang Liu

Results 7 comments of Yichang Liu

It's not ready for vue 2.2 yet.

A solution for vue2 DOM order, we must provide a `key` for `v-for` directive to update DOM order. `v-for="item in list"` add `:key="item.id"` for object items, `:key="item"` for plain string....

The directive will call `destroy` on `unbind`. you can remove bus listener with `Vue.vueDragula.eventBus.$off("drop", fn)`

It's basically the same as in Dragula example. Using vue 1.x: ``` js created: function () { Vue.vueDragula.options('my-bag', { moves: function (el, container, handle) { return handle.classList.contains('handle'); } }) }...

It should be the same in 2.0. I've just pushed a new version.

Well, the current version doesn't work well with vuejs 2.0. I'm planning for a rewrite.