@flatbiz/pro-layout 4.3.18 → 4.3.21
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 +1 -2
- package/esm/index.js.map +1 -1
- package/index.d.ts +11 -2
- package/package.json +3 -2
package/index.d.ts
CHANGED
|
@@ -317,6 +317,15 @@ export type BootstrapOptions = {
|
|
|
317
317
|
containerWrapper?: ComponentType<{
|
|
318
318
|
children: ReactElement;
|
|
319
319
|
}>;
|
|
320
|
+
/**
|
|
321
|
+
* 自定义用户名称,当前使用的是GLOBAL.user.userName字段
|
|
322
|
+
* @returns
|
|
323
|
+
*/
|
|
324
|
+
onCustomUserName?: (global: TGlobalData) => string | ReactElement;
|
|
325
|
+
/**
|
|
326
|
+
* 显示header菜单icon
|
|
327
|
+
*/
|
|
328
|
+
showHeaderMenuIcon?: boolean;
|
|
320
329
|
};
|
|
321
330
|
export type LayoutCtxProps = {
|
|
322
331
|
menus: TMenuItem[];
|
|
@@ -405,14 +414,14 @@ export interface PageProps {
|
|
|
405
414
|
*/
|
|
406
415
|
export declare const Page: (props: PageProps) => import("react/jsx-runtime").JSX.Element;
|
|
407
416
|
export type PageWrapperServiceConfig = {
|
|
408
|
-
onRequest: (params?: TAny) => Promise<
|
|
417
|
+
onRequest: (params?: TAny) => Promise<TAny>;
|
|
409
418
|
params?: TPlainObject | (() => TPlainObject);
|
|
410
419
|
};
|
|
411
420
|
export interface PageWrapperProps extends Omit<PageProps, "children"> {
|
|
412
421
|
/** 接口数据配置 */
|
|
413
422
|
serviceConfig: PageWrapperServiceConfig;
|
|
414
423
|
/** children 为函数,参数【respData】为接口返回数据 */
|
|
415
|
-
children?: ReactElement | ((respData?: TAny) => ReactElement);
|
|
424
|
+
children?: ReactElement | ReactElement[] | ((respData?: TAny) => ReactElement);
|
|
416
425
|
/**
|
|
417
426
|
* 是否异步,默认:false
|
|
418
427
|
* ```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/pro-layout",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.21",
|
|
4
4
|
"description": "WEB菜单布局",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
"@dimjs/model-react": ">=1.1.8",
|
|
39
39
|
"@dimjs/utils": ">=1.2.33",
|
|
40
40
|
"@wove/react": ">=1.2.22",
|
|
41
|
-
"@flatbiz/antd": ">=4.2.
|
|
41
|
+
"@flatbiz/antd": ">=4.2.77",
|
|
42
|
+
"@flatbiz/utils": ">=4.3.18",
|
|
42
43
|
"antd": ">=5.5.1",
|
|
43
44
|
"react": ">=18.2.0",
|
|
44
45
|
"react-dom": ">=18.2.0",
|