cfel-base-components 2.0.12 → 2.0.14

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.
@@ -14,6 +14,7 @@ import CpcRole from '../../src/components/universal-pages/cpcRole';
14
14
  const App = () => {
15
15
  return <PageContainer className={"aaa"}>
16
16
  <Layout
17
+ productList={false}
17
18
  menuList={[
18
19
  {
19
20
  label: '设备中心',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfel-base-components",
3
- "version": "2.0.12",
3
+ "version": "2.0.14",
4
4
  "description": "cfel-base-components",
5
5
  "main": "/src/index.tsx",
6
6
  "types": "src/index.d.ts",
@@ -77,7 +77,7 @@ body {
77
77
  }
78
78
 
79
79
  .app-list {
80
- .app-list-current {
80
+ .app-list-currentlist {
81
81
  font-size: 12px;
82
82
  height: 32px;
83
83
  line-height: 32px;
@@ -97,10 +97,27 @@ body {
97
97
  }
98
98
  }
99
99
 
100
- .app-list-current:hover {
100
+ .app-list-currentlist:hover {
101
101
  background: rgba(0, 0, 0, 0.1);
102
102
  }
103
-
103
+ .app-list-current {
104
+ font-size: 12px;
105
+ height: 32px;
106
+ line-height: 32px;
107
+ padding: 0 12px;
108
+ border-radius: 6px;
109
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
110
+ 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji',
111
+ 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
112
+ transition: all 0.3s;
113
+ color: rgba(0, 0, 0, 0.88);
114
+ font-weight: 400;
115
+ display: flex;
116
+ img{
117
+ max-width: 32px;
118
+ margin-right: 4px;
119
+ }
120
+ }
104
121
  }
105
122
  }
106
123
 
@@ -33,7 +33,7 @@ export interface LiosLayoutlProps {
33
33
  logoutUrl?: string,
34
34
  switchTenantUrl?: string,
35
35
  defaultOpenKeys?: string[],
36
- productList?: any[],
36
+ productList?: any,
37
37
  logoData?: {
38
38
  type: string,
39
39
  content: string
@@ -240,7 +240,7 @@ export default function LiosLayout(props: LiosLayoutlProps) {
240
240
  {
241
241
  productList ?
242
242
  <Popover placement="bottom" content={<ProductListFunc />} arrow={false} trigger="click">
243
- <div className="app-list-current">
243
+ <div className="app-list-currentlist">
244
244
  {currentProduct?.logoUrl && <img src={currentProduct?.logoUrl || ""} alt="" />}
245
245
  <div>
246
246
  {currentProduct?.productName || "请选择应用"}
@@ -179,7 +179,7 @@ export default function Role({
179
179
  setModalOpen(true)
180
180
  }}
181
181
  >
182
- 新增账号
182
+ 新增角色
183
183
  </Button>,
184
184
  ];
185
185
  }}