@flatbiz/pro-layout 4.4.19 → 4.4.21

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
@@ -252,6 +252,9 @@ export type THeaderThemeConfig = {
252
252
  menuColor?: string;
253
253
  menuTextFontSize?: number;
254
254
  };
255
+ /**
256
+ * url地址上配置 hideBreads = 1,可隐藏面包屑显示
257
+ */
255
258
  export type BootstrapOptions = {
256
259
  className?: string;
257
260
  /** 是否紧凑模式 */
@@ -275,7 +278,9 @@ export type BootstrapOptions = {
275
278
  * element: lazy(() => import(\/* webpackChunkName: "xxx/xxx/module/chunks/detail" *\/ './detail')),
276
279
  * }]
277
280
  *
278
- * 3. 如果配置中 没有path = '*',程序会在路由中添加 <Route path="*" element={<NotFound />} />
281
+ * 3. 如果配置中没有path = '*' 或者 '/*',程序会在路由中添加 <Route path="*" element={<NotFound />} />,可自定义配置处理404页面
282
+ * 4. 如果GLOBAL中没有返回moduleName字段,path则需要添加moduleName前缀,例如: moduleName=/system/admin,则path = '/system/admin/xxx'
283
+ * 5. 有问题可联系xg15472
279
284
  * ```
280
285
  */
281
286
  routeList: TRouteItemProps[];
@@ -543,6 +548,8 @@ export type BootstrapOptions = {
543
548
  layoutPageClassName?: string;
544
549
  /** 取消iframe中路由地址同步至外部父窗口,在 iframe-main 中配置有效 */
545
550
  cancelIframeRouteSyncParent?: boolean;
551
+ /** 侧边栏菜单onChange事件 */
552
+ siderBarMenuOnChange?: (data: any) => void;
546
553
  };
547
554
  export type LayoutCtxProps = {
548
555
  menus: TMenuItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/pro-layout",
3
- "version": "4.4.19",
3
+ "version": "4.4.21",
4
4
  "description": "WEB菜单布局",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",