@flatbiz/pro-layout 4.3.19 → 4.3.22

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/index.d.ts CHANGED
@@ -82,6 +82,7 @@ export type TGlobalData = {
82
82
  export type TAdminUser = null | {
83
83
  id: string;
84
84
  userName: string;
85
+ avatar?: string;
85
86
  };
86
87
  export type IframeTabItem = {
87
88
  id: string | number;
@@ -317,6 +318,20 @@ export type BootstrapOptions = {
317
318
  containerWrapper?: ComponentType<{
318
319
  children: ReactElement;
319
320
  }>;
321
+ /**
322
+ * 自定义用户名称,当前使用的是GLOBAL.user.userName字段
323
+ * @returns
324
+ */
325
+ onCustomUserName?: (global: TGlobalData) => string | ReactElement;
326
+ /**
327
+ * 自定义用户头像,当前使用的是GLOBAL.user.avatar字段
328
+ * @returns
329
+ */
330
+ onCustomUserAvatar?: (global: TGlobalData) => string | ReactElement;
331
+ /**
332
+ * 显示header菜单icon
333
+ */
334
+ showHeaderMenuIcon?: boolean;
320
335
  };
321
336
  export type LayoutCtxProps = {
322
337
  menus: TMenuItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/pro-layout",
3
- "version": "4.3.19",
3
+ "version": "4.3.22",
4
4
  "description": "WEB菜单布局",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",