UNPKG

@aplus-frontend/antdv

Version:

Vue basic component library maintained based on ant-design-vue

6 lines (5 loc) 401 B
import type { Ref, UnwrapRef } from 'vue'; export type Updater<State> = (prev: State) => State; export declare function useLayoutState<State>(defaultState: State): [Ref<State>, (updater: Updater<State>) => void]; /** Lock frame, when frame pass reset the lock. */ export declare function useTimeoutLock<State>(defaultState?: State): [(state: UnwrapRef<State>) => void, () => UnwrapRef<State> | null];