A virtual scrolling list component that can be sorted by dragging , for Vue
Package Exports
vue-virtual-draglist
vue-virtual-draglist/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-virtual-draglist) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
A virtual scrolling list component that can be sorted by dragging , for Vue
event fired when the drag is complete, return a new array
Props type
Required props
Prop
Type
Description
data-key
String
The unique identifier of each piece of data, in the form of 'a.b.c'
data-source
Array
data list
Optional props
Commonly used
Prop
Type
Default
Description
keeps
Number
30
the number of lines rendered by the virtual scroll
size
Number
50
The estimated height of each piece of data, you can choose to pass it or not, it will be automatically calculated
draggable
Boolean
true
whether to support drag and drop. You need to specify a draggable element and set the `draggable` attribute for it
Uncommonly used
Prop
Type
Default
Description
delay
Number
10
Delay time of debounce function
dragElement
Function
-
The function that selects the dragged element, must have a return value with a dom node, has two parameters: e(the currently selected element), parent(the parent node of the list)