@flatbiz/pro-layout 4.3.0 → 4.3.2
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.js +3 -3
- package/esm/index.js.map +1 -1
- package/index.d.ts +11 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export type TMenuItem = {
|
|
|
57
57
|
defaultPage?: string;
|
|
58
58
|
parentId: null | number | string;
|
|
59
59
|
children: TMenuItem[];
|
|
60
|
+
key?: string;
|
|
60
61
|
};
|
|
61
62
|
export type TGlobalData = {
|
|
62
63
|
appName: string;
|
|
@@ -171,6 +172,12 @@ export type BootstrapOptions = {
|
|
|
171
172
|
* 是否禁用顶部菜单
|
|
172
173
|
*/
|
|
173
174
|
disableTopbarMenu?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* iframe模式顶部菜单点击操作类型,
|
|
177
|
+
* 1. refresh 刷新
|
|
178
|
+
* 2. route 路由切换
|
|
179
|
+
*/
|
|
180
|
+
iframeTopbarMenuClickType?: "refresh" | "route";
|
|
174
181
|
/**
|
|
175
182
|
* ANTD 默认的组建尺寸
|
|
176
183
|
*/
|
|
@@ -276,6 +283,8 @@ export type BootstrapOptions = {
|
|
|
276
283
|
iframeTabClickRefresh?: boolean;
|
|
277
284
|
/** 隐藏侧边栏菜单 */
|
|
278
285
|
hideSidebarMenu?: boolean;
|
|
286
|
+
/** 收缩后侧边栏宽度,默认:80 */
|
|
287
|
+
collapsedWidth?: number;
|
|
279
288
|
};
|
|
280
289
|
export type LayoutCtxProps = {
|
|
281
290
|
menus: TMenuItem[];
|
|
@@ -305,6 +314,7 @@ export type LayoutCtxProps = {
|
|
|
305
314
|
}) => void;
|
|
306
315
|
onUpdateIframeTabName: (name: string) => void;
|
|
307
316
|
normalModePositionMenu: (link: string) => void;
|
|
317
|
+
iframeTopRouteMenuChange: (item: TMenuItem) => void;
|
|
308
318
|
} & Omit<BootstrapOptions, "sidebarWidth" | "componentSize" | "locale">;
|
|
309
319
|
export interface LeaveMenuProps {
|
|
310
320
|
leaveMenus?: TMenuItem[];
|
|
@@ -369,7 +379,7 @@ export interface PageWrapperProps extends Omit<PageProps, "children"> {
|
|
|
369
379
|
/** 接口数据配置 */
|
|
370
380
|
serviceConfig: PageWrapperServiceConfig;
|
|
371
381
|
/** children 为函数,参数【respData】为接口返回数据 */
|
|
372
|
-
children?: (respData?: TAny) => ReactElement;
|
|
382
|
+
children?: ReactElement | ((respData?: TAny) => ReactElement);
|
|
373
383
|
/**
|
|
374
384
|
* 是否异步,默认:false
|
|
375
385
|
* ```
|