@flatbiz/pro-layout 4.1.9 → 4.2.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/index.d.ts CHANGED
@@ -179,6 +179,7 @@ export type BootstrapOptions = {
179
179
  */
180
180
  LayoutComponent?: ComponentType<{
181
181
  style?: CSSProperties;
182
+ hideHeader?: boolean;
182
183
  }>;
183
184
  ErrorFallback?: ComponentType<FallbackProps>;
184
185
  /**
@@ -206,11 +207,11 @@ export type BootstrapOptions = {
206
207
  /**
207
208
  * 面包屑起始标题
208
209
  */
209
- breadTitle?: string | JSX.Element;
210
+ breadTitle?: string | ReactElement;
210
211
  /**
211
212
  * 面包屑位置功能扩展
212
213
  */
213
- breadExtendRender?: JSX.Element;
214
+ breadExtendRender?: ReactElement;
214
215
  /**
215
216
  * 隐藏默认设置的面包屑,默认值false
216
217
  */
@@ -289,9 +290,9 @@ export type LayoutCtxProps = {
289
290
  onChangeSelectedKeys: (selectedKeys: string[]) => void;
290
291
  onChangeOpendKeys: (opendKeys: string[]) => void;
291
292
  addOrUpdateIframeTab: (item: TMenuItem) => void;
292
- onIframChange: (id: string, type: "menuClick" | "iframTabClick") => void;
293
+ onIframeChange: (id: string, type: "menuClick" | "iframeTabClick" | "iframeRefresh") => void;
293
294
  onDeleteIframeTabItem: (type: "other" | "all" | "me", id?: string) => void;
294
- onIframChangeByHttpUrl: (url: string, options?: {
295
+ onIframeChangeByHttpUrl: (url: string, options?: {
295
296
  name?: string;
296
297
  metaTitle?: string;
297
298
  }) => void;
@@ -305,7 +306,12 @@ export declare const bootstrap: (options: BootstrapOptions) => void;
305
306
  export declare let message: MessageInstance;
306
307
  export declare let notification: NotificationInstance;
307
308
  export declare let modal: Omit<ModalStaticFunctions, "warn">;
308
- export declare const Bread: (props: any) => JSX.Element | null;
309
+ export type BreadProps = {
310
+ breads?: BreadsData;
311
+ breadTitle?: string | ReactElement;
312
+ children?: ReactElement;
313
+ };
314
+ export declare const Bread: (props: BreadProps) => JSX.Element | null;
309
315
  export type HistoryBackProps = {
310
316
  breads: BreadsData;
311
317
  level?: number;
@@ -411,6 +417,7 @@ export declare const useIframe: <T>(onReceivedMessageCallback?: IframeHandler<T>
411
417
  export declare const LayoutPage: (props: {
412
418
  style?: CSSProperties;
413
419
  children?: ReactElement;
420
+ hideHeader?: boolean;
414
421
  }) => JSX.Element;
415
422
 
416
423
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/pro-layout",
3
- "version": "4.1.9",
3
+ "version": "4.2.1",
4
4
  "description": "WEB菜单布局",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -26,10 +26,10 @@
26
26
  "node": ">=13.8.0"
27
27
  },
28
28
  "dependencies": {
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
- "enquire.js": "^2.1.6"
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
+ "enquire.js": "2.1.6"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@ant-design/icons": ">=5.0.1",
@@ -38,6 +38,7 @@
38
38
  "@dimjs/model-react": ">=1.1.8",
39
39
  "@dimjs/utils": ">=1.2.33",
40
40
  "@wove/react": ">=1.2.22",
41
+ "@flatbiz/antd": ">=4.2.0",
41
42
  "antd": ">=5.2.1",
42
43
  "react": ">=18.2.0",
43
44
  "react-dom": ">=18.2.0",