@flatbiz/pro-layout 5.0.15 → 5.0.16
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/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export interface PageWrapperProps extends Omit<PageProps, "children"> {
|
|
|
82
82
|
}
|
|
83
83
|
export type PageWrapperRefApi = {
|
|
84
84
|
onRefresh: () => void;
|
|
85
|
+
onReload: () => void;
|
|
85
86
|
};
|
|
86
87
|
/**
|
|
87
88
|
* 为Page内置接口处理流程组件,如果无全局初始化接口请求场景,请使用Page组件
|
|
@@ -96,6 +97,7 @@ export type PageWrapperRefApi = {
|
|
|
96
97
|
*/
|
|
97
98
|
export declare const PageWrapper: import("react").ForwardRefExoticComponent<PageWrapperProps & import("react").RefAttributes<PageWrapperRefApi>>;
|
|
98
99
|
export declare const usePageWrapper: () => {
|
|
100
|
+
onReload: () => void;
|
|
99
101
|
onRefresh: () => void;
|
|
100
102
|
};
|
|
101
103
|
export interface FallbackProps {
|
package/dist/index.js
CHANGED
|
@@ -1407,7 +1407,8 @@ var PageWrapper = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1407
1407
|
});
|
|
1408
1408
|
useImperativeHandle(ref, function () {
|
|
1409
1409
|
return {
|
|
1410
|
-
onRefresh: onRefresh
|
|
1410
|
+
onRefresh: onRefresh,
|
|
1411
|
+
onReload: onReload
|
|
1411
1412
|
};
|
|
1412
1413
|
});
|
|
1413
1414
|
if (result.status === 'error') {
|
|
@@ -1441,6 +1442,7 @@ var PageWrapper = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1441
1442
|
}
|
|
1442
1443
|
return /*#__PURE__*/jsxs(PageWrapperCtxProvider, {
|
|
1443
1444
|
value: {
|
|
1445
|
+
onReload: onReload,
|
|
1444
1446
|
onRefresh: onRefresh
|
|
1445
1447
|
},
|
|
1446
1448
|
children: [againRefresh ? /*#__PURE__*/jsx(Loader, {
|