@flatbiz/pro-layout 4.4.23 → 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 -3
- package/package.json +3 -2
package/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
/// <reference types="prop-types" />
|
|
3
|
-
/// <reference types="scheduler" />
|
|
4
2
|
|
|
5
3
|
import { ModelType } from '@dimjs/model';
|
|
6
4
|
import { ButtonWrapperProps, ConfigProviderWrapperProps } from '@flatbiz/antd';
|
|
@@ -253,7 +251,19 @@ export type THeaderThemeConfig = {
|
|
|
253
251
|
menuTextFontSize?: number;
|
|
254
252
|
};
|
|
255
253
|
/**
|
|
256
|
-
*
|
|
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
|
+
* ```
|
|
257
267
|
*/
|
|
258
268
|
export type BootstrapOptions = {
|
|
259
269
|
className?: string;
|
|
@@ -550,6 +560,15 @@ export type BootstrapOptions = {
|
|
|
550
560
|
cancelIframeRouteSyncParent?: boolean;
|
|
551
561
|
/** 侧边栏菜单onChange事件 */
|
|
552
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;
|
|
553
572
|
};
|
|
554
573
|
export type LayoutCtxProps = {
|
|
555
574
|
menus: TMenuItem[];
|
|
@@ -594,6 +613,8 @@ export type LayoutCtxProps = {
|
|
|
594
613
|
}) => void;
|
|
595
614
|
headerThemeConfig?: THeaderThemeConfig;
|
|
596
615
|
sidebarThemeConfig?: TSidebarThemeConfig;
|
|
616
|
+
onChangeActiveTabItemRedDot: (visible: boolean) => void;
|
|
617
|
+
redDotMap: Record<string, boolean>;
|
|
597
618
|
} & Omit<BootstrapOptions, "sidebarWidth" | "componentSize" | "locale" | "hideSidebarMenu" | "headerThemeConfig" | "sidebarThemeConfig">;
|
|
598
619
|
export interface LeaveMenuProps {
|
|
599
620
|
leaveMenus?: TMenuItem[];
|
|
@@ -688,6 +709,8 @@ export type IframeApiProps = {
|
|
|
688
709
|
openNewTabItemByMenuId: (id: string) => IframeApiProps;
|
|
689
710
|
/** 关闭当前iframe-tab,跳转上一个链路tab */
|
|
690
711
|
closedIframeTabToPrevlink: () => IframeApiProps;
|
|
712
|
+
/** 当前tabItem小红点实现切换 */
|
|
713
|
+
tabItemRedDotToggle: (visible: boolean) => void;
|
|
691
714
|
};
|
|
692
715
|
/**
|
|
693
716
|
* 使用Iframe通讯的API
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/pro-layout",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.25",
|
|
4
4
|
"description": "WEB菜单布局",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"node": ">=18.0.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"react-is": "^18.2.0"
|
|
29
|
+
"react-is": "^18.2.0",
|
|
30
|
+
"react-responsive": "^10.0.1"
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|
|
32
33
|
"@ant-design/icons": ">=5.0.1",
|