@flatbiz/pro-layout 4.3.21 → 4.3.23
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 +6 -0
- package/package.json +7 -11
package/index.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export type TGlobalData = {
|
|
|
82
82
|
export type TAdminUser = null | {
|
|
83
83
|
id: string;
|
|
84
84
|
userName: string;
|
|
85
|
+
avatar?: string;
|
|
85
86
|
};
|
|
86
87
|
export type IframeTabItem = {
|
|
87
88
|
id: string | number;
|
|
@@ -322,6 +323,11 @@ export type BootstrapOptions = {
|
|
|
322
323
|
* @returns
|
|
323
324
|
*/
|
|
324
325
|
onCustomUserName?: (global: TGlobalData) => string | ReactElement;
|
|
326
|
+
/**
|
|
327
|
+
* 自定义用户头像,当前使用的是GLOBAL.user.avatar字段
|
|
328
|
+
* @returns
|
|
329
|
+
*/
|
|
330
|
+
onCustomUserAvatar?: (global: TGlobalData) => string | ReactElement;
|
|
325
331
|
/**
|
|
326
332
|
* 显示header菜单icon
|
|
327
333
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/pro-layout",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.23",
|
|
4
4
|
"description": "WEB菜单布局",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -23,13 +23,10 @@
|
|
|
23
23
|
"author": "tcsk",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"engines": {
|
|
26
|
-
"node": ">=
|
|
26
|
+
"node": ">=18.0.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"
|
|
30
|
-
"@better-scroll/observe-dom": "2.5.0",
|
|
31
|
-
"@better-scroll/scroll-bar": "2.5.0",
|
|
32
|
-
"enquire.js": "2.1.6"
|
|
29
|
+
"react-is": "^18.2.0"
|
|
33
30
|
},
|
|
34
31
|
"peerDependencies": {
|
|
35
32
|
"@ant-design/icons": ">=5.0.1",
|
|
@@ -39,13 +36,12 @@
|
|
|
39
36
|
"@dimjs/utils": ">=1.2.33",
|
|
40
37
|
"@wove/react": ">=1.2.22",
|
|
41
38
|
"@flatbiz/antd": ">=4.2.77",
|
|
42
|
-
"@flatbiz/utils": ">=4.
|
|
39
|
+
"@flatbiz/utils": ">=4.0.17",
|
|
43
40
|
"antd": ">=5.5.1",
|
|
44
41
|
"react": ">=18.2.0",
|
|
45
42
|
"react-dom": ">=18.2.0",
|
|
46
43
|
"react-router": ">=6.8.1",
|
|
47
|
-
"react-router-dom": ">=6.8.1"
|
|
48
|
-
"react-is": ">=18.2.0"
|
|
44
|
+
"react-router-dom": ">=6.8.1"
|
|
49
45
|
},
|
|
50
46
|
"devDependencies": {
|
|
51
47
|
"@ant-design/icons": "^4.8.0",
|
|
@@ -57,8 +53,8 @@
|
|
|
57
53
|
"antd": "5.5.1",
|
|
58
54
|
"react": "18.2.0",
|
|
59
55
|
"react-dom": "18.2.0",
|
|
60
|
-
"react-router": "^6.
|
|
61
|
-
"react-router-dom": "^6.
|
|
56
|
+
"react-router": "^6.8.1",
|
|
57
|
+
"react-router-dom": "^6.8.1",
|
|
62
58
|
"react-is": "^18.2.0"
|
|
63
59
|
}
|
|
64
60
|
}
|