@flatbiz/pro-layout 4.4.0 → 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/esm/index.css +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/index.d.ts +32 -7
- package/package.json +5 -5
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;
|
|
@@ -105,13 +106,10 @@ export type BootstrapOptions = {
|
|
|
105
106
|
/**
|
|
106
107
|
* ```
|
|
107
108
|
* 1. 正常用法
|
|
108
|
-
* [
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
* path: '/detail',
|
|
113
|
-
* element: <Detail />
|
|
114
|
-
* }]
|
|
109
|
+
* [
|
|
110
|
+
* { path: '/', element: <Home /> },
|
|
111
|
+
* { path: '/detail', element: <Detail />}
|
|
112
|
+
* ]
|
|
115
113
|
*
|
|
116
114
|
* 2. 懒加载用法
|
|
117
115
|
* [{
|
|
@@ -367,6 +365,16 @@ export interface LeaveMenuProps {
|
|
|
367
365
|
leaveMenus?: TMenuItem[];
|
|
368
366
|
selectedKeys?: string[];
|
|
369
367
|
}
|
|
368
|
+
/**
|
|
369
|
+
* 外部针对出现 iframe tab标题为未知页面的配置、或者想修改二级页面tab标题的,在main模块中设置
|
|
370
|
+
* ```
|
|
371
|
+
* window['_iframeTabConfig'] = {
|
|
372
|
+
* '/system-get/menu3/detail': {
|
|
373
|
+
* name: '详情',
|
|
374
|
+
* },
|
|
375
|
+
* };
|
|
376
|
+
* ```
|
|
377
|
+
*/
|
|
370
378
|
export declare const bootstrap: (options: BootstrapOptions) => void;
|
|
371
379
|
export declare let message: MessageInstance;
|
|
372
380
|
export declare let notification: NotificationInstance;
|
|
@@ -458,6 +466,23 @@ export declare const PageWrapper: import("react").ForwardRefExoticComponent<Page
|
|
|
458
466
|
export declare const usePageWrapper: () => {
|
|
459
467
|
onReload: () => void;
|
|
460
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;
|
|
461
486
|
export type IframeHandler<T = unknown> = (data: T) => void;
|
|
462
487
|
/**
|
|
463
488
|
* 使用Iframe通讯的API
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/pro-layout",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.2",
|
|
4
4
|
"description": "WEB菜单布局",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"@dimjs/model-react": ">=1.1.8",
|
|
36
36
|
"@dimjs/utils": ">=1.2.33",
|
|
37
37
|
"@wove/react": ">=1.2.22",
|
|
38
|
-
"@flatbiz/antd": ">=4.2.
|
|
39
|
-
"@flatbiz/utils": ">=4.0.
|
|
40
|
-
"antd": ">=5.
|
|
38
|
+
"@flatbiz/antd": ">=4.2.107",
|
|
39
|
+
"@flatbiz/utils": ">=4.0.19",
|
|
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.
|
|
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",
|