@xingtukeji/micro 1.0.7 → 1.0.9
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/dist/index.js +440 -425
- package/dist/types/api.d.ts +1 -0
- package/dist/types/components/XTMicroView.vue.d.ts +6 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/parent.d.ts +2 -0
- package/package.json +1 -1
package/dist/types/api.d.ts
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
appId: StringConstructor;
|
|
3
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
4
|
+
appId: StringConstructor;
|
|
5
|
+
}>>, {}, {}>;
|
|
6
|
+
export default _default;
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/parent.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare class MicroApp {
|
|
|
17
17
|
* 预加载app,先放到body,待启动时,挪过来
|
|
18
18
|
*/
|
|
19
19
|
preload(): void;
|
|
20
|
+
reload(): void;
|
|
20
21
|
changeOptions(options: Partial<AppOption>): void;
|
|
21
22
|
onLoad(_event: Event): void;
|
|
22
23
|
onUnload(_event: Event): void;
|
|
@@ -24,5 +25,6 @@ export declare class MicroApp {
|
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
27
|
* 初始化主应用微前端
|
|
28
|
+
* 包括:监听子应用消息,同步子应用路由到主应用上
|
|
27
29
|
*/
|
|
28
30
|
export declare const mainMicroInit: () => void;
|