layui-layer/types/utils/index.d.ts

36 lines
1.5 KiB
TypeScript
Raw Normal View History

2022-11-15 08:28:03 +08:00
export declare function nextId(): any;
export declare function calculateMinArea(minArea: any): any[];
export declare function calculateArea(type: any, area: any, offset: any): any[];
export declare function calculateBaseArea(area: any): any[];
export declare function calculateDrawerArea(offset: any, drawerArea?: string[] | string): string[];
export declare function calculateOffset(offset: any, area: any, type: any): any[];
export declare function calculateType(modalType: number | string): 1 | 0 | 2 | 3 | 4 | 5 | 6;
export declare function calculateContent(title: any, height: any, btn: any, type: any, isMessage?: boolean): string | undefined;
export declare function maxArea(): {
w: string;
h: string;
};
export declare function maxOffset(): {
t: string;
l: string;
};
export declare function minArea(): {
w: string;
h: string;
};
export declare function minOffset(left: any): {
t: string;
l: string;
};
export declare function getPosition(dom: any): {
x: any;
y: any;
};
export declare function getArea(dom: any): string[];
export declare function updateMinArrays(id: string, state: Boolean): number;
export declare function getDrawerAnimationClass(offset: any, isClose?: boolean): string;
export declare function calculatePhotosArea(url: string, options: object): Promise<Array<string>>;
export declare function calculateNotifOffset(offset: any, area: any, layerId: string): string[];
export declare function removeNotifiyFromQueen(layerId: string): void;
export declare function getNotifyAnimationClass(offset: any): string;