@flatbiz/pro-layout 4.4.24 → 4.4.25
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/esm/index.css +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/index.d.ts +26 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -251,7 +251,19 @@ export type THeaderThemeConfig = {
|
|
|
251
251
|
menuTextFontSize?: number;
|
|
252
252
|
};
|
|
253
253
|
/**
|
|
254
|
-
*
|
|
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,8 @@ 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;
|
|
689
714
|
};
|
|
690
715
|
/**
|
|
691
716
|
* 使用Iframe通讯的API
|