@das-fed/mframe 0.0.24 → 0.0.25-hot.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/es5.js +858 -846
- package/index.d.ts +3 -3
- package/index.js +728 -725
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -447,8 +447,8 @@ declare type MicroAppItem = {
|
|
|
447
447
|
/** 子应用来源(协议、主机、端口) */
|
|
448
448
|
origin: string
|
|
449
449
|
|
|
450
|
-
/** 子应用路由激活的规则,唯一规则(注意不要和其他应用存在包含关系)。支持如 glob 语法,使用 picomatch
|
|
451
|
-
activeRule: string
|
|
450
|
+
/** 子应用路由激活的规则,唯一规则(注意不要和其他应用存在包含关系)。支持如 glob 语法,使用 picomatch 来匹配。支持字符串或字符串数组 */
|
|
451
|
+
activeRule: string | string[]
|
|
452
452
|
|
|
453
453
|
/** 作为子应用时,是否自动清除html、body、挂载点的背景颜色。默认清除,防止子应用的背景颜色覆盖主应用,但是会自动继到可用的布局容器中 */
|
|
454
454
|
autoClearBackground?: Boolean
|
|
@@ -530,7 +530,7 @@ export declare const useIframeManager: () => {
|
|
|
530
530
|
export declare const useRouter: () => {
|
|
531
531
|
replaceState: (path: string) => void;
|
|
532
532
|
addRule: (key: string, globString: string) => void;
|
|
533
|
-
match: (path: string) =>
|
|
533
|
+
match: (path: string) => string | false;
|
|
534
534
|
};
|
|
535
535
|
|
|
536
536
|
export declare const useRouterEventListener: () => {
|