@das-fed/mframe 0.0.10 → 0.0.11
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/README.md +8 -8
- package/es5.js +1044 -1038
- package/index.d.ts +9 -0
- package/index.js +984 -977
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -319,6 +319,7 @@ declare const channelItem_3: {
|
|
|
319
319
|
on: (name: ChildernListener_2, opt1?: any, opt2?: any) => any;
|
|
320
320
|
once: (name: ChildernListener_2, opt1?: any, opt2?: any) => any;
|
|
321
321
|
};
|
|
322
|
+
event: Emitter<Event_4>;
|
|
322
323
|
};
|
|
323
324
|
|
|
324
325
|
declare type ChildernListener = 'layoutDataChange' | 'syncRouter';
|
|
@@ -390,6 +391,11 @@ declare type Event_3 = {
|
|
|
390
391
|
reportRouter: any;
|
|
391
392
|
};
|
|
392
393
|
|
|
394
|
+
declare type Event_4 = {
|
|
395
|
+
/** 主应用同步路由信息事件 */
|
|
396
|
+
syncRouter: any;
|
|
397
|
+
};
|
|
398
|
+
|
|
393
399
|
declare enum LifeCycleKey {
|
|
394
400
|
'registered' = 0,
|
|
395
401
|
'loading' = 1,
|
|
@@ -475,6 +481,9 @@ declare type RouterConfig = {
|
|
|
475
481
|
|
|
476
482
|
/** 应用的路由模式。默认history,可以选值hash */
|
|
477
483
|
mode?: 'history' | 'hash'
|
|
484
|
+
|
|
485
|
+
/** 是否拼接url path,默认会拼接 不拼接传false */
|
|
486
|
+
concatPath?: Boolean | undefined
|
|
478
487
|
}
|
|
479
488
|
|
|
480
489
|
declare type RouterEventListenerTypes = 'replaceState' | 'pushState';
|