@flatbiz/pro-layout 4.4.28 → 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/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/index.d.ts +14 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ export interface PageWrapperProps extends Omit<PageProps, "children"> {
|
|
|
83
83
|
errorRender?: (error?: TAny) => ReactElement;
|
|
84
84
|
}
|
|
85
85
|
export type PageWrapperRefApi = {
|
|
86
|
-
onRefresh: (
|
|
86
|
+
onRefresh: () => void;
|
|
87
87
|
};
|
|
88
88
|
/**
|
|
89
89
|
* 为Page内置接口处理流程组件,如果无全局初始化接口请求场景,请使用Page组件
|
|
@@ -99,6 +99,7 @@ export type PageWrapperRefApi = {
|
|
|
99
99
|
export declare const PageWrapper: import("react").ForwardRefExoticComponent<PageWrapperProps & import("react").RefAttributes<PageWrapperRefApi>>;
|
|
100
100
|
export declare const usePageWrapper: () => {
|
|
101
101
|
onReload: () => void;
|
|
102
|
+
onRefresh: () => void;
|
|
102
103
|
};
|
|
103
104
|
export interface FallbackProps {
|
|
104
105
|
error: Error;
|
|
@@ -655,8 +656,13 @@ export declare const useRegisterRefreshCurrentIframeTab: (refreshKey: string, on
|
|
|
655
656
|
* @returns
|
|
656
657
|
*/
|
|
657
658
|
export declare const useRefreshRegisterIframeTab: () => (refreshKey: string, params?: TPlainObject) => void;
|
|
658
|
-
/**
|
|
659
|
-
|
|
659
|
+
/**
|
|
660
|
+
* iframe tab 激活回调
|
|
661
|
+
* ```
|
|
662
|
+
* 1. 首次激活执行 callback,isFirst 为 true
|
|
663
|
+
* ```
|
|
664
|
+
*/
|
|
665
|
+
export declare const useIframeTabActive: (callback: (isFirst: boolean) => void) => void;
|
|
660
666
|
export type IframeHandler<T = unknown> = (data: T) => void;
|
|
661
667
|
/**
|
|
662
668
|
* iframe通信Demo:https://fex.qa.tcshuke.com/docs/admin/main/exchange
|
|
@@ -671,7 +677,9 @@ export type IframeApiProps = {
|
|
|
671
677
|
link: string;
|
|
672
678
|
name: string;
|
|
673
679
|
metaTitle?: string;
|
|
674
|
-
}
|
|
680
|
+
},
|
|
681
|
+
/** 是否关闭当前iframe tab */
|
|
682
|
+
isClosed?: boolean) => IframeApiProps;
|
|
675
683
|
/**
|
|
676
684
|
* 通过新iframe tab打开第三方页面
|
|
677
685
|
*
|
|
@@ -729,6 +737,8 @@ export type IframeApiProps = {
|
|
|
729
737
|
* ```
|
|
730
738
|
*/
|
|
731
739
|
iframeTabOperation: (type: "removeOther" | "removeAll" | "removeMe" | "refreshMe") => void;
|
|
740
|
+
/** 判断是否在iframe中 */
|
|
741
|
+
isInIframe: () => boolean;
|
|
732
742
|
};
|
|
733
743
|
/**
|
|
734
744
|
* 使用Iframe通讯的API
|