demo using rawgit.com
npm install vue-drag-reorder
var drapPlugin = require('vue-drag-reorder')
drapPlugin.install(Vue)
Use this is as easy as follows:
<ul v-droper="list">
<li v-dragable v-for="item in list">{{item}}</li>
</ul>
<table>
<thead></thead>
<tbody v-droper="list" drag-class="droper">
<tr v-dragable v-for="(index,item) in list">
<td>
{{index}}
</td>
<td>
{{item}}
</td>
</tr>
</tbody>
</table>
We use these .yita-draging
.yita-draging-zone
two class name If not specified.
.yita-draging {
background-color: grey
}
.yita-draging-zone {
background-color: orange
}
If you not want to use these stupid default className, you can specify one to html.
<ul v-droper="list" drag-class="droper">
<li v-dragable drag-class="draging" v-for="item in list">{{item}}</li>
</ul>