init
This commit is contained in:
23
types/index.d.ts
vendored
Normal file
23
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";
|
||||
Reference in New Issue
Block a user