@flatbiz/pro-layout 4.4.24 → 4.4.26

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
@@ -251,7 +251,19 @@ export type THeaderThemeConfig = {
251
251
  menuTextFontSize?: number;
252
252
  };
253
253
  /**
254
- * url地址上配置 hideBreads = 1,可隐藏面包屑显示
254
+ * 1. 隐藏面包屑:配置hideBreadsPathList
255
+ * 2. iframe模式下,在main模块中,配置window['_iframeTabConfig'],可自定义iframeTab名称
256
+ * ```
257
+ * 例如
258
+ * window['_iframeTabConfig'] = {
259
+ * '/mine': {
260
+ * name: '我的信息',
261
+ * },
262
+ * '/case/pool/detail': {
263
+ * name: '案件池详情',
264
+ * },
265
+ * };
266
+ * ```
255
267
  */
256
268
  export type BootstrapOptions = {
257
269
  className?: string;
@@ -548,6 +560,15 @@ export type BootstrapOptions = {
548
560
  cancelIframeRouteSyncParent?: boolean;
549
561
  /** 侧边栏菜单onChange事件 */
550
562
  siderBarMenuOnChange?: (data: any) => void;
563
+ /**
564
+ * 隐藏面包屑 path 列表
565
+ * ```
566
+ * 1. 如果是 iframe 模式,需要在 iframe-tab 入口中配置
567
+ * ```
568
+ */
569
+ hideBreadsPathList?: string[];
570
+ /** iframeTab 激活事件 */
571
+ onIframeTabActiveEvent?: (item: TPlainObject) => void;
551
572
  };
552
573
  export type LayoutCtxProps = {
553
574
  menus: TMenuItem[];
@@ -592,6 +613,8 @@ export type LayoutCtxProps = {
592
613
  }) => void;
593
614
  headerThemeConfig?: THeaderThemeConfig;
594
615
  sidebarThemeConfig?: TSidebarThemeConfig;
616
+ onChangeActiveTabItemRedDot: (visible: boolean) => void;
617
+ redDotMap: Record<string, boolean>;
595
618
  } & Omit<BootstrapOptions, "sidebarWidth" | "componentSize" | "locale" | "hideSidebarMenu" | "headerThemeConfig" | "sidebarThemeConfig">;
596
619
  export interface LeaveMenuProps {
597
620
  leaveMenus?: TMenuItem[];
@@ -686,6 +709,18 @@ export type IframeApiProps = {
686
709
  openNewTabItemByMenuId: (id: string) => IframeApiProps;
687
710
  /** 关闭当前iframe-tab,跳转上一个链路tab */
688
711
  closedIframeTabToPrevlink: () => IframeApiProps;
712
+ /** 当前tabItem小红点实现切换 */
713
+ tabItemRedDotToggle: (visible: boolean) => void;
714
+ /**
715
+ * iframeTab操作
716
+ * ```
717
+ * 1. removeOther - 移除其他iframe-tab
718
+ * 2. removeAll - 移除所有iframe-tab
719
+ * 3. removeMe - 移除当前iframe-tab
720
+ * 4. refreshMe - 刷新当前iframe-tab
721
+ * ```
722
+ */
723
+ iframeTabOperation: (type: "removeOther" | "removeAll" | "removeMe" | "refreshMe") => void;
689
724
  };
690
725
  /**
691
726
  * 使用Iframe通讯的API
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/pro-layout",
3
- "version": "4.4.24",
3
+ "version": "4.4.26",
4
4
  "description": "WEB菜单布局",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",