@flatbiz/pro-layout 3.0.14 → 4.0.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/cjs/index.css +133 -209
- package/cjs/index.js +1 -3
- package/cjs/index.js.map +1 -1
- package/index.d.ts +9 -9
- package/package.json +16 -16
package/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
/// <reference types="prop-types" />
|
|
3
2
|
/// <reference types="scheduler" />
|
|
4
3
|
|
|
5
|
-
import { ButtonProps } from 'antd';
|
|
4
|
+
import { ButtonProps, MenuProps } from 'antd';
|
|
5
|
+
import { ConfigProviderProps } from 'antd/es/config-provider';
|
|
6
6
|
import { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
7
|
-
import { Locale } from 'antd/lib/locale-provider';
|
|
8
7
|
import { CSSProperties, ComponentType, ReactElement } from 'react';
|
|
9
8
|
|
|
10
9
|
export interface FallbackProps {
|
|
@@ -120,7 +119,7 @@ export declare type BootstrapOptions = {
|
|
|
120
119
|
/**
|
|
121
120
|
* @default zhCN
|
|
122
121
|
*/
|
|
123
|
-
locale?:
|
|
122
|
+
locale?: "en" | "zh-cn";
|
|
124
123
|
/**
|
|
125
124
|
* 是否禁用顶部菜单
|
|
126
125
|
*/
|
|
@@ -157,7 +156,7 @@ export declare type BootstrapOptions = {
|
|
|
157
156
|
}) => void;
|
|
158
157
|
onErrorReset?: (...args: any[]) => void;
|
|
159
158
|
onSignOut?: (user: TAdminUser, hostUrl: string) => void;
|
|
160
|
-
|
|
159
|
+
accountOperateMenuItems?: MenuProps["items"];
|
|
161
160
|
onSessionExpired: (user: TAdminUser, hostUrl: string) => void;
|
|
162
161
|
verifySessionExpired: (err: any) => boolean;
|
|
163
162
|
/**
|
|
@@ -186,9 +185,10 @@ export declare type BootstrapOptions = {
|
|
|
186
185
|
sidebarThemeConfig?: {
|
|
187
186
|
bgColor?: string;
|
|
188
187
|
menuActiveBgColor?: string;
|
|
188
|
+
menuActiveTextColor?: string;
|
|
189
189
|
menuSelectedBgColor?: string;
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
menuSelectedTextColor?: string;
|
|
191
|
+
menuColor?: string;
|
|
192
192
|
/**
|
|
193
193
|
* 默认值 16
|
|
194
194
|
*/
|
|
@@ -202,11 +202,11 @@ export declare type BootstrapOptions = {
|
|
|
202
202
|
* 是否隐藏侧边栏中收缩按键
|
|
203
203
|
*/
|
|
204
204
|
hideSidebarShrink?: boolean;
|
|
205
|
+
configProviderProps?: ConfigProviderProps;
|
|
205
206
|
};
|
|
206
207
|
export declare type LayoutCtxProps = {
|
|
207
208
|
sidebarWidth: number;
|
|
208
209
|
componentSize: SizeType;
|
|
209
|
-
locale: Locale;
|
|
210
210
|
routeList: TRouteItemProps[];
|
|
211
211
|
breads: BreadsData;
|
|
212
212
|
} & Omit<BootstrapOptions, "sidebarWidth" | "componentSize" | "locale">;
|
|
@@ -214,7 +214,7 @@ export interface LeaveMenuProps {
|
|
|
214
214
|
leaveMenus?: TMenuItem[];
|
|
215
215
|
selectedKeys?: string[];
|
|
216
216
|
}
|
|
217
|
-
export declare const bootstrap: (options: BootstrapOptions
|
|
217
|
+
export declare const bootstrap: (options: BootstrapOptions) => void;
|
|
218
218
|
export declare const Bread: (props: any) => JSX.Element | null;
|
|
219
219
|
export declare type HistoryBackProps = {
|
|
220
220
|
breads: BreadsData;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/pro-layout",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "WEB菜单布局",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -26,23 +26,23 @@
|
|
|
26
26
|
"node": ">=13.8.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@better-scroll/mouse-wheel": "^2.
|
|
30
|
-
"@better-scroll/observe-dom": "^2.
|
|
31
|
-
"@better-scroll/scroll-bar": "^2.
|
|
29
|
+
"@better-scroll/mouse-wheel": "^2.5.0",
|
|
30
|
+
"@better-scroll/observe-dom": "^2.5.0",
|
|
31
|
+
"@better-scroll/scroll-bar": "^2.5.0",
|
|
32
32
|
"enquire.js": "^2.1.6"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@ant-design/icons": ">=4.
|
|
35
|
+
"@ant-design/icons": ">=4.8.0",
|
|
36
36
|
"@dimjs/lang": ">=1.2.23",
|
|
37
37
|
"@dimjs/model": ">=1.1.8",
|
|
38
38
|
"@dimjs/model-react": ">=1.1.8",
|
|
39
39
|
"@dimjs/utils": ">=1.2.23",
|
|
40
|
-
"@wove/react": ">=1.2.
|
|
41
|
-
"antd": "
|
|
42
|
-
"react": ">=
|
|
43
|
-
"react-dom": ">=
|
|
44
|
-
"react-router": "6.
|
|
45
|
-
"react-router-dom": "6.
|
|
40
|
+
"@wove/react": ">=1.2.22",
|
|
41
|
+
"antd": ">=5.0.4",
|
|
42
|
+
"react": ">=18.2.0",
|
|
43
|
+
"react-dom": ">=18.2.0",
|
|
44
|
+
"react-router": ">=6.4.4",
|
|
45
|
+
"react-router-dom": ">=6.4.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"@dimjs/model": "^1.1.8",
|
|
51
51
|
"@dimjs/model-react": "^1.1.8",
|
|
52
52
|
"@dimjs/utils": "^1.2.23",
|
|
53
|
-
"@wove/react": "^1.2.
|
|
54
|
-
"antd": "
|
|
53
|
+
"@wove/react": "^1.2.22",
|
|
54
|
+
"antd": "^5.0.4",
|
|
55
55
|
"react": "18.2.0",
|
|
56
56
|
"react-dom": "18.2.0",
|
|
57
|
-
"react-router": "6.
|
|
58
|
-
"react-router-dom": "6.
|
|
57
|
+
"react-router": "^6.4.4",
|
|
58
|
+
"react-router-dom": "^6.4.4"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "5381ba2486f8ee1fdfb6ff8957b82166f69a1b0c"
|
|
61
61
|
}
|