@flatbiz/pro-layout 4.4.1 → 4.4.2

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
@@ -26,6 +26,7 @@ export type TMenuItem = {
26
26
  * iconImg&iconImgActive为自定义png图标
27
27
  */
28
28
  iconImg?: string;
29
+ icon?: string;
29
30
  iconImgActive?: string;
30
31
  defaultPage?: string;
31
32
  parentId: null | number | string;
@@ -465,6 +466,23 @@ export declare const PageWrapper: import("react").ForwardRefExoticComponent<Page
465
466
  export declare const usePageWrapper: () => {
466
467
  onReload: () => void;
467
468
  };
469
+ /**
470
+ * iframe tab 注册刷新方法
471
+ * ```
472
+ * 1. 定义refreshKey唯一值
473
+ * 2. 与 useRefreshRegisterIframeTab 结合实现iframe tab之间的刷新动作
474
+ * ```
475
+ */
476
+ export declare const useRegisterRefreshCurrentIframeTab: (refreshKey: string, onRefresh: (params?: TPlainObject) => Promise<void>) => void;
477
+ /**
478
+ * 根据 refreshKey,刷新指定iframe tab
479
+ * ```
480
+ * 1. 使用 useRegisterRefreshCurrentIframeTab 定义的refreshKey
481
+ * 2. 可通过 params 给刷新方法传参
482
+ * ```
483
+ * @returns
484
+ */
485
+ export declare const useRefreshRegisterIframeTab: () => (refreshKey: string, params?: TPlainObject) => void;
468
486
  export type IframeHandler<T = unknown> = (data: T) => void;
469
487
  /**
470
488
  * 使用Iframe通讯的API
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/pro-layout",
3
- "version": "4.4.1",
3
+ "version": "4.4.2",
4
4
  "description": "WEB菜单布局",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -37,7 +37,7 @@
37
37
  "@wove/react": ">=1.2.22",
38
38
  "@flatbiz/antd": ">=4.2.107",
39
39
  "@flatbiz/utils": ">=4.0.19",
40
- "antd": ">=5.5.1",
40
+ "antd": ">=5.11.0",
41
41
  "react": ">=18.2.0",
42
42
  "react-dom": ">=18.2.0",
43
43
  "react-router": ">=6.8.1",
@@ -50,7 +50,7 @@
50
50
  "@dimjs/model-react": "^1.1.8",
51
51
  "@dimjs/utils": "^1.2.23",
52
52
  "@wove/react": "^1.2.22",
53
- "antd": "5.5.1",
53
+ "antd": "5.11.0",
54
54
  "react": "18.2.0",
55
55
  "react-dom": "18.2.0",
56
56
  "react-router": "^6.8.1",