@flatbiz/pro-layout 4.4.30 → 4.4.32
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/index.css +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/index.d.ts +22 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -739,6 +739,13 @@ export type IframeApiProps = {
|
|
|
739
739
|
iframeTabOperation: (type: "removeOther" | "removeAll" | "removeMe" | "refreshMe") => void;
|
|
740
740
|
/** 判断是否在iframe中 */
|
|
741
741
|
isInIframe: () => boolean;
|
|
742
|
+
/** 判断iframe链路上一级是否存在 */
|
|
743
|
+
isExistPrevLink: () => boolean;
|
|
744
|
+
/** 更新菜单徽标 */
|
|
745
|
+
updateMenuBadge: (data: {
|
|
746
|
+
menuLink: string;
|
|
747
|
+
badgeCount: number;
|
|
748
|
+
}[]) => void;
|
|
742
749
|
};
|
|
743
750
|
/**
|
|
744
751
|
* 使用Iframe通讯的API
|
|
@@ -780,5 +787,20 @@ export declare const proLayoutModels: import("@dimjs/model").APIs<{
|
|
|
780
787
|
* 获取iframeTab下的唯一值,iframeTab未删除时,唯一值不变,iframeTab删除后再打开,唯一值变化
|
|
781
788
|
*/
|
|
782
789
|
export declare const getIframeTabUid: (prefix: string) => string;
|
|
790
|
+
export interface MenuPubSubMap {
|
|
791
|
+
changeMenuBadge: {
|
|
792
|
+
menuLink: string;
|
|
793
|
+
badgeCount: number;
|
|
794
|
+
}[];
|
|
795
|
+
}
|
|
796
|
+
export type IframeMainEvent = keyof MenuPubSubMap;
|
|
797
|
+
export declare const menuPubSub: {
|
|
798
|
+
/** 发布 */
|
|
799
|
+
publish<K extends IframeMainEvent>(event: K, data: MenuPubSubMap[K]): void;
|
|
800
|
+
/** 订阅 */
|
|
801
|
+
subscribe<K extends IframeMainEvent>(event: K, callback: (data: MenuPubSubMap[K]) => void): void;
|
|
802
|
+
/** 取消订阅 */
|
|
803
|
+
unsubscribe<K extends IframeMainEvent>(event: K, callback: (data: MenuPubSubMap[K]) => void): void;
|
|
804
|
+
};
|
|
783
805
|
|
|
784
806
|
export {};
|