@aplus-frontend/antdv
Version:
Vue basic component library maintained based on ant-design-vue
22 lines (21 loc) • 841 B
TypeScript
export type Breakpoint = 'xxxl' | 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
export type BreakpointMap = Record<Breakpoint, string>;
export type ScreenMap = Partial<Record<Breakpoint, boolean>>;
export type ScreenSizeMap = Partial<Record<Breakpoint, number>>;
export declare const responsiveArray: Breakpoint[];
type SubscribeFunc = (screens: ScreenMap) => void;
export default function useResponsiveObserver(): import("vue").ComputedRef<{
matchHandlers: {
[prop: string]: {
mql: MediaQueryList;
listener: (this: MediaQueryList, ev: MediaQueryListEvent) => any;
};
};
dispatch(pointMap: ScreenMap): boolean;
subscribe(func: SubscribeFunc): number;
unsubscribe(paramToken: number): void;
unregister(): void;
register(): void;
responsiveMap: BreakpointMap;
}>;
export {};