@flatbiz/pro-layout 4.4.29 → 4.4.30

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/index.d.ts CHANGED
@@ -656,8 +656,13 @@ export declare const useRegisterRefreshCurrentIframeTab: (refreshKey: string, on
656
656
  * @returns
657
657
  */
658
658
  export declare const useRefreshRegisterIframeTab: () => (refreshKey: string, params?: TPlainObject) => void;
659
- /** iframe tab 激活回调 */
660
- export declare const useIframeTabActive: (callback: () => void) => void;
659
+ /**
660
+ * iframe tab 激活回调
661
+ * ```
662
+ * 1. 首次激活执行 callback,isFirst 为 true
663
+ * ```
664
+ */
665
+ export declare const useIframeTabActive: (callback: (isFirst: boolean) => void) => void;
661
666
  export type IframeHandler<T = unknown> = (data: T) => void;
662
667
  /**
663
668
  * iframe通信Demo:https://fex.qa.tcshuke.com/docs/admin/main/exchange
@@ -672,7 +677,9 @@ export type IframeApiProps = {
672
677
  link: string;
673
678
  name: string;
674
679
  metaTitle?: string;
675
- }) => IframeApiProps;
680
+ },
681
+ /** 是否关闭当前iframe tab */
682
+ isClosed?: boolean) => IframeApiProps;
676
683
  /**
677
684
  * 通过新iframe tab打开第三方页面
678
685
  *
@@ -730,6 +737,8 @@ export type IframeApiProps = {
730
737
  * ```
731
738
  */
732
739
  iframeTabOperation: (type: "removeOther" | "removeAll" | "removeMe" | "refreshMe") => void;
740
+ /** 判断是否在iframe中 */
741
+ isInIframe: () => boolean;
733
742
  };
734
743
  /**
735
744
  * 使用Iframe通讯的API
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/pro-layout",
3
- "version": "4.4.29",
3
+ "version": "4.4.30",
4
4
  "description": "WEB菜单布局",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",