Props
v-model
Type | Default | Required |
Array | [] | true |
The data that needs to be rendered
data-key
Type | Default | Required |
String | - | true |
The unique identifier of each piece of data, in the form of 'a.b.c'
keeps
The number of lines rendered by the virtual scroll
size
The estimated height of each piece of data, you can choose to pass it or not, it will be automatically calculated
handle
Drag handle selector within list items
group
Type | Default |
Object/String | - |
tableMode
Type | Default |
Boolean | false |
Display with table
keepOffset
Type | Default |
Boolean | false |
When scrolling up to load data, keep the same offset as the previous scroll
direction
Type | Default |
vertical \| horizontal | vertical |
Virtual list scroll direction
Type | Default |
Document \| HTMLElement | Virtual list wrap |
Virtual list scrolling element
lockAxis
Axis on which dragging will be locked
debounceTime
debounce time on scroll
throttleTime
throttle time on scroll
sortable
Type | Default |
Boolean | true |
Whether the current list can be sorted by dragging
disabled
Type | Default |
Boolean | false |
Disables the sortable if set to true
draggable
Type | Default |
String | .virtual-dnd-list-item |
Specifies which items inside the element should be draggable
itemClass
Type | Default |
String | virtual-dnd-list-item |
Default list item class
animation
Animation speed moving items when sorting
Type | Default |
Boolean | true |
Automatic scrolling when moving to the edge of the container
Type | Default |
Object | { x: 10, y: 10 } |
Vertical&Horizontal scrolling speed (px)
Threshold to trigger autoscroll
delay
Time in milliseconds to define when the sorting should start
delayOnTouchOnly
Type | Default |
Boolean | false |
Only delay on press if user is using touch
fallbackOnBody
Type | Default |
Boolean | false |
Appends the ghost element into the document's body
rootTag
Label type for root element
wrapTag
Label type for wrap element
wrapClass
List wrapper element class
wrapStyle
List wrapper element style
ghostClass
The class of the mask element when dragging
ghostStyle
The style of the mask element when dragging
chosenClass
Class name for the chosen item
placeholderClass
Class name for the drop placeholder