Releases: mfuu/vue-virtual-drag-list
Releases · mfuu/vue-virtual-drag-list
v2.9.7
Changes
- fix: render error when list change
v2.9.6
Changes
- fix: error when the datakey get number type value
v2.9.5
Changes
- optimize animation effects on drop
v2.9.3
Changes
- fix: misjudgment of scrolling to the bottom of the list
- feat: added prop
placeholderClass
- update dependencies
v2.9.2
Chnages
- Fixed: #37
- Added prop
scrollSpeed
, usage: { x: 10, y: 10 }
- Only calculate the average size during the first rendering
v2.9.1
Changes
- Added props:
tableMode
- Deleted emits:
add
, remove
v2.9.0
Changes
- removed props:
itemTag
, itemStyle
- fixed #36
The item slot must have a parent node:
<virtual-list
v-model="list"
:data-key="'id'"
:handle="'.handle'"
>
<template slot="item" slot-scope="{ record }">
<div> <!-- <<< wrapping -->
content
</div>
</template>
</virtual-list>
v2.8.9
Changes
- Feat: added emit with
rangeChange
- Fixed: dragged element get wrong style
v2.8.8
Changes
- Fixed: dom insert error on
sortable: false
- Fixed: click event not work on mobile
v2.8.6
Changes
- Added props
sortable
: Whether the current list can be sorted by dragging. (When sortable is true, the current list cannot be scrolled during dragging)
- Default item class
virtual-dnd-list-item
- Default
draggable
value .virtual-dnd-list-item
- Adjusted the drop event params:
{
key, // dragged item key
item, // dragged item
event, // drop event
changed, // list changed or not
list, // list after dnd complete
oldList, // list without dnd
oldIndex, // old index within list
newIndex, // new index within list
} = dropEvent