Releases: mfuu/react-virtual-drag-list
Releases · mfuu/react-virtual-drag-list
v2.7.4
v2.7.3
v2.7.1
v2.6.2
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
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 elementdebounceTime
: debounce time on scrollthrottleTime
: 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
What's Changed
- Wrong value calculated in horizontal #2 (comment)
- Add an option
pageMode
#3 (comment)
Full Changelog: v2.5.0...v2.5.2
v2.5.0
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 startpressDelayOnTouchOnly
: Only delay on press if user is using touchfallbackOnBody
: 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