@flatbiz/pro-layout 4.3.1 → 4.3.3
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 +3 -3
- package/esm/index.js.map +1 -1
- package/index.d.ts +9 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -160,6 +160,10 @@ export type BootstrapOptions = {
|
|
|
160
160
|
* 是否隐藏头部,默认值false
|
|
161
161
|
*/
|
|
162
162
|
hideHeader?: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* 顶部结构高度。默认:64
|
|
165
|
+
*/
|
|
166
|
+
headerHeight?: number;
|
|
163
167
|
/**
|
|
164
168
|
* @default 220
|
|
165
169
|
*/
|
|
@@ -283,6 +287,10 @@ export type BootstrapOptions = {
|
|
|
283
287
|
iframeTabClickRefresh?: boolean;
|
|
284
288
|
/** 隐藏侧边栏菜单 */
|
|
285
289
|
hideSidebarMenu?: boolean;
|
|
290
|
+
/** 收缩后侧边栏宽度,默认:80 */
|
|
291
|
+
collapsedWidth?: number;
|
|
292
|
+
/** 菜单为空文案,默认:请联系运营人员确定菜单数据配置 */
|
|
293
|
+
menuEmptyMessage?: string;
|
|
286
294
|
};
|
|
287
295
|
export type LayoutCtxProps = {
|
|
288
296
|
menus: TMenuItem[];
|
|
@@ -377,7 +385,7 @@ export interface PageWrapperProps extends Omit<PageProps, "children"> {
|
|
|
377
385
|
/** 接口数据配置 */
|
|
378
386
|
serviceConfig: PageWrapperServiceConfig;
|
|
379
387
|
/** children 为函数,参数【respData】为接口返回数据 */
|
|
380
|
-
children?: (respData?: TAny) => ReactElement;
|
|
388
|
+
children?: ReactElement | ((respData?: TAny) => ReactElement);
|
|
381
389
|
/**
|
|
382
390
|
* 是否异步,默认:false
|
|
383
391
|
* ```
|