Files
NapCatQQ/.pnpm-store/v3/files/3d/fbe6577848ae899958937088136c527f387412227bcb48a44f50d29b82e40b71a38e58345387edbc3e3d5463b6a1f0ec1a098d6c34bfa447998c091778da79
T
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

37 lines
1.8 KiB
Plaintext

/// <reference types="react" />
import { UseDraggableArguments, UseDroppableArguments } from '@dnd-kit/core';
import type { Disabled, SortableData, SortingStrategy } from '../types';
import type { AnimateLayoutChanges, NewIndexGetter, SortableTransition } from './types';
export interface Arguments extends Omit<UseDraggableArguments, 'disabled'>, Pick<UseDroppableArguments, 'resizeObserverConfig'> {
animateLayoutChanges?: AnimateLayoutChanges;
disabled?: boolean | Disabled;
getNewIndex?: NewIndexGetter;
strategy?: SortingStrategy;
transition?: SortableTransition | null;
}
export declare function useSortable({ animateLayoutChanges, attributes: userDefinedAttributes, disabled: localDisabled, data: customData, getNewIndex, id, strategy: localStrategy, resizeObserverConfig, transition, }: Arguments): {
active: import("@dnd-kit/core").Active | null;
activeIndex: number;
attributes: import("@dnd-kit/core").DraggableAttributes;
data: SortableData & {
[x: string]: any;
};
rect: import("react").MutableRefObject<import("@dnd-kit/core").ClientRect | null>;
index: number;
newIndex: number;
items: import("@dnd-kit/core").UniqueIdentifier[];
isOver: boolean;
isSorting: boolean;
isDragging: boolean;
listeners: import("@dnd-kit/core/dist/hooks/utilities").SyntheticListenerMap | undefined;
node: import("react").MutableRefObject<HTMLElement | null>;
overIndex: number;
over: import("@dnd-kit/core").Over | null;
setNodeRef: (node: HTMLElement | null) => void;
setActivatorNodeRef: (element: HTMLElement | null) => void;
setDroppableNodeRef: (element: HTMLElement | null) => void;
setDraggableNodeRef: (element: HTMLElement | null) => void;
transform: import("@dnd-kit/utilities").Transform | null;
transition: string | undefined;
};