@flatbiz/pro-layout 4.3.24 → 4.3.27

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
@@ -303,14 +303,31 @@ export type BootstrapOptions = {
303
303
  * iframe tab 点击刷新效果,默认:true
304
304
  */
305
305
  iframeTabClickRefresh?: boolean;
306
- /** 隐藏侧边栏菜单 */
307
- hideSidebarMenu?: boolean;
306
+ /**
307
+ * 能匹配到菜单的情况下,是否隐藏菜单,值请使用函数方式
308
+ * ```
309
+ * 1. disableTopbarMenu = true,改配置无效(无顶部菜单,侧边栏菜单不能隐藏)
310
+ * 2. 不能通过这个属性来控制【未配置到菜单隐藏侧边栏逻辑】
311
+ * 3. iframe架构只在main中配置有效
312
+ *
313
+ * 注意:隐藏侧边栏分为两种
314
+ * 1. 能匹配到菜单的情况下,需要隐藏菜单
315
+ * 2. 匹配不到菜单的情况下,隐藏
316
+ * ```
317
+ */
318
+ hideSidebarMenu?: boolean | (() => boolean);
319
+ /**
320
+ * 未配置到菜单情况下,是否隐藏侧边栏开关, 默认值 true/隐藏
321
+ * ```
322
+ * 1. disableTopbarMenu = true,改配置无效(无顶部菜单,侧边栏菜单不能隐藏)
323
+ * 2. iframe架构只在main中配置有效
324
+ * ```
325
+ */
326
+ unMatchHiddenSiderBar?: boolean;
308
327
  /** 收缩后侧边栏宽度,默认:80 */
309
328
  collapsedWidth?: number;
310
329
  /** 菜单为空渲染,默认:请联系运营人员确定菜单数据配置 */
311
330
  MenuEmptyRender?: ReactElement;
312
- /** disableTopbarMenu != true模式下,未配置到菜单,隐藏侧边栏,默认值:true */
313
- unMatchHiddenSiderBar?: boolean;
314
331
  /** 侧边栏是否显示搜索框 */
315
332
  sliderBarSearch?: boolean;
316
333
  /** iframeTab 页面可独立访问 */
@@ -362,7 +379,8 @@ export type LayoutCtxProps = {
362
379
  onUpdateIframeTabName: (name: string) => void;
363
380
  normalModePositionMenu: (link: string) => void;
364
381
  iframeTopRouteMenuChange: (item: TMenuItem) => void;
365
- } & Omit<BootstrapOptions, "sidebarWidth" | "componentSize" | "locale">;
382
+ hideSidebarMenu?: boolean;
383
+ } & Omit<BootstrapOptions, "sidebarWidth" | "componentSize" | "locale" | "hideSidebarMenu">;
366
384
  export interface LeaveMenuProps {
367
385
  leaveMenus?: TMenuItem[];
368
386
  selectedKeys?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/pro-layout",
3
- "version": "4.3.24",
3
+ "version": "4.3.27",
4
4
  "description": "WEB菜单布局",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",