cfel-base-components 2.5.1 → 2.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfel-base-components",
3
- "version": "2.5.1",
3
+ "version": "2.5.3",
4
4
  "description": "cfel-base-components",
5
5
  "main": "/src/index.tsx",
6
6
  "types": "src/index.d.ts",
@@ -152,6 +152,7 @@ body {
152
152
  .layout-main {
153
153
  flex: 1;
154
154
  height: 100%;
155
+ overflow: auto;
155
156
  }
156
157
 
157
158
  .layout-content {
@@ -12,7 +12,7 @@ export interface LiosLayoutlProps {
12
12
  menuList: any;
13
13
  onMenuClick: (item: any) => void;
14
14
  selectedKeys: string[];
15
- customAction: (item: any) => void;
15
+ customAction?: (item: any) => void;
16
16
  actions?: any[];
17
17
  myWalletInfo?: {
18
18
  availableCashAmount: string;
@@ -5,8 +5,7 @@ import "./index.scss";
5
5
  interface UserType {
6
6
  name: string;
7
7
  avatar: string;
8
- tenantName: string;
9
- role: any[];
8
+ roleInfo: any[];
10
9
  }
11
10
  interface CustomType {
12
11
  type: string;
@@ -44,10 +43,10 @@ export default function UserCard({
44
43
  amountInfo,
45
44
  customAction,
46
45
  }: any) {
47
- const { user, custom, switchTenantUrl, logoutUrl } = (window as any)
46
+ const { user, tenant, custom, switchTenantUrl, logoutUrl } = (window as any)
48
47
  ?.g_config;
49
48
 
50
- const { name, avatar, tenantName, role }: UserType = user || {};
49
+ const { name, avatar, roleInfo }: UserType = user || {};
51
50
 
52
51
  const { isCompleted, isAudited }: CustomType = custom || {};
53
52
 
@@ -63,7 +62,7 @@ export default function UserCard({
63
62
  <div className="user-info-right">
64
63
  <span className="name">{name}</span>
65
64
  <div className="role-list">
66
- {role?.map((i) => (
65
+ {roleInfo?.map((i) => (
67
66
  <span className="role-item" key={i}>
68
67
  {i}
69
68
  </span>
@@ -125,11 +124,11 @@ export default function UserCard({
125
124
  </div>
126
125
  )}
127
126
 
128
- {tenantName && (
127
+ {tenant?.name && (
129
128
  <div className="lios-tenant">
130
129
  <div className="tenant-label">租户</div>
131
130
  <div className="tenant-switch">
132
- <div className="tenant-value">{tenantName}</div>
131
+ <div className="tenant-value">{tenant?.name}</div>
133
132
  {switchTenantUrl && (
134
133
  <div
135
134
  className="tenant-icon"