@das-fed/upf-web 6.4.0-dev.124
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/esm-map.json +31 -0
- package/index-CjR1TTJr.js +10 -0
- package/index-DKGPO2ax.js +13946 -0
- package/index-DKGPO2ax.js.gz +0 -0
- package/index-Dbi0WqWP.js +87 -0
- package/index-Dbi0WqWP.js.gz +0 -0
- package/index.js +32 -0
- package/package.json +54 -0
- package/packages/create-das-web-app/config.js +1 -0
- package/packages/create-das-web-app/index.js +58 -0
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/config.js +1 -0
- package/packages/i18n/index.js +175 -0
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/config.js +1 -0
- package/packages/layout/index.js +785 -0
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +7 -0
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/config.js +1 -0
- package/packages/main-app-framework/index-Bvyj8RXL.js +12454 -0
- package/packages/main-app-framework/index-Bvyj8RXL.js.gz +0 -0
- package/packages/main-app-framework/index-CT9S8561.js +87 -0
- package/packages/main-app-framework/index-CT9S8561.js.gz +0 -0
- package/packages/main-app-framework/index-DOmUEjbK.js +10 -0
- package/packages/main-app-framework/index.js +7 -0
- package/packages/main-app-framework/style.css +1 -0
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/config.js +1 -0
- package/packages/micro-frontend/index.js +848 -0
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/micro-frontend/style.css +1 -0
- package/packages/style/config.js +1 -0
- package/packages/style/index.js +5 -0
- package/packages/style/style.css +1 -0
- package/packages/style/style.css.gz +0 -0
- package/packages/theme/config.js +1 -0
- package/packages/theme/index.js +75 -0
- package/packages/theme/index.js.gz +0 -0
- package/style.css +7 -0
- package/style.css.gz +0 -0
- package/types/create-das-web-app/index.d.ts +9 -0
- package/types/create-das-web-app/plugins/index.d.ts +4 -0
- package/types/create-das-web-app/router/index.d.ts +5 -0
- package/types/create-das-web-app/store/index.d.ts +2 -0
- package/types/i18n/global.d.ts +583 -0
- package/types/i18n/index.d.ts +23 -0
- package/types/index.d.ts +6 -0
- package/types/layout/index.d.ts +5 -0
- package/types/layout/store/iframe-view.d.ts +12 -0
- package/types/layout/store/index.d.ts +75 -0
- package/types/layout/store/menu.d.ts +18 -0
- package/types/layout/store/nav.d.ts +27 -0
- package/types/layout/store/overlay.d.ts +5 -0
- package/types/layout/store/tab.d.ts +18 -0
- package/types/main-app-framework/business/alarm/api.d.ts +34 -0
- package/types/main-app-framework/business/alarm/components/hooks/use-handle-alarm.d.ts +7 -0
- package/types/main-app-framework/business/alarm/use-alarm.d.ts +12 -0
- package/types/main-app-framework/business/index.d.ts +4 -0
- package/types/main-app-framework/business/message-notify/index.d.ts +2 -0
- package/types/main-app-framework/business/remote-control/apis.d.ts +8 -0
- package/types/main-app-framework/business/remote-control/createServiceConnection.d.ts +3 -0
- package/types/main-app-framework/business/remote-control/index.d.ts +1 -0
- package/types/main-app-framework/business/remote-control/utils.d.ts +7 -0
- package/types/main-app-framework/business/video-link/api.d.ts +30 -0
- package/types/main-app-framework/business/video-link/index.d.ts +6 -0
- package/types/main-app-framework/business/video-link/open.d.ts +4 -0
- package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +4 -0
- package/types/main-app-framework/business/video-link/video-dialog/hooks/index.d.ts +6 -0
- package/types/main-app-framework/components/entry-page-tip/index.d.ts +3 -0
- package/types/main-app-framework/components/entry-page-tip/src/index.d.ts +1 -0
- package/types/main-app-framework/components/entry-page-tip/src/open.d.ts +5 -0
- package/types/main-app-framework/components/entry-page-tip/theme/index.d.ts +6 -0
- package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
- package/types/main-app-framework/components/index.d.ts +4 -0
- package/types/main-app-framework/components/person-set-dialog/index.d.ts +4 -0
- package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +6 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +3 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
- package/types/main-app-framework/components/watermark/index.d.ts +3 -0
- package/types/main-app-framework/components/watermark/src/api.d.ts +1 -0
- package/types/main-app-framework/constant/index.d.ts +6 -0
- package/types/main-app-framework/data-track/api.d.ts +2 -0
- package/types/main-app-framework/data-track/index.d.ts +2 -0
- package/types/main-app-framework/i18n/index.d.ts +538 -0
- package/types/main-app-framework/index.d.ts +29 -0
- package/types/main-app-framework/init-config/get-manu-config/api.d.ts +4 -0
- package/types/main-app-framework/init-config/get-manu-config/getInstanceInfo.d.ts +1 -0
- package/types/main-app-framework/init-config/get-manu-config/index.d.ts +47 -0
- package/types/main-app-framework/init-config/get-nav-config/api.d.ts +4 -0
- package/types/main-app-framework/init-config/get-nav-config/index.d.ts +6 -0
- package/types/main-app-framework/init-config/get-project-config/api.d.ts +5 -0
- package/types/main-app-framework/init-config/get-project-config/index.d.ts +1 -0
- package/types/main-app-framework/init-config/get-system-config/api.d.ts +12 -0
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +13 -0
- package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +8 -0
- package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +8 -0
- package/types/main-app-framework/init-config/index.d.ts +5 -0
- package/types/main-app-framework/init-layout/apis/index.d.ts +2 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +5 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +4 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +8 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-project.d.ts +1 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-search.d.ts +4 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +4 -0
- package/types/main-app-framework/init-layout/hooks/use-entry-app.d.ts +11 -0
- package/types/main-app-framework/init-layout/hooks/use-entry-menu.d.ts +7 -0
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +9 -0
- package/types/main-app-framework/init-layout/hooks/use-menu.d.ts +1 -0
- package/types/main-app-framework/init-layout/hooks/use-nav.d.ts +1 -0
- package/types/main-app-framework/init-layout/hooks/use-route-reload-unload.d.ts +4 -0
- package/types/main-app-framework/init-layout/hooks/use-route-watcher.d.ts +3 -0
- package/types/main-app-framework/init-layout/hooks/use-system-confirm.d.ts +1 -0
- package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +5 -0
- package/types/main-app-framework/init-layout/index.d.ts +11 -0
- package/types/main-app-framework/init-layout/store/index.d.ts +4 -0
- package/types/main-app-framework/init-platform/api.d.ts +2 -0
- package/types/main-app-framework/init-platform/index.d.ts +4 -0
- package/types/main-app-framework/micro-apps/index.d.ts +3 -0
- package/types/main-app-framework/micro-apps/use-device-panel-watcher.d.ts +1 -0
- package/types/main-app-framework/micro-apps/use-iot-watcher.d.ts +1 -0
- package/types/main-app-framework/micro-apps/use-user-info-watcher.d.ts +3 -0
- package/types/main-app-framework/pages/app/api.d.ts +2 -0
- package/types/main-app-framework/utils/index.d.ts +3 -0
- package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
- package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
- package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
- package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
- package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
- package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
- package/types/main-app-framework/utils/src/layout-confirm.d.ts +12 -0
- package/types/main-app-framework/utils/src/set-common-info.d.ts +66 -0
- package/types/main-app-framework/utils/src/tools.d.ts +5 -0
- package/types/micro-frontend/bus.d.ts +33 -0
- package/types/micro-frontend/index.d.ts +7 -0
- package/types/micro-frontend/store.d.ts +5 -0
- package/types/theme/index.d.ts +13 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** 系统配置===姚凯提供的 */
|
|
2
|
+
export declare const getWithdefault: (payload?: any, payloadConfig?: import('@das-fed/upf-utils/curring-http/type').CurringConfig) => import('@das-fed/upf-utils/curring-http/type').CurringRes;
|
|
3
|
+
export declare const useChangeEnterprise: () => {
|
|
4
|
+
changeEnterprisesVisible: import('vue').Ref<any, any>;
|
|
5
|
+
userId: import('vue').Ref<any, any>;
|
|
6
|
+
tenantId: import('vue').Ref<any, any>;
|
|
7
|
+
changeEnterprise: (tenantId: string) => any;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useProject: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const useEntryApp: () => {
|
|
2
|
+
beforeEntryApp: (microApp: any) => unknown;
|
|
3
|
+
entryApp: (options: {
|
|
4
|
+
microApp: any;
|
|
5
|
+
menuCode?: string;
|
|
6
|
+
menuPath?: string;
|
|
7
|
+
route?: any;
|
|
8
|
+
}) => any;
|
|
9
|
+
changeApp: (e: any) => any;
|
|
10
|
+
deleteApp: (e: any) => any;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const useLayoutInit: (platformInitNextTick: () => Promise<any>) => {
|
|
2
|
+
loading: import('vue').Ref<any, any>;
|
|
3
|
+
pageKey: import('vue').Ref<any, any>;
|
|
4
|
+
innerPage: import('vue').Ref<any, any>;
|
|
5
|
+
commandList: import('vue').Ref<any, any>;
|
|
6
|
+
layoutInited: import('vue').Ref<any, any>;
|
|
7
|
+
initNextTick: () => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
export { useLayoutInit };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useMenu: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useNav: () => {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSystemConfirm: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './hooks/use-initialization';
|
|
2
|
+
export * from './hooks/use-menu';
|
|
3
|
+
export * from './hooks/use-nav';
|
|
4
|
+
export * from './hooks/use-tabs';
|
|
5
|
+
export * from './hooks/use-system-confirm';
|
|
6
|
+
export * from './hooks/use-entry-app';
|
|
7
|
+
export * from './hooks/use-entry-menu';
|
|
8
|
+
export * from './hooks/use-route-watcher';
|
|
9
|
+
export * from './hooks/use-route-reload-unload';
|
|
10
|
+
export * from './hooks/nav-slots';
|
|
11
|
+
export * from './store';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDevicePanelWatcher: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIotWatcher: () => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type EncryptCallBackValue = {
|
|
2
|
+
value: null | string;
|
|
3
|
+
error: string | null;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* 加密
|
|
7
|
+
* @param options 配置项
|
|
8
|
+
* @param cryptoContent 带加密内容
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
declare const encrypt: (options: {
|
|
12
|
+
[k: string]: any;
|
|
13
|
+
} | undefined, cryptoContent: string) => Promise<EncryptCallBackValue>;
|
|
14
|
+
export { encrypt };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EncryptCallBackValue } from './type';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* aes 加密
|
|
5
|
+
* @param {string} encrypt
|
|
6
|
+
* @param {string} key
|
|
7
|
+
* @param {Object} options 配置对象, 可配置如下
|
|
8
|
+
* options.mode {String} 加密模式, 值 可能为 CBC (默认值) CFB OFB ECB, 如果是其他值 报错
|
|
9
|
+
* options.keySize {Number},秘钥长度字节数, 共三种可能, 为16, 24, 32, 如果是其他值, 返回 错误
|
|
10
|
+
* options.padding {String}, 填充, 值可能为 pkcs7(默认) pkcs5 zero iso10126 ansix923, 如果是其他值报错
|
|
11
|
+
* options.encoding {String} 输出的编码, base64 (默认) hex , 如果是其他, 报错
|
|
12
|
+
* options.iv {String} 偏移量, 当是 ECB模式时,要为空, 哪怕赋值也会被忽略, 其他模式不能为空
|
|
13
|
+
*
|
|
14
|
+
* @param {Function} complete 参数为 Object,其中
|
|
15
|
+
* object.value: 加密后的内容, 如果加密失败 则是 null
|
|
16
|
+
* object.error: 加密失败后的 错误提示
|
|
17
|
+
*/
|
|
18
|
+
declare function aes(encrypt: string, key: string, options: {
|
|
19
|
+
[k: string]: any;
|
|
20
|
+
}, complete: (p: EncryptCallBackValue) => void): void;
|
|
21
|
+
/**
|
|
22
|
+
* des 加密
|
|
23
|
+
* @param {string} encrypt
|
|
24
|
+
* @param {string} key
|
|
25
|
+
* @param {Object} options 配置对象, 可配置如下
|
|
26
|
+
* options.mode {String} 加密模式, 值 可能为 CBC (默认值) CFB OFB ECB, 如果是其他值 报错
|
|
27
|
+
* options.padding {String}, 填充, 值可能为 pkcs7(默认) pkcs5 zero iso10126 ansix923, 如果是其他值报错
|
|
28
|
+
* options.encoding {String} 输出的编码, base64 (默认) hex , 如果是其他, 报错
|
|
29
|
+
* options.iv {String} 偏移量, 当是 ECB模式时,要为空, 哪怕赋值也会被忽略, 其他模式不能为空
|
|
30
|
+
*
|
|
31
|
+
* @param {Function} complete 参数为 Object,其中
|
|
32
|
+
* object.value: 加密后的内容, 如果加密失败 则是 null
|
|
33
|
+
* object.error: 加密失败后的 错误提示
|
|
34
|
+
*/
|
|
35
|
+
declare function des(encrypt: string, key: string, options: {
|
|
36
|
+
[k: string]: any;
|
|
37
|
+
}, complete: (p: EncryptCallBackValue) => void): void;
|
|
38
|
+
declare const encryptUtil: {
|
|
39
|
+
aes: typeof aes;
|
|
40
|
+
des: typeof des;
|
|
41
|
+
};
|
|
42
|
+
export { encryptUtil };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum InnerParamType {
|
|
2
|
+
USER_ACCOUNT = "USER_ACCOUNT",
|
|
3
|
+
USER_PHONE = "USER_PHONE",
|
|
4
|
+
USER_TOKEN = "USER_TOKEN",
|
|
5
|
+
CURRENT_PROJECT = "CURRENT_PROJECT",
|
|
6
|
+
USER_NAME = "USER_NAME",
|
|
7
|
+
USER_NICKNAME = "USER_NICKNAME"
|
|
8
|
+
}
|
|
9
|
+
export declare enum HTMLQueryParamType {
|
|
10
|
+
TEXT = "TEXT",
|
|
11
|
+
JSON = "JSON"
|
|
12
|
+
}
|
|
13
|
+
export type EncryptCallBackValue = {
|
|
14
|
+
value: null | string;
|
|
15
|
+
error: string | null;
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 切换应用确认
|
|
3
|
+
* @param appCode 当前应用code
|
|
4
|
+
*/
|
|
5
|
+
declare const changeConfirm: (appCode: string) => void;
|
|
6
|
+
/**
|
|
7
|
+
* 关闭应用或者关闭页签确认
|
|
8
|
+
* @param appCode 当前应用code
|
|
9
|
+
* @param deleteTabs 当前需要关闭的页签code集合
|
|
10
|
+
*/
|
|
11
|
+
declare const closeConfirm: (appCode: string, deleteTabCodes: any[]) => void;
|
|
12
|
+
export { changeConfirm, closeConfirm };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/** 存储用户信息 */
|
|
2
|
+
export declare const setPersonalInfo: (data?: any) => void;
|
|
3
|
+
/** 存储租户详情 */
|
|
4
|
+
export declare const setTenantInfo: (data?: any) => void;
|
|
5
|
+
/** 存储有多少个语言类型 */
|
|
6
|
+
export declare const setLanguages: (val: number) => void;
|
|
7
|
+
/** 清除租户信息 */
|
|
8
|
+
export declare const clearTenantInfo: () => void;
|
|
9
|
+
/** 存储首页信息 */
|
|
10
|
+
export declare const setHomeInfo: (data?: any) => void;
|
|
11
|
+
/** 存储favIcon */
|
|
12
|
+
export declare const setFavIcon: (data?: string) => void;
|
|
13
|
+
/** 清除首页信息 */
|
|
14
|
+
export declare const clearHomeInfo: () => void;
|
|
15
|
+
/** 存储项目信息 */
|
|
16
|
+
export declare const setProjectInfo: (data: any) => void;
|
|
17
|
+
/** 存储项目详细信息 */
|
|
18
|
+
export declare const setProjectMessage: (data?: any) => void;
|
|
19
|
+
/** 清除项目数据 */
|
|
20
|
+
export declare const clearProjectInfo: () => void;
|
|
21
|
+
/** 存储标签页信息,如果传入对象则进行该项替换 */
|
|
22
|
+
export declare const setTabs: (options: any[]) => void;
|
|
23
|
+
/** 清除标签页信息 */
|
|
24
|
+
export declare const clearTabs: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* 存储应用数据
|
|
27
|
+
* @param options
|
|
28
|
+
*/
|
|
29
|
+
export declare const setSubApps: (options: any[]) => void;
|
|
30
|
+
/** 清除应用数据 */
|
|
31
|
+
export declare const clearSubApps: () => void;
|
|
32
|
+
/** 设置应用当前选中菜单 */
|
|
33
|
+
export declare const setSubAppsCurrentMenuCode: (value: string) => void;
|
|
34
|
+
/**
|
|
35
|
+
* 存储权限按钮数据
|
|
36
|
+
* @param data 菜单list
|
|
37
|
+
* @param code 当前子应用code
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
export declare const setPermissionBtns: (data: any[], code: string) => any;
|
|
41
|
+
/** 清除菜单数据 */
|
|
42
|
+
export declare const clearPermissionBtns: () => void;
|
|
43
|
+
/**
|
|
44
|
+
* 存储面包屑显示、隐藏数据
|
|
45
|
+
* @param flatMenuList 拍平的菜单list
|
|
46
|
+
* @param code 当前子应用code
|
|
47
|
+
* @returns
|
|
48
|
+
*/
|
|
49
|
+
export declare const setBreadcrumb: (flatMenuList: any[], code: string) => any;
|
|
50
|
+
/** 清除面包屑数据 */
|
|
51
|
+
export declare const clearBreadcrumb: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* 存储页签风格数据
|
|
54
|
+
* @param flatMenuList 拍平的菜单list
|
|
55
|
+
* @param code 当前子应用code
|
|
56
|
+
* @returns
|
|
57
|
+
*/
|
|
58
|
+
export declare const setTabStyle: (flatMenuList: any[], code: string) => any;
|
|
59
|
+
/** 清除页签风格数据 */
|
|
60
|
+
export declare const clearTabStyle: () => void;
|
|
61
|
+
/** 存储设备实例数据 */
|
|
62
|
+
export declare const setInstanceInfo: (data: {
|
|
63
|
+
instanceInfo: any;
|
|
64
|
+
}) => void;
|
|
65
|
+
/** 关闭所有应用:清除所有portal数据 */
|
|
66
|
+
export declare const clearPortal: () => void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Router } from 'vue-router';
|
|
2
|
+
import { SendMessageToMainApp, SendMessageToMicroApp, AddEventListenerFromMainApp, AddEventListenerFromMicroApp } from './type';
|
|
3
|
+
|
|
4
|
+
declare const microFrontend: {
|
|
5
|
+
loadMicroApp: (name: string) => void;
|
|
6
|
+
hideMicroApp: (name: string) => any;
|
|
7
|
+
hideAllMicroApp: () => void;
|
|
8
|
+
unloadMicroApp: (name: string) => void;
|
|
9
|
+
unloadAllMicroApp: () => void;
|
|
10
|
+
setMicroAppRoute: (router: Router, name: string, route: any) => Promise<any>;
|
|
11
|
+
sendMessageToMicroApp: SendMessageToMicroApp;
|
|
12
|
+
sendMessageToMainApp: SendMessageToMainApp;
|
|
13
|
+
addEventListenerFromMainApp: AddEventListenerFromMainApp;
|
|
14
|
+
addEventListenerFromMicroApp: AddEventListenerFromMicroApp;
|
|
15
|
+
setMainAppOverlay: (visible: boolean, style?: any) => void;
|
|
16
|
+
sessionStorage: {
|
|
17
|
+
key: any;
|
|
18
|
+
getItem: any;
|
|
19
|
+
setItem: (key: string, value: string) => void;
|
|
20
|
+
removeItem: (key: string) => void;
|
|
21
|
+
clear: () => void;
|
|
22
|
+
};
|
|
23
|
+
addMicroAppLifeCycleListener: (type: "onLoaded" | "onActivated" | "onDeactivated", cb: any) => {
|
|
24
|
+
remove: () => void;
|
|
25
|
+
};
|
|
26
|
+
triggerMicroAppLifeCycleListener: (type: "onLoaded" | "onActivated" | "onDeactivated", payload?: any, options?: {
|
|
27
|
+
autoRemove?: boolean;
|
|
28
|
+
}) => void;
|
|
29
|
+
reloadMicroAppRoute: (name: string, path: string) => any;
|
|
30
|
+
unloadMicroAppRoute: (name: string, path: string) => any;
|
|
31
|
+
setMainAppLayoutVisible: (value: boolean) => void;
|
|
32
|
+
};
|
|
33
|
+
export { microFrontend };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { microFrontend } from './bus';
|
|
2
|
+
import { default as DasMainAppLayout } from './das-main-app-layout.vue';
|
|
3
|
+
import { Router } from 'vue-router';
|
|
4
|
+
|
|
5
|
+
declare const initMainApp: (options?: any, router?: Router) => void;
|
|
6
|
+
declare const initMicroApp: (options?: any, router?: Router) => void;
|
|
7
|
+
export { initMainApp, initMicroApp, microFrontend, DasMainAppLayout };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const microAppRouterPrefix: import('vue').Ref<any, any>;
|
|
2
|
+
export declare const microApps: import('vue').Ref<any, any>;
|
|
3
|
+
export declare const microAppVisible: import('vue').Ref<any, any>;
|
|
4
|
+
export declare const excludeRoutes: import('vue').Ref<any, any>;
|
|
5
|
+
export declare const routeKeepAliveVisible: import('vue').Ref<any, any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const currentTheme: import('vue').Ref<any, any>;
|
|
2
|
+
declare const setThemeRule: (data: any, type?: "global" | "custom") => void;
|
|
3
|
+
declare const initTheme: (opt?: any) => any;
|
|
4
|
+
declare const setTheme: (value: string) => void;
|
|
5
|
+
/** 获取css var实际值 */
|
|
6
|
+
declare const getThemeRule: (key: string) => import('vue').ComputedRef<any>;
|
|
7
|
+
/** 获取css var字符串 */
|
|
8
|
+
declare const getVar: (key: string) => string;
|
|
9
|
+
/** 获取css var实际值 */
|
|
10
|
+
declare const getVarValue: (key: string) => import('vue').ComputedRef<any>;
|
|
11
|
+
export { initTheme, setTheme, getThemeRule, currentTheme, setThemeRule, getVar, getVarValue };
|
|
12
|
+
declare const _default: {};
|
|
13
|
+
export default _default;
|