1
This commit is contained in:
1
package/layer/types/component/index.d.ts
vendored
Normal file
1
package/layer/types/component/index.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { default as LayLayer } from "./index.vue";
|
||||
2
package/layer/types/composable/useMove.d.ts
vendored
Normal file
2
package/layer/types/composable/useMove.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
declare const useMove: (el: HTMLElement, callback: Function) => void;
|
||||
export default useMove;
|
||||
2
package/layer/types/composable/useResize.d.ts
vendored
Normal file
2
package/layer/types/composable/useResize.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
declare const useMove: (el: HTMLElement, callback: Function) => void;
|
||||
export default useMove;
|
||||
23
package/layer/types/index.d.ts
vendored
Normal file
23
package/layer/types/index.d.ts
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import { AppContext, App } from "vue";
|
||||
import LayLayer from "./component/index.vue";
|
||||
import { InstallOptions } from "./types";
|
||||
declare const layer: {
|
||||
_context: AppContext | null;
|
||||
open: (option: any, callback?: Function) => string;
|
||||
drawer: (option: any, callback?: Function) => string;
|
||||
msg: (message: string, option?: any, callback?: Function) => string;
|
||||
load: (load: number, option?: any, callback?: Function) => string;
|
||||
confirm: (msg: string, option?: any, callback?: Function) => string;
|
||||
photos: (option: any, callback?: Function) => string;
|
||||
notifiy: (option?: any, callback?: Function) => string;
|
||||
create: (option: any, defaultOption: any, callback?: Function) => string;
|
||||
close: (id: any) => void;
|
||||
closeAll: () => void;
|
||||
reset: (instance: any) => void;
|
||||
};
|
||||
export { layer, LayLayer };
|
||||
declare const _default: {
|
||||
install: (app: App<any>, options?: InstallOptions | undefined) => void;
|
||||
};
|
||||
export default _default;
|
||||
import "./theme/index.css";
|
||||
1
package/layer/types/tokens/index.d.ts
vendored
Normal file
1
package/layer/types/tokens/index.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const zIndexKey: unique symbol;
|
||||
3
package/layer/types/types/index.d.ts
vendored
Normal file
3
package/layer/types/types/index.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export declare type StringObject = Record<string, unknown>;
|
||||
export interface InstallOptions extends StringObject {
|
||||
}
|
||||
35
package/layer/types/utils/index.d.ts
vendored
Normal file
35
package/layer/types/utils/index.d.ts
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user