@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.
@@ -18,4 +18,5 @@ export declare const startApp: (name: string, options?: Partial<AppOption>) => P
18
18
  * @param {string} name - 应用程序的名称
19
19
  */
20
20
  export declare const stopApp: (name: string) => void;
21
+ export declare const reloadApp: (name: string) => void;
21
22
  export { microInit };
@@ -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;
@@ -13,7 +13,7 @@ export interface App extends AppOption {
13
13
  instance: MicroApp
14
14
  }
15
15
  export interface MicroInitOptions {
16
- hideHeaderCssSelector?: string
16
+ hideHeaderCssSelector?: string | string[]
17
17
  authHandler?: (token: string) => void
18
18
  }
19
19
 
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xingtukeji/micro",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "dist/index.js",