@@ -86,29 +86,30 @@ function Virtual() {
8686
8787** Uncommonly used**
8888
89- | ** Prop** | ** Type** | ** Default** | ** Description** |
90- | -------------------- | --------- | ------------------ | --------------------------------------------------------------------------- |
91- | ` draggable ` | ` String ` | ` [role="item"] ` | Specifies which items inside the element should be draggable |
92- | ` sortable ` | ` Boolean ` | ` true ` | Whether the current list can be sorted by dragging |
93- | ` lockAxis ` | ` x \| y ` | ` - ` | Axis on which dragging will be locked |
94- | ` keepOffset ` | ` Boolean ` | ` false ` | When scrolling up to load data, keep the same offset as the previous scroll |
95- | ` disabled ` | ` Boolean ` | ` false ` | Disables the sortable if set to true |
96- | ` animation ` | ` Number ` | ` 150 ` | Drag-and-drop's animation delay |
97- | ` autoScroll ` | ` Boolean ` | ` true ` | Automatic scrolling when moving to the edge of the container |
98- | ` scrollSpeed ` | ` Object ` | ` { x: 10, y: 10 } ` | Vertical&Horizontal scrolling speed (px) |
99- | ` scrollThreshold ` | ` Number ` | ` 55 ` | Threshold to trigger autoscroll |
100- | ` delay ` | ` Number ` | ` 0 ` | Time in milliseconds to define when the sorting should start |
101- | ` delayOnTouchOnly ` | ` Boolean ` | ` false ` | Only delay on press if user is using touch |
102- | ` appendToBody ` | ` Boolean ` | ` false ` | Appends the ghost element into the document's body |
103- | ` dropOnAnimationEnd ` | ` Boolean ` | ` true ` | Drop item on animation end |
104- | ` rootTag ` | ` String ` | ` div ` | Label type for root element |
105- | ` wrapTag ` | ` String ` | ` div ` | Label type for list wrap element |
106- | ` wrapStyle ` | ` Object ` | ` {} ` | List wrapper element style |
107- | ` wrapClass ` | ` String ` | ` '' ` | List wrapper element class |
108- | ` ghostStyle ` | ` Object ` | ` {} ` | The style of the mask element when dragging |
109- | ` ghostClass ` | ` String ` | ` '' ` | The class of the mask element when dragging |
110- | ` chosenClass ` | ` String ` | ` '' ` | Class name for the chosen item |
111- | ` placeholderClass ` | ` String ` | ` '' ` | Class name for the drop placeholder |
89+ | ** Prop** | ** Type** | ** Default** | ** Description** |
90+ | -------------------- | --------- | ----------------------- | --------------------------------------------------------------------------- |
91+ | ` buffer ` | ` Number ` | ` Math.round(keeps / 3) ` | Buffer size to detect range change |
92+ | ` draggable ` | ` String ` | ` [role="item"] ` | Specifies which items inside the element should be draggable |
93+ | ` sortable ` | ` Boolean ` | ` true ` | Whether the current list can be sorted by dragging |
94+ | ` lockAxis ` | ` x \| y ` | ` - ` | Axis on which dragging will be locked |
95+ | ` keepOffset ` | ` Boolean ` | ` false ` | When scrolling up to load data, keep the same offset as the previous scroll |
96+ | ` disabled ` | ` Boolean ` | ` false ` | Disables the sortable if set to true |
97+ | ` animation ` | ` Number ` | ` 150 ` | Drag-and-drop's animation delay |
98+ | ` autoScroll ` | ` Boolean ` | ` true ` | Automatic scrolling when moving to the edge of the container |
99+ | ` scrollSpeed ` | ` Object ` | ` { x: 10, y: 10 } ` | Vertical&Horizontal scrolling speed (px) |
100+ | ` scrollThreshold ` | ` Number ` | ` 55 ` | Threshold to trigger autoscroll |
101+ | ` delay ` | ` Number ` | ` 0 ` | Time in milliseconds to define when the sorting should start |
102+ | ` delayOnTouchOnly ` | ` Boolean ` | ` false ` | Only delay on press if user is using touch |
103+ | ` appendToBody ` | ` Boolean ` | ` false ` | Appends the ghost element into the document's body |
104+ | ` dropOnAnimationEnd ` | ` Boolean ` | ` true ` | Drop item on animation end |
105+ | ` rootTag ` | ` String ` | ` div ` | Label type for root element |
106+ | ` wrapTag ` | ` String ` | ` div ` | Label type for list wrap element |
107+ | ` wrapStyle ` | ` Object ` | ` {} ` | List wrapper element style |
108+ | ` wrapClass ` | ` String ` | ` '' ` | List wrapper element class |
109+ | ` ghostStyle ` | ` Object ` | ` {} ` | The style of the mask element when dragging |
110+ | ` ghostClass ` | ` String ` | ` '' ` | The class of the mask element when dragging |
111+ | ` chosenClass ` | ` String ` | ` '' ` | Class name for the chosen item |
112+ | ` placeholderClass ` | ` String ` | ` '' ` | Class name for the drop placeholder |
112113
113114## Methods
114115Use the methods exposed in the component by setting ` ref `
0 commit comments