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.
- package/demo/src/index.jsx +157 -76
- package/package.json +1 -1
- package/src/.umi/core/helmet.ts +1 -1
- package/src/components/layout/index.scss +14 -2
- package/src/components/layout/index.tsx +86 -163
- package/src/components/layout-console/index-console.scss +17 -1
- package/src/components/layout-console/index.tsx +83 -160
- package/src/global.d.ts +0 -2
- package/demo/src/index.scss +0 -0
package/demo/src/index.jsx
CHANGED
|
@@ -1,128 +1,212 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { createRoot } from
|
|
3
|
-
import style from
|
|
4
|
-
import { SwapOutlined, QqOutlined, WeiboOutlined } from
|
|
5
|
-
import { ConfigProvider } from
|
|
6
|
-
import
|
|
7
|
-
import Layout from
|
|
8
|
-
import
|
|
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
|
|
12
|
-
import CpcRoleInfo from
|
|
13
|
-
import ProTable from
|
|
14
|
-
import PageContainer from
|
|
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:
|
|
19
|
-
|
|
20
|
-
|
|
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:
|
|
24
|
-
key:
|
|
28
|
+
label: '产品模型',
|
|
29
|
+
key: 'product-list',
|
|
25
30
|
children: [
|
|
26
31
|
{
|
|
27
|
-
label:
|
|
28
|
-
key:
|
|
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:
|
|
36
|
-
key:
|
|
42
|
+
label: '产品模型',
|
|
43
|
+
key: 'product-list',
|
|
37
44
|
},
|
|
38
45
|
],
|
|
39
46
|
},
|
|
40
47
|
{
|
|
41
|
-
label:
|
|
42
|
-
key:
|
|
48
|
+
label: '定价项列表',
|
|
49
|
+
key: 'entity-list',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: '资源类型管理',
|
|
53
|
+
key: 'rsourceType-list',
|
|
43
54
|
},
|
|
44
55
|
],
|
|
45
56
|
},
|
|
46
57
|
{
|
|
47
|
-
label:
|
|
48
|
-
|
|
49
|
-
|
|
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:
|
|
53
|
-
key:
|
|
67
|
+
label: '容器镜像服务管理',
|
|
68
|
+
key: 'instance-list',
|
|
54
69
|
},
|
|
55
70
|
{
|
|
56
|
-
label:
|
|
57
|
-
key:
|
|
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:
|
|
63
|
-
key:
|
|
64
|
-
icon: <
|
|
90
|
+
label: 'API管理',
|
|
91
|
+
key: 'apiAction',
|
|
92
|
+
icon: <i className="iconfont icon-API" />,
|
|
65
93
|
children: [
|
|
66
94
|
{
|
|
67
|
-
label:
|
|
68
|
-
key:
|
|
95
|
+
label: 'API 应用管理',
|
|
96
|
+
key: 'api-app-list',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
label: 'API 分组管理',
|
|
100
|
+
key: 'group-list',
|
|
69
101
|
},
|
|
70
102
|
{
|
|
71
|
-
label:
|
|
72
|
-
key:
|
|
103
|
+
label: 'API 接口管理',
|
|
104
|
+
key: 'api-route-list',
|
|
73
105
|
},
|
|
74
106
|
],
|
|
75
107
|
},
|
|
76
108
|
{
|
|
77
|
-
label:
|
|
78
|
-
key:
|
|
79
|
-
icon: <
|
|
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:
|
|
83
|
-
key:
|
|
166
|
+
label: '账号列表',
|
|
167
|
+
key: 'account-list',
|
|
84
168
|
},
|
|
85
169
|
{
|
|
86
|
-
label:
|
|
87
|
-
key:
|
|
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:
|
|
98
|
-
key:
|
|
180
|
+
title: '名称',
|
|
181
|
+
dataIndex: 'name',
|
|
182
|
+
key: 'name',
|
|
99
183
|
},
|
|
100
184
|
{
|
|
101
|
-
title:
|
|
102
|
-
dataIndex:
|
|
103
|
-
key:
|
|
185
|
+
title: '描述',
|
|
186
|
+
dataIndex: 'description',
|
|
187
|
+
key: 'description',
|
|
104
188
|
},
|
|
105
189
|
{
|
|
106
|
-
title:
|
|
107
|
-
dataIndex:
|
|
108
|
-
key:
|
|
190
|
+
title: '状态',
|
|
191
|
+
dataIndex: 'status',
|
|
192
|
+
key: 'status',
|
|
109
193
|
},
|
|
110
194
|
{
|
|
111
|
-
title:
|
|
195
|
+
title: '操作',
|
|
112
196
|
width: 120,
|
|
113
|
-
fixed:
|
|
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(
|
|
232
|
+
customAction={() => {
|
|
233
|
+
history.push('/web/user-info')
|
|
150
234
|
}}
|
|
151
|
-
actions={[
|
|
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
|
-
|
|
162
|
-
|
|
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(
|
|
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
package/src/.umi/core/helmet.ts
CHANGED
|
@@ -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/
|
|
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;
|