UNPKG

@aplus-frontend/antdv

Version:

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

20 lines (19 loc) 666 B
import type { MaybeComputedElementRef } from './unrefElement'; import type { UseResizeObserverOptions } from './useResizeObserver'; export interface ElementSize { width: number; height: number; } /** * Reactive size of an HTML element. * * @see https://vueuse.org/useElementSize * @param target * @param callback * @param options */ export declare function useElementSize(target: MaybeComputedElementRef, initialSize?: ElementSize, options?: UseResizeObserverOptions): { width: import("vue").ShallowRef<number, number>; height: import("vue").ShallowRef<number, number>; }; export type UseElementSizeReturn = ReturnType<typeof useElementSize>;