@flatbiz/pro-layout 4.4.22 → 4.4.24

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/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- /// <reference types="node" />
2
1
  /// <reference types="prop-types" />
3
- /// <reference types="scheduler" />
4
2
 
5
3
  import { ModelType } from '@dimjs/model';
6
4
  import { ButtonWrapperProps, ConfigProviderWrapperProps } from '@flatbiz/antd';
@@ -450,7 +448,7 @@ export type BootstrapOptions = {
450
448
  * 2. 匹配不到菜单的情况下,隐藏
451
449
  * ```
452
450
  */
453
- hideSidebarMenu?: boolean | (() => boolean);
451
+ hideSidebarMenu?: boolean | ((pathname: string) => boolean);
454
452
  /**
455
453
  * 未配置到菜单情况下,是否隐藏侧边栏开关, 默认值 true/隐藏
456
454
  * ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/pro-layout",
3
- "version": "4.4.22",
3
+ "version": "4.4.24",
4
4
  "description": "WEB菜单布局",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -26,7 +26,8 @@
26
26
  "node": ">=18.0.0"
27
27
  },
28
28
  "dependencies": {
29
- "react-is": "^18.2.0"
29
+ "react-is": "^18.2.0",
30
+ "react-responsive": "^10.0.1"
30
31
  },
31
32
  "peerDependencies": {
32
33
  "@ant-design/icons": ">=5.0.1",
@@ -34,9 +35,9 @@
34
35
  "@dimjs/model": ">=1.1.8",
35
36
  "@dimjs/model-react": ">=1.1.8",
36
37
  "@dimjs/utils": ">=1.2.33",
37
- "@wove/react": ">=1.2.22",
38
38
  "@flatbiz/antd": ">=4.2.107",
39
39
  "@flatbiz/utils": ">=4.0.19",
40
+ "@wove/react": ">=1.2.22",
40
41
  "antd": ">=5.11.0",
41
42
  "react": ">=18.2.0",
42
43
  "react-dom": ">=18.2.0",
@@ -53,8 +54,8 @@
53
54
  "antd": "5.11.0",
54
55
  "react": "18.2.0",
55
56
  "react-dom": "18.2.0",
57
+ "react-is": "^18.2.0",
56
58
  "react-router": "^6.8.1",
57
- "react-router-dom": "^6.8.1",
58
- "react-is": "^18.2.0"
59
+ "react-router-dom": "^6.8.1"
59
60
  }
60
61
  }