Skip to content

v2.8.6

Compare
Choose a tag to compare
@mfuu mfuu released this 14 Apr 15:59
· 20 commits to main since this release

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