@flatbiz/pro-layout 4.2.12 → 4.3.1
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 +20 -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
|
/**
|
|
@@ -57,6 +57,7 @@ export type TMenuItem = {
|
|
|
57
57
|
defaultPage?: string;
|
|
58
58
|
parentId: null | number | string;
|
|
59
59
|
children: TMenuItem[];
|
|
60
|
+
key?: string;
|
|
60
61
|
};
|
|
61
62
|
export type TGlobalData = {
|
|
62
63
|
appName: string;
|
|
@@ -67,6 +68,15 @@ export type TGlobalData = {
|
|
|
67
68
|
defaultPage?: string;
|
|
68
69
|
routeBaseName: string;
|
|
69
70
|
elemAclLimits: string[];
|
|
71
|
+
moduleName?: string;
|
|
72
|
+
siblingProjectConfigs?: {
|
|
73
|
+
routeBaseName: string;
|
|
74
|
+
hostUrl: string;
|
|
75
|
+
modules: {
|
|
76
|
+
path: string;
|
|
77
|
+
name: string;
|
|
78
|
+
}[];
|
|
79
|
+
}[];
|
|
70
80
|
};
|
|
71
81
|
export type TAdminUser = null | {
|
|
72
82
|
id: string;
|
|
@@ -79,6 +89,7 @@ export type IframeTabItem = {
|
|
|
79
89
|
metaTitle?: string;
|
|
80
90
|
iframeKey: string;
|
|
81
91
|
menuId?: string;
|
|
92
|
+
pathSearch: string;
|
|
82
93
|
};
|
|
83
94
|
export interface TRouteItemProps {
|
|
84
95
|
path: string;
|
|
@@ -161,6 +172,12 @@ export type BootstrapOptions = {
|
|
|
161
172
|
* 是否禁用顶部菜单
|
|
162
173
|
*/
|
|
163
174
|
disableTopbarMenu?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* iframe模式顶部菜单点击操作类型,
|
|
177
|
+
* 1. refresh 刷新
|
|
178
|
+
* 2. route 路由切换
|
|
179
|
+
*/
|
|
180
|
+
iframeTopbarMenuClickType?: "refresh" | "route";
|
|
164
181
|
/**
|
|
165
182
|
* ANTD 默认的组建尺寸
|
|
166
183
|
*/
|
|
@@ -294,7 +311,8 @@ export type LayoutCtxProps = {
|
|
|
294
311
|
metaTitle?: string;
|
|
295
312
|
}) => void;
|
|
296
313
|
onUpdateIframeTabName: (name: string) => void;
|
|
297
|
-
normalModePositionMenu: (
|
|
314
|
+
normalModePositionMenu: (link: string) => void;
|
|
315
|
+
iframeTopRouteMenuChange: (item: TMenuItem) => void;
|
|
298
316
|
} & Omit<BootstrapOptions, "sidebarWidth" | "componentSize" | "locale">;
|
|
299
317
|
export interface LeaveMenuProps {
|
|
300
318
|
leaveMenus?: TMenuItem[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/pro-layout",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.1",
|
|
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",
|