@flatbiz/pro-layout 4.2.11 → 4.3.0
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 +3 -3
- package/esm/index.js.map +1 -1
- package/index.d.ts +15 -2
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export type TMenuItem = {
|
|
|
46
46
|
id: string | number;
|
|
47
47
|
name: string;
|
|
48
48
|
path: string;
|
|
49
|
-
link
|
|
49
|
+
link: string;
|
|
50
50
|
target?: "_blank" | "_self";
|
|
51
51
|
metaTitle?: string;
|
|
52
52
|
/**
|
|
@@ -67,6 +67,15 @@ export type TGlobalData = {
|
|
|
67
67
|
defaultPage?: string;
|
|
68
68
|
routeBaseName: string;
|
|
69
69
|
elemAclLimits: string[];
|
|
70
|
+
moduleName?: string;
|
|
71
|
+
siblingProjectConfigs?: {
|
|
72
|
+
routeBaseName: string;
|
|
73
|
+
hostUrl: string;
|
|
74
|
+
modules: {
|
|
75
|
+
path: string;
|
|
76
|
+
name: string;
|
|
77
|
+
}[];
|
|
78
|
+
}[];
|
|
70
79
|
};
|
|
71
80
|
export type TAdminUser = null | {
|
|
72
81
|
id: string;
|
|
@@ -79,6 +88,7 @@ export type IframeTabItem = {
|
|
|
79
88
|
metaTitle?: string;
|
|
80
89
|
iframeKey: string;
|
|
81
90
|
menuId?: string;
|
|
91
|
+
pathSearch: string;
|
|
82
92
|
};
|
|
83
93
|
export interface TRouteItemProps {
|
|
84
94
|
path: string;
|
|
@@ -294,7 +304,7 @@ export type LayoutCtxProps = {
|
|
|
294
304
|
metaTitle?: string;
|
|
295
305
|
}) => void;
|
|
296
306
|
onUpdateIframeTabName: (name: string) => void;
|
|
297
|
-
normalModePositionMenu: (
|
|
307
|
+
normalModePositionMenu: (link: string) => void;
|
|
298
308
|
} & Omit<BootstrapOptions, "sidebarWidth" | "componentSize" | "locale">;
|
|
299
309
|
export interface LeaveMenuProps {
|
|
300
310
|
leaveMenus?: TMenuItem[];
|
|
@@ -386,6 +396,9 @@ export type PageWrapperRefApi = {
|
|
|
386
396
|
* @returns
|
|
387
397
|
*/
|
|
388
398
|
export declare const PageWrapper: import("react").ForwardRefExoticComponent<PageWrapperProps & import("react").RefAttributes<PageWrapperRefApi>>;
|
|
399
|
+
export declare const usePageWrapper: () => {
|
|
400
|
+
onReload: () => void;
|
|
401
|
+
};
|
|
389
402
|
export type IframeHandler<T = unknown> = (data: T) => void;
|
|
390
403
|
/**
|
|
391
404
|
* 使用Iframe通讯的API
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/pro-layout",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "WEB菜单布局",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@dimjs/utils": ">=1.2.33",
|
|
40
40
|
"@wove/react": ">=1.2.22",
|
|
41
41
|
"@flatbiz/antd": ">=4.2.0",
|
|
42
|
-
"antd": ">=5.
|
|
42
|
+
"antd": ">=5.4.0",
|
|
43
43
|
"react": ">=18.2.0",
|
|
44
44
|
"react-dom": ">=18.2.0",
|
|
45
45
|
"react-router": ">=6.8.1",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@dimjs/model-react": "^1.1.8",
|
|
54
54
|
"@dimjs/utils": "^1.2.23",
|
|
55
55
|
"@wove/react": "^1.2.22",
|
|
56
|
-
"antd": "^5.
|
|
56
|
+
"antd": "^5.4.0",
|
|
57
57
|
"react": "18.2.0",
|
|
58
58
|
"react-dom": "18.2.0",
|
|
59
59
|
"react-router": "^6.6.1",
|