You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Options` inherits all configuration items from `Sortablejs`. For details, please see the [`Sortablejs` official documentation](https://github.com/SortableJS/Sortable).
@@ -138,15 +182,34 @@ type ScrollFn = ((
138
182
| scrollSensitivity | The distance in pixels the mouse must be to the edge to start scrolling |`Number`| - |
139
183
| scrollSpeed | The scrolling speed in ms/px |`number`| - |
140
184
| bubbleScroll | Enables automatic scrolling for all parent elements to make it easier to move items |`Boolean`|`true`|
141
-
| onChoose | Triggered when an item is selected |`((event: SortableEvent) => void)`| - |
142
-
| onUnchoose | Triggered when an item is deselected |`((event: SortableEvent) => void)`| - |
143
-
| onStart | Triggered when an item is picked up for drag and drop |`((event: SortableEvent) => void)`| - |
144
-
| onEnd | Triggered when an item is no longer being dragged |`((event: SortableEvent) => void)`| - |
145
-
| onAdd | Triggered when an item is moved from one list to another |`((event: SortableEvent) => void)`| - |
146
-
| onUpdate | Triggered when the order of the items is updated |`((event: SortableEvent) => void)`| - |
147
-
| onSort | Triggered whenever any changes are made to the list |`((event: SortableEvent) => void)`| - |
148
-
| onRemove | Triggered when an item is removed from the list and moved to another |`((event: SortableEvent) => void)`| - |
149
-
| onFilter | Triggered when trying to drag a filtered item |`((event: SortableEvent) => void)`| - |
185
+
| onChoose | Triggered when an item is selected |`((event: DraggableEvent) => void)`| - |
186
+
| onUnchoose | Triggered when an item is deselected |`((event: DraggableEvent) => void)`| - |
187
+
| onStart | Triggered when an item is picked up for drag and drop |`((event: DraggableEvent) => void)`| - |
188
+
| onEnd | Triggered when an item is no longer being dragged |`((event: DraggableEvent) => void)`| - |
189
+
| onAdd | Triggered when an item is moved from one list to another |`((event: DraggableEvent) => void)`| - |
190
+
| onUpdate | Triggered when the order of the items is updated |`((event: DraggableEvent) => void)`| - |
191
+
| onSort | Triggered whenever any changes are made to the list |`((event: DraggableEvent) => void)`| - |
192
+
| onRemove | Triggered when an item is removed from the list and moved to another |`((event: DraggableEvent) => void)`| - |
193
+
| onFilter | Triggered when trying to drag a filtered item |`((event: DraggableEvent) => void)`| - |
150
194
| onMove | Triggered while an item is being dragged |`((event: MoveEvent,originalEvent: Event) => void)`| - |
151
-
| onClone | Triggered when an item is cloned |`((event: SortableEvent) => void)`| - |
152
-
| onChange | Triggered when an item is dragged and changes position |`((event: SortableEvent) => void)`| - |
195
+
| onClone | Triggered when an item is cloned |`((event: DraggableEvent) => void)`| - |
196
+
| onChange | Triggered when an item is dragged and changes position |`((event: DraggableEvent) => void)`| - |
197
+
198
+
199
+
## Component (Component Properties)
200
+
201
+
### Props
202
+
203
+
The component's props include all options from `Sortablejs` and can be passed to the component. For details, see [Options](#options).
| modelValue (v-model) | The list for two-way binding | Yes | - |
208
+
| tag | The tag name of the component's root element | No |`div`|
209
+
| target | Specifies the target container. If not provided, the component's root element is used as the container. See [Target Container](/demo/target-container/) for details. | No | - |
0 commit comments