@flatbiz/pro-layout 4.3.0 → 4.3.1
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 +8 -0
- 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
|
*/
|
|
@@ -305,6 +312,7 @@ export type LayoutCtxProps = {
|
|
|
305
312
|
}) => void;
|
|
306
313
|
onUpdateIframeTabName: (name: string) => void;
|
|
307
314
|
normalModePositionMenu: (link: string) => void;
|
|
315
|
+
iframeTopRouteMenuChange: (item: TMenuItem) => void;
|
|
308
316
|
} & Omit<BootstrapOptions, "sidebarWidth" | "componentSize" | "locale">;
|
|
309
317
|
export interface LeaveMenuProps {
|
|
310
318
|
leaveMenus?: TMenuItem[];
|