cfel-base-components 2.5.51 → 2.5.53

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.
@@ -1,128 +1,212 @@
1
- import React from "react";
2
- import { createRoot } from "react-dom/client";
3
- import style from "./index.module.less";
4
- import { SwapOutlined, QqOutlined, WeiboOutlined } from "@ant-design/icons";
5
- import { ConfigProvider } from "antd";
6
- import "./index.scss";
7
- import Layout from "../../src/components/layout";
8
- import LayoutConsole from "../../src/components/layout-console";
1
+ import React from 'react'
2
+ import { createRoot } from 'react-dom/client'
3
+ import style from './index.module.less'
4
+ import { SwapOutlined, QqOutlined, WeiboOutlined } from '@ant-design/icons'
5
+ import { ConfigProvider } from 'antd'
6
+ import Layout from '../../src/components/layout'
7
+ //import Layout from '../../src/components/layout-console'
8
+ import { QuestionCircleTwoTone } from '@ant-design/icons'
9
9
  // import Account from '../../src/components/universal-pages/account';
10
10
  // import AccountInfo from '../../src/components/universal-pages/accountInfo';
11
- import CpcRole from "../../src/components/universal-pages/cpcRole";
12
- import CpcRoleInfo from "../../src/components/universal-pages/cpcRoleInfo";
13
- import ProTable from "../../src/components/base-component/ProTable";
14
- import PageContainer from "../../src/components/base-component/PageContainer";
11
+ import CpcRole from '../../src/components/universal-pages/cpcRole'
12
+ import CpcRoleInfo from '../../src/components/universal-pages/cpcRoleInfo'
13
+ import ProTable from '../../src/components/base-component/ProTable'
14
+ import PageContainer from '../../src/components/base-component/PageContainer'
15
15
 
16
16
  const menuList = [
17
17
  {
18
- label: "Dashboard",
19
- key: "dashboard",
20
- icon: <QqOutlined />,
18
+ label: '云厂商',
19
+ icon: <SwapOutlined />,
20
+ key: 'cloud-list',
21
+ },
22
+ {
23
+ label: '产品模型',
24
+ icon: <SwapOutlined />,
25
+ key: 'catalog',
21
26
  children: [
22
27
  {
23
- label: "Overview",
24
- key: "dashboard-overview",
28
+ label: '产品模型',
29
+ key: 'product-list',
25
30
  children: [
26
31
  {
27
- label: "Overview",
28
- key: "dashboard-overview-overview",
29
- },
30
- {
31
- label: "Overview",
32
- key: "dashboard-overview-overview1",
32
+ label: '产品模型',
33
+ key: 'product-list',
33
34
  },
35
+ ],
36
+ },
37
+ {
38
+ label: '商品模型',
39
+ key: 'commodity-list',
40
+ children: [
34
41
  {
35
- label: "Overview",
36
- key: "dashboard-overview-overview2",
42
+ label: '产品模型',
43
+ key: 'product-list',
37
44
  },
38
45
  ],
39
46
  },
40
47
  {
41
- label: "Stats",
42
- key: "dashboard-stats",
48
+ label: '定价项列表',
49
+ key: 'entity-list',
50
+ },
51
+ {
52
+ label: '资源类型管理',
53
+ key: 'rsourceType-list',
43
54
  },
44
55
  ],
45
56
  },
46
57
  {
47
- label: "User Management",
48
- key: "user-management",
49
- icon: <WeiboOutlined />,
58
+ label: '数据字典',
59
+ icon: <SwapOutlined />,
60
+ key: 'dictionary-list',
61
+ },
62
+ {
63
+ label: '实例管理',
64
+ icon: <i className="iconfont icon-moxing-miaobian" />,
50
65
  children: [
51
66
  {
52
- label: "Users",
53
- key: "user-management-users",
67
+ label: '容器镜像服务管理',
68
+ key: 'instance-list',
54
69
  },
55
70
  {
56
- label: "Roles",
57
- key: "user-management-roles",
71
+ label: 'Kaas服务管理',
72
+ key: 'cluster-puhui',
73
+ },
74
+ {
75
+ label: '代理服务管理',
76
+ key: 'proxy-manage',
77
+ },
78
+ {
79
+ label: '控制台首页文档管理',
80
+ key: 'console-doc',
81
+ },
82
+ {
83
+ label: '轻量云注册管理',
84
+ key: 'register-manage',
58
85
  },
59
86
  ],
60
87
  },
88
+
61
89
  {
62
- label: "Settings",
63
- key: "settings",
64
- icon: <QqOutlined />,
90
+ label: 'API管理',
91
+ key: 'apiAction',
92
+ icon: <i className="iconfont icon-API" />,
65
93
  children: [
66
94
  {
67
- label: "Profile",
68
- key: "settings-profile",
95
+ label: 'API 应用管理',
96
+ key: 'api-app-list',
97
+ },
98
+ {
99
+ label: 'API 分组管理',
100
+ key: 'group-list',
69
101
  },
70
102
  {
71
- label: "Preferences",
72
- key: "settings-preferences",
103
+ label: 'API 接口管理',
104
+ key: 'api-route-list',
73
105
  },
74
106
  ],
75
107
  },
76
108
  {
77
- label: "Reports",
78
- key: "reports",
79
- icon: <WeiboOutlined />,
109
+ label: '消息中心',
110
+ key: 'msgAction',
111
+ icon: <i className="iconfont icon-xiaoxi" />,
112
+ children: [
113
+ {
114
+ label: '消息管理',
115
+ key: 'send-list',
116
+ },
117
+ {
118
+ label: '事件点管理',
119
+ key: 'event-list',
120
+ },
121
+ {
122
+ label: '消息模版管理',
123
+ key: 'msgtemplate-list',
124
+ },
125
+ {
126
+ label: '邮件账号管理',
127
+ key: 'mail-list',
128
+ },
129
+ ],
130
+ },
131
+ {
132
+ label: '权限资源配置',
133
+ key: 'menuAction',
134
+ icon: <i className="iconfont icon-qingdan" />,
135
+ children: [
136
+ {
137
+ label: '菜单管理',
138
+ key: 'menuControlList',
139
+ },
140
+ {
141
+ label: '权限策略管理',
142
+ key: 'strategy-list',
143
+ },
144
+ {
145
+ label: '权限规则管理',
146
+ key: 'rule-list',
147
+ },
148
+ ],
149
+ },
150
+ {
151
+ label: '配额管理',
152
+ icon: <i className="iconfont icon-peie" />,
153
+ key: 'quotaList',
154
+ },
155
+ {
156
+ label: '库存管理',
157
+ icon: <i className="iconfont icon-peie" />,
158
+ key: 'inventoryList',
159
+ },
160
+ {
161
+ label: '权限管理',
162
+ key: 'authority',
163
+ icon: <i className="iconfont icon-shezhi" />,
80
164
  children: [
81
165
  {
82
- label: "Sales",
83
- key: "reports-sales",
166
+ label: '账号列表',
167
+ key: 'account-list',
84
168
  },
85
169
  {
86
- label: "Performance",
87
- key: "reports-performance",
170
+ label: '角色列表',
171
+ key: 'role-list',
88
172
  },
89
173
  ],
90
174
  },
91
- ];
175
+ ]
92
176
 
93
177
  const App = () => {
94
178
  const columns = [
95
179
  {
96
- title: "名称",
97
- dataIndex: "name",
98
- key: "name",
180
+ title: '名称',
181
+ dataIndex: 'name',
182
+ key: 'name',
99
183
  },
100
184
  {
101
- title: "描述",
102
- dataIndex: "description",
103
- key: "description",
185
+ title: '描述',
186
+ dataIndex: 'description',
187
+ key: 'description',
104
188
  },
105
189
  {
106
- title: "状态",
107
- dataIndex: "status",
108
- key: "status",
190
+ title: '状态',
191
+ dataIndex: 'status',
192
+ key: 'status',
109
193
  },
110
194
  {
111
- title: "操作",
195
+ title: '操作',
112
196
  width: 120,
113
- fixed: "right",
197
+ fixed: 'right',
114
198
  render: (row) => (
115
199
  <a
116
200
  onClick={() => {
117
- setEditingData(row);
118
- setInstanceDetailOpen(true);
201
+ setEditingData(row)
202
+ setInstanceDetailOpen(true)
119
203
  }}
120
204
  >
121
205
  详情
122
206
  </a>
123
207
  ),
124
208
  },
125
- ];
209
+ ]
126
210
 
127
211
  return (
128
212
  <ConfigProvider
@@ -145,10 +229,10 @@ const App = () => {
145
229
  productList={false}
146
230
  menuList={menuList}
147
231
  type=""
148
- customAction={()=>{
149
- history.push("/web/user-info")
232
+ customAction={() => {
233
+ history.push('/web/user-info')
150
234
  }}
151
- actions={["动作1","动作2"]}
235
+ actions={['动作1', '动作2']}
152
236
  >
153
237
  {/* <CpcRoleInfo
154
238
  isShowTab={{
@@ -158,16 +242,13 @@ const App = () => {
158
242
  tableData: false,
159
243
  }}></CpcRoleInfo> */}
160
244
  <PageContainer>
161
- <ProTable
162
- columns={columns}
163
- nameSpace="device"
164
- dataSource={[{ name: "1", description: "1", status: "1" }]}
165
- />
245
+ <QuestionCircleTwoTone twoToneColor='orange' />
246
+ <ProTable columns={columns} nameSpace="device" dataSource={[{ name: '1', description: '1', status: '1' }]} />
166
247
  </PageContainer>
167
248
  </Layout>
168
249
  </ConfigProvider>
169
- );
170
- };
171
- const container = document.getElementById("root");
172
- const root = createRoot(container);
173
- root.render(<App />);
250
+ )
251
+ }
252
+ const container = document.getElementById('root')
253
+ const root = createRoot(container)
254
+ root.render(<App />)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfel-base-components",
3
- "version": "2.5.51",
3
+ "version": "2.5.53",
4
4
  "description": "cfel-base-components",
5
5
  "main": "/src/index.tsx",
6
6
  "types": "src/index.d.ts",
@@ -2,7 +2,7 @@
2
2
  // This file is generated by Umi automatically
3
3
  // DO NOT CHANGE IT MANUALLY!
4
4
  import React from 'react';
5
- import { HelmetProvider } from '/Users/lionaillen/Documents/workPlace/cfel/base-components/node_modules/.pnpm/@umijs+renderer-react@4.0.72_react-dom@18.1.0_react@18.1.0/node_modules/@umijs/renderer-react';
5
+ import { HelmetProvider } from '/Users/lionaillen/Documents/work/cfel/base-components/node_modules/.pnpm/@umijs+renderer-react@4.0.72_react-dom@18.1.0_react@18.1.0__react@18.1.0/node_modules/@umijs/renderer-react';
6
6
  import { context } from './helmetContext';
7
7
 
8
8
  export const innerProvider = (container) => {
@@ -92,6 +92,20 @@ ul {
92
92
 
93
93
 
94
94
  > li {
95
+ .first-li {
96
+ &:hover {
97
+ .menu-item-icon {
98
+ color: #185dff;
99
+ font-weight: 500;
100
+ }
101
+
102
+ .menu-item-label {
103
+ color: #185dff;
104
+ font-weight: 500;
105
+ }
106
+ }
107
+ }
108
+
95
109
  &:hover {
96
110
  > .menu-item-content {
97
111
  .menu-item-icon,
@@ -167,7 +181,6 @@ ul {
167
181
  &:hover {
168
182
  > .menu-item-content {
169
183
  .menu-item-icon,
170
- .iconfont,
171
184
  .menu-item-label {
172
185
  color: #185dff;
173
186
  font-weight: 500;
@@ -261,7 +274,6 @@ ul {
261
274
  &:hover {
262
275
  > .menu-item-content {
263
276
  .menu-item-icon,
264
- .iconfont,
265
277
  .menu-item-label {
266
278
  color: #185dff;
267
279
  font-weight: 500;