Skip to content

Releases: mfuu/react-virtual-drag-list

v2.7.4

25 Dec 15:10
Compare
Choose a tag to compare

Changes

  • fix: render error when list change

v2.7.3

03 Dec 12:25
Compare
Choose a tag to compare

Changes

  • feat: added props scrollSpeed, placeholderClass
  • fix: error when the datakey get number value

v2.7.1

11 Jun 12:47
Compare
Choose a tag to compare

Changes

  • Added props tableMode, sortable

v2.6.2

16 Mar 05:58
Compare
Choose a tag to compare

What's Changed

The following props will be removed from the current version onwards:

headerTag,
footerTag,
headerStyle,
headerClass,
footerStyle,
footerClass,

Added props:

lockAxis: 'x' | 'y', // Axis on which dragging will be locked

The types of these props have changed:

scroller: Document | HTMLElement, // Window not supported now

Full Changelog: v2.6.1...v2.6.2

v2.6.1

07 Mar 10:33
Compare
Choose a tag to compare

What's Changed

support clone mode

  • usage: group: { pull: 'clone' }

props changed

  • delay => debounceTime, throttleTime
  • pressDelay => delay
  • pressDelayOnTouchOnly => delayOnTouchOnly

props deleted

pageMode: now replaced by scroller: window or scroller: document

props added

  • scroller: virtual list scrolling element
  • debounceTime: debounce time on scroll
  • throttleTime: throttle time on scroll

method added

  • scrollToKey(key): Scroll to the specified data-key position

Full Changelog: v2.5.2...v2.6.1

v2.5.2

03 Jul 10:49
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.5.0...v2.5.2

v2.5.0

03 Jun 13:04
Compare
Choose a tag to compare

What's Changed

Now you can drag-drop an item between different lists, such as:

<VirtualList
  ...
  group="name"
>
{
  ...
}
</VirtualList>

Add some usefull props:

  • handle: Only drags can be made on the element specified by handle.
  • group: Set group value to allow drag between different lists.
  • pressDelay: Time in milliseconds to define when the sorting should start
  • pressDelayOnTouchOnly: Only delay on press if user is using touch
  • fallbackOnBody: Appends the ghost element into the document's body

It should be noted that some emit's name changed, get all parameters by destructuring:

  • v-dragstart => v-drag
  • v-dragend => v-drop

Two new events have been added:

  • v-add: Will be triggered when dragging from another list to the current.
  • v-remove: Will be triggered when dragging from the current list into another.

Some props functions have changed:

  • draggable: It is only supported to set dragged elements, you do not need to set this property, the list can also be dragged.

Delete useless props:

  • scrollStep

For details on how to use it, please refer to README

Full Changelog: v2.4.6...v2.5.0

v2.4.6

15 Jun 02:38
Compare
Choose a tag to compare
  • Fix bug that the list is empty when the data is re-rendered after the data is cleared

v2.4.5

10 Jun 09:32
Compare
Choose a tag to compare
  • Fix bug that the mobile terminal cannot be dragged
  • Fix bug that the original array was changed due to data changes when dragging
  • Fix bug of incorrect size calculation when size prop is not set
  • Add callback function v-dragstart, add options with keepOffset

v2.4.4

02 Jun 02:44
Compare
Choose a tag to compare
  • Add props: autoScroll, scrollStep, scrollThreshold
  • Optimized initialization logic