@flatbiz/pro-layout 4.2.7 → 4.2.9

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
@@ -304,8 +304,6 @@ export declare let message: MessageInstance;
304
304
  export declare let notification: NotificationInstance;
305
305
  export declare let modal: Omit<ModalStaticFunctions, "warn">;
306
306
  export type BreadProps = {
307
- breads?: BreadsData;
308
- breadTitle?: string | ReactElement;
309
307
  children?: ReactElement;
310
308
  };
311
309
  export declare const Bread: (props: BreadProps) => JSX.Element | null;
@@ -340,6 +338,17 @@ export interface PageProps {
340
338
  bread?: JSX.Element;
341
339
  children?: ReactElement | ReactElement[];
342
340
  }
341
+ /**
342
+ * 页面包装组件
343
+ * ```
344
+ * 1. 如果初始化面包屑被隐藏,在特殊页面级可以独立设置显示面包屑
345
+ * <Page bread={<Bread />}/>
346
+ * 2. 如果需要在 面包屑上添加按钮,初始化设置 bootstrap.hideDefaultBread = true,在需要按钮的页面上配置
347
+ * <Page bread={<Bread><Button>我是按钮</Button></Bread>}/>
348
+ * ```
349
+ * @param props
350
+ * @returns
351
+ */
343
352
  export declare const Page: (props: PageProps) => JSX.Element;
344
353
  export type PageWrapperServiceConfig = {
345
354
  onRequest: (params?: TAny) => Promise<TPlainObject>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/pro-layout",
3
- "version": "4.2.7",
3
+ "version": "4.2.9",
4
4
  "description": "WEB菜单布局",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",