@skyfox2000/webui 1.3.21 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/modules/{baseLayout-Bz3oRE5o.js → baseLayout-DIEq13qJ.js} +6 -6
- package/lib/assets/modules/{file-upload-CmnCEJze.js → file-upload-DGuLxYSu.js} +2 -2
- package/lib/assets/modules/{index-CAqiqqdd.js → index-BPufvr-r.js} +134 -133
- package/lib/assets/modules/{index-CvQ24Mzh.js → index-CAtotNY6.js} +2 -2
- package/lib/assets/modules/{index-D0njzOzQ.js → index-DVzBH6zL.js} +1 -1
- package/lib/assets/modules/{menuTabs-NVgroqVO.js → menuTabs-DKvoic5x.js} +7 -7
- package/lib/assets/modules/{toolIcon-BuqRfX4F.js → toolIcon-Y7Lpx2Hb.js} +1 -1
- package/lib/assets/modules/{uploadList-B6MIYOtN.js → uploadList-Bh2SzZzX.js} +705 -700
- package/lib/assets/modules/{uploadList-KG6kpOaY.js → uploadList-DG33cpFl.js} +152 -146
- package/lib/components/common/icon/index.vue.d.ts +1 -1
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +5 -5
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/stores/userInfo.d.ts +3 -1
- package/lib/utils/micro-openapis.d.ts +35 -0
- package/lib/webui.es.js +358 -353
- package/package.json +1 -2
- package/src/components/layout/header/headerExits.vue +1 -1
- package/src/stores/appInfo.ts +7 -8
- package/src/stores/userInfo.ts +21 -63
- package/src/utils/data.ts +6 -0
- package/src/utils/download.ts +10 -1
- package/src/utils/export-table.ts +5 -0
- package/src/utils/form-excel.ts +14 -9
- package/src/utils/main-openapis.ts +2 -2
- package/src/utils/micro-openapis.ts +146 -0
- package/src/utils/options.ts +5 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
interface MainApis {
|
|
2
|
+
getAppInfo: () => Promise<any>;
|
|
3
|
+
getHostInfo: () => Promise<any>;
|
|
4
|
+
getUserInfo: () => Promise<any>;
|
|
5
|
+
getToken: () => Promise<any>;
|
|
6
|
+
userLogin: (params: any) => Promise<any>;
|
|
7
|
+
userLogout: () => Promise<any>;
|
|
8
|
+
mainAppPush: (params: any) => Promise<any>;
|
|
9
|
+
}
|
|
10
|
+
type MainApiMethod = keyof MainApis;
|
|
11
|
+
declare class MicroAppSDK {
|
|
12
|
+
constructor();
|
|
13
|
+
ensureMicroAppReady(): void;
|
|
14
|
+
getMainApis(): Partial<MainApis>;
|
|
15
|
+
isInMicroApp(): boolean;
|
|
16
|
+
callMainApi<T extends MainApiMethod>(methodName: T, params?: any): Promise<ReturnType<MainApis[T]>>;
|
|
17
|
+
getAppInfo(): Promise<any>;
|
|
18
|
+
getHostInfo(): Promise<any>;
|
|
19
|
+
getUserInfo(): Promise<any>;
|
|
20
|
+
getToken(): Promise<any>;
|
|
21
|
+
userLogin(params: any): Promise<any>;
|
|
22
|
+
userLogout(): Promise<any>;
|
|
23
|
+
mainAppPush(params: any): Promise<any>;
|
|
24
|
+
}
|
|
25
|
+
declare const microAppSDKInstance: MicroAppSDK;
|
|
26
|
+
export default microAppSDKInstance;
|
|
27
|
+
export { MicroAppSDK, microAppSDKInstance };
|
|
28
|
+
export declare const getAppInfo: () => Promise<any>;
|
|
29
|
+
export declare const getHostInfo: () => Promise<any>;
|
|
30
|
+
export declare const getUserInfo: () => Promise<any>;
|
|
31
|
+
export declare const getToken: () => Promise<any>;
|
|
32
|
+
export declare const userLogin: (params: any) => Promise<any>;
|
|
33
|
+
export declare const userLogout: () => Promise<any>;
|
|
34
|
+
export declare const mainAppPush: (params: any) => Promise<any>;
|
|
35
|
+
export declare const isInMicroApp: () => boolean;
|