@flatbiz/pro-layout 2.5.30 → 3.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/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
+ /// <reference types="node" />
1
2
  /// <reference types="prop-types" />
2
3
  /// <reference types="scheduler" />
3
4
 
4
5
  import { ButtonProps } from 'antd';
5
6
  import { SizeType } from 'antd/lib/config-provider/SizeContext';
6
7
  import { Locale } from 'antd/lib/locale-provider';
7
- import { CSSProperties, ComponentType, FC, ReactElement } from 'react';
8
+ import { CSSProperties, ComponentType, ReactElement } from 'react';
8
9
 
9
10
  export interface FallbackProps {
10
11
  error: Error;
@@ -216,7 +217,7 @@ export interface LeaveMenuProps {
216
217
  selectedKeys?: string[];
217
218
  }
218
219
  export declare const bootstrap: (options: BootstrapOptions, callback?: () => void) => void;
219
- export declare const Bread: FC;
220
+ export declare const Bread: (props: any) => JSX.Element | null;
220
221
  export declare type HistoryBackProps = {
221
222
  breads: BreadsData;
222
223
  level?: number;
@@ -235,7 +236,7 @@ export declare type HistoryBackProps = {
235
236
  * 使用iframe tab的项目,在执行路由回退时使用
236
237
  * ```
237
238
  */
238
- export declare const HistoryBackButton: FC<HistoryBackProps & ButtonProps>;
239
+ export declare const HistoryBackButton: (props: HistoryBackProps & ButtonProps) => JSX.Element;
239
240
  export declare const useHistoryBack: (props: HistoryBackProps) => {
240
241
  path: string;
241
242
  };
@@ -245,8 +246,9 @@ export interface PageProps {
245
246
  style?: CSSProperties;
246
247
  fullIndex?: number;
247
248
  bread?: JSX.Element;
249
+ children?: ReactElement | ReactElement[];
248
250
  }
249
- export declare const Page: FC<PageProps>;
251
+ export declare const Page: (props: PageProps) => JSX.Element;
250
252
  export declare type IframeHandler<T = unknown> = (data: T) => void;
251
253
  /**
252
254
  * 使用Iframe通讯的API
@@ -282,8 +284,9 @@ export declare const useIframe: <T>(onReceivedMessageCallback?: IframeHandler<T>
282
284
  id: string;
283
285
  }): any;
284
286
  };
285
- export declare const LayoutPage: FC<{
287
+ export declare const LayoutPage: (props: {
286
288
  style?: CSSProperties;
287
- }>;
289
+ children?: ReactElement;
290
+ }) => JSX.Element;
288
291
 
289
292
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/pro-layout",
3
- "version": "2.5.30",
3
+ "version": "3.0.0",
4
4
  "description": "WEB菜单布局",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -32,25 +32,30 @@
32
32
  "enquire.js": "^2.1.6"
33
33
  },
34
34
  "peerDependencies": {
35
- "@ant-design/icons": "^4.7.0",
36
- "@dimjs/lang": "^1.2.19",
37
- "@dimjs/model": "^1.1.7",
38
- "@dimjs/model-react": "^1.1.7",
39
- "@dimjs/utils": "^1.2.19",
40
- "@wove/react": "^1.2.19"
35
+ "@ant-design/icons": ">=4.7.0",
36
+ "@dimjs/lang": ">=1.2.23",
37
+ "@dimjs/model": ">=1.1.8",
38
+ "@dimjs/model-react": ">=1.1.8",
39
+ "@dimjs/utils": ">=1.2.23",
40
+ "@wove/react": ">=1.2.21",
41
+ "antd": "4.22.2",
42
+ "react": ">=17.0.2",
43
+ "react-dom": ">=17.0.2",
44
+ "react-router": "6.3.0",
45
+ "react-router-dom": "6.3.0"
41
46
  },
42
47
  "devDependencies": {
43
48
  "@ant-design/icons": "^4.7.0",
44
- "@dimjs/lang": "^1.2.19",
45
- "@dimjs/model": "^1.1.7",
46
- "@dimjs/model-react": "^1.1.7",
47
- "@dimjs/utils": "^1.2.19",
48
- "@wove/react": "^1.2.19",
49
- "antd": "^4.22.2",
50
- "react": "^17.0.2",
51
- "react-dom": "^17.0.2",
52
- "react-router": "^6.3.0",
53
- "react-router-dom": "^6.3.0"
49
+ "@dimjs/lang": "^1.2.23",
50
+ "@dimjs/model": "^1.1.8",
51
+ "@dimjs/model-react": "^1.1.8",
52
+ "@dimjs/utils": "^1.2.23",
53
+ "@wove/react": "^1.2.21",
54
+ "antd": "4.22.2",
55
+ "react": "18.2.0",
56
+ "react-dom": "18.2.0",
57
+ "react-router": "6.3.0",
58
+ "react-router-dom": "6.3.0"
54
59
  },
55
- "gitHead": "7c4e2fe7bd91464208394e710e160c1f6af87602"
60
+ "gitHead": "590413f8f5e11d9d19986e1ed1388279d907a956"
56
61
  }