first commit
This commit is contained in:
41
node_modules/@vueuse/integrations/dist/index-CDFJRy7j.d.ts
generated
vendored
Normal file
41
node_modules/@vueuse/integrations/dist/index-CDFJRy7j.d.ts
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
import { MaybeRef, MaybeRefOrGetter } from "vue";
|
||||
import { ConfigurableDocument, MaybeElement } from "@vueuse/core";
|
||||
import Sortable, { Options } from "sortablejs";
|
||||
|
||||
//#region useSortable/index.d.ts
|
||||
interface UseSortableReturn {
|
||||
/**
|
||||
* start sortable instance
|
||||
*/
|
||||
start: () => void;
|
||||
/**
|
||||
* destroy sortable instance
|
||||
*/
|
||||
stop: () => void;
|
||||
/**
|
||||
* Options getter/setter
|
||||
* @param name a Sortable.Options property.
|
||||
* @param value a value.
|
||||
*/
|
||||
option: (<K extends keyof Sortable.Options>(name: K, value: Sortable.Options[K]) => void) & (<K extends keyof Sortable.Options>(name: K) => Sortable.Options[K]);
|
||||
}
|
||||
type UseSortableOptions = Options & ConfigurableDocument;
|
||||
declare function useSortable<T>(selector: string, list: MaybeRef<T[]>, options?: UseSortableOptions): UseSortableReturn;
|
||||
declare function useSortable<T>(el: MaybeRefOrGetter<MaybeElement>, list: MaybeRef<T[]>, options?: UseSortableOptions): UseSortableReturn;
|
||||
/**
|
||||
* Inserts a element into the DOM at a given index.
|
||||
* @param parentElement
|
||||
* @param element
|
||||
* @param {number} index
|
||||
* @see https://github.com/Alfred-Skyblue/vue-draggable-plus/blob/a3829222095e1949bf2c9a20979d7b5930e66f14/src/utils/index.ts#L81C1-L94C2
|
||||
*/
|
||||
declare function insertNodeAt(parentElement: Element, element: Element, index: number): void;
|
||||
/**
|
||||
* Removes a node from the DOM.
|
||||
* @param {Node} node
|
||||
* @see https://github.com/Alfred-Skyblue/vue-draggable-plus/blob/a3829222095e1949bf2c9a20979d7b5930e66f14/src/utils/index.ts#L96C1-L102C2
|
||||
*/
|
||||
declare function removeNode(node: Node): void;
|
||||
declare function moveArrayElement<T>(list: MaybeRef<T[]>, from: number, to: number, e?: Sortable.SortableEvent | null): void;
|
||||
//#endregion
|
||||
export { removeNode as a, moveArrayElement as i, UseSortableReturn as n, useSortable as o, insertNodeAt as r, UseSortableOptions as t };
|
||||
Reference in New Issue
Block a user