Skip to content

Releases: mfuu/vue-virtual-drag-list

v2.9.7

25 Dec 14:55
Compare
Choose a tag to compare

Changes

  • fix: render error when list change

v2.9.6

03 Dec 12:46
Compare
Choose a tag to compare

Changes

  • fix: error when the datakey get number type value

v2.9.5

29 Oct 15:04
Compare
Choose a tag to compare

Changes

  • optimize animation effects on drop

v2.9.3

17 Oct 16:57
Compare
Choose a tag to compare

Changes

  • fix: misjudgment of scrolling to the bottom of the list
  • feat: added prop placeholderClass
  • update dependencies

v2.9.2

07 Jul 06:41
Compare
Choose a tag to compare

Chnages

  • Fixed: #37
  • Added prop scrollSpeed, usage: { x: 10, y: 10 }
  • Only calculate the average size during the first rendering

v2.9.1

12 Jun 14:37
Compare
Choose a tag to compare

Changes

  • Added props: tableMode
  • Deleted emits: add, remove

v2.9.0

22 May 12:38
Compare
Choose a tag to compare

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

09 May 11:20
Compare
Choose a tag to compare

Changes

  • Feat: added emit with rangeChange
  • Fixed: dragged element get wrong style

v2.8.8

06 May 12:24
Compare
Choose a tag to compare

Changes

  • Fixed: dom insert error on sortable: false
  • Fixed: click event not work on mobile

v2.8.6

14 Apr 15:59
Compare
Choose a tag to compare

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