vue-drag-sortable
A vue dragging sortable component
Install from NPM
$ npm install --save vue-drag-sortable
Usage
:key="item" <!-- (Required) Loop key for each item -->:index="index" <!-- (Required) Index for each item -->drag-direction="vertical | horizontal" <!-- (Optional) Dragging mode, optional to vertical or horizontal -->replace-direction="vertical | horizontal" <!-- (Optional) Replacing mode(item reversing direction when mouse released), optional to vertical or horizontal -->@sortend="sortend($event, listData)" <!-- (Optional) Event triggered when sort end -->@sort="sorting" <!-- (Optional) Event triggered when sorting -->@real-click="click">Item {{ item }}