This commit is contained in:
2022-11-15 09:16:55 +08:00
parent a062e58312
commit c1cce5a7c2
350 changed files with 73104 additions and 92 deletions

View File

@@ -1,9 +1,5 @@
.DS_Store
node_modules/
dist/
example/dist/
lib/
/types/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -0,0 +1 @@
export { default as LayLayer } from "./index.vue";

View File

@@ -0,0 +1,2 @@
declare const useMove: (el: HTMLElement, callback: Function) => void;
export default useMove;

View 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
View 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
View File

@@ -0,0 +1 @@
export declare const zIndexKey: unique symbol;

3
package/layer/types/types/index.d.ts vendored Normal file
View 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
View 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;