cfel-base-components 2.5.47 → 2.5.48
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 +41 -80
- package/package.json +1 -1
- package/src/.umi/core/helmet.ts +1 -1
- package/src/components/layout/index.scss +387 -211
- package/src/components/layout/index.tsx +237 -103
- package/src/components/{layout → layout-console}/index-console.scss +208 -84
- package/src/components/layout-console/index.tsx +712 -0
- package/src/components/layout-console/user-card/index.scss +180 -0
- package/src/components/layout-console/user-card/index.tsx +162 -0
- package/src/global.d.ts +2 -0
- package/src/index.tsx +25 -27
- package/.vscode/settings.json +0 -3
package/demo/src/index.jsx
CHANGED
|
@@ -4,7 +4,8 @@ import style from "./index.module.less";
|
|
|
4
4
|
import { SwapOutlined, QqOutlined, WeiboOutlined } from "@ant-design/icons";
|
|
5
5
|
import { ConfigProvider } from "antd";
|
|
6
6
|
import "./index.scss";
|
|
7
|
-
import Layout from "../../src/components/layout";
|
|
7
|
+
import Layout from "../../src/components/layout-console";
|
|
8
|
+
//import Layout from "../../src/components/layout-console";
|
|
8
9
|
// import Account from '../../src/components/universal-pages/account';
|
|
9
10
|
// import AccountInfo from '../../src/components/universal-pages/accountInfo';
|
|
10
11
|
import CpcRole from "../../src/components/universal-pages/cpcRole";
|
|
@@ -14,116 +15,76 @@ import PageContainer from "../../src/components/base-component/PageContainer";
|
|
|
14
15
|
|
|
15
16
|
const menuList = [
|
|
16
17
|
{
|
|
17
|
-
label: "
|
|
18
|
-
key: "
|
|
18
|
+
label: "Dashboard",
|
|
19
|
+
key: "dashboard",
|
|
19
20
|
icon: <QqOutlined />,
|
|
20
21
|
children: [
|
|
21
22
|
{
|
|
22
|
-
label: "
|
|
23
|
-
key: "
|
|
23
|
+
label: "Overview",
|
|
24
|
+
key: "dashboard-overview",
|
|
25
|
+
children: [
|
|
26
|
+
{
|
|
27
|
+
label: "Overview",
|
|
28
|
+
key: "dashboard-overview-overview",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: "Overview",
|
|
32
|
+
key: "dashboard-overview-overview1",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: "Overview",
|
|
36
|
+
key: "dashboard-overview-overview2",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
24
39
|
},
|
|
25
40
|
{
|
|
26
|
-
label: "
|
|
27
|
-
key: "
|
|
41
|
+
label: "Stats",
|
|
42
|
+
key: "dashboard-stats",
|
|
28
43
|
},
|
|
29
44
|
],
|
|
30
45
|
},
|
|
31
46
|
{
|
|
32
|
-
label: "
|
|
33
|
-
key: "
|
|
47
|
+
label: "User Management",
|
|
48
|
+
key: "user-management",
|
|
34
49
|
icon: <WeiboOutlined />,
|
|
35
50
|
children: [
|
|
36
51
|
{
|
|
37
|
-
label: "
|
|
38
|
-
key: "
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: "目录1",
|
|
44
|
-
key: "c",
|
|
45
|
-
icon: <QqOutlined />,
|
|
46
|
-
children: [
|
|
47
|
-
{
|
|
48
|
-
label: "目录1-子目录1",
|
|
49
|
-
key: "c-1",
|
|
52
|
+
label: "Users",
|
|
53
|
+
key: "user-management-users",
|
|
50
54
|
},
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
label: "目录2",
|
|
55
|
-
key: "d",
|
|
56
|
-
icon: <WeiboOutlined />,
|
|
57
|
-
children: [
|
|
58
55
|
{
|
|
59
|
-
label: "
|
|
60
|
-
key: "
|
|
56
|
+
label: "Roles",
|
|
57
|
+
key: "user-management-roles",
|
|
61
58
|
},
|
|
62
59
|
],
|
|
63
60
|
},
|
|
64
61
|
{
|
|
65
|
-
label: "
|
|
66
|
-
key: "
|
|
62
|
+
label: "Settings",
|
|
63
|
+
key: "settings",
|
|
67
64
|
icon: <QqOutlined />,
|
|
68
65
|
children: [
|
|
69
66
|
{
|
|
70
|
-
label: "
|
|
71
|
-
key: "
|
|
67
|
+
label: "Profile",
|
|
68
|
+
key: "settings-profile",
|
|
72
69
|
},
|
|
73
|
-
],
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
label: "目录2",
|
|
77
|
-
key: "f",
|
|
78
|
-
icon: <WeiboOutlined />,
|
|
79
|
-
children: [
|
|
80
70
|
{
|
|
81
|
-
label: "
|
|
82
|
-
key: "
|
|
71
|
+
label: "Preferences",
|
|
72
|
+
key: "settings-preferences",
|
|
83
73
|
},
|
|
84
74
|
],
|
|
85
75
|
},
|
|
86
76
|
{
|
|
87
|
-
label: "
|
|
88
|
-
key: "
|
|
89
|
-
icon: <QqOutlined />,
|
|
90
|
-
children: [
|
|
91
|
-
{
|
|
92
|
-
label: "目录1-子目录1",
|
|
93
|
-
key: "g-1",
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
label: "目录2",
|
|
99
|
-
key: "h",
|
|
77
|
+
label: "Reports",
|
|
78
|
+
key: "reports",
|
|
100
79
|
icon: <WeiboOutlined />,
|
|
101
80
|
children: [
|
|
102
81
|
{
|
|
103
|
-
label: "
|
|
104
|
-
key: "
|
|
82
|
+
label: "Sales",
|
|
83
|
+
key: "reports-sales",
|
|
105
84
|
},
|
|
106
|
-
],
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
label: "目录1",
|
|
110
|
-
key: "i",
|
|
111
|
-
icon: <QqOutlined />,
|
|
112
|
-
children: [
|
|
113
|
-
{
|
|
114
|
-
label: "目录1-子目录1",
|
|
115
|
-
key: "i-1",
|
|
116
|
-
},
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
label: "目录2",
|
|
121
|
-
key: "j",
|
|
122
|
-
icon: <WeiboOutlined />,
|
|
123
|
-
children: [
|
|
124
85
|
{
|
|
125
|
-
label: "
|
|
126
|
-
key: "
|
|
86
|
+
label: "Performance",
|
|
87
|
+
key: "reports-performance",
|
|
127
88
|
},
|
|
128
89
|
],
|
|
129
90
|
},
|
|
@@ -183,7 +144,7 @@ const App = () => {
|
|
|
183
144
|
appName="控制台"
|
|
184
145
|
productList={false}
|
|
185
146
|
menuList={menuList}
|
|
186
|
-
|
|
147
|
+
type=""
|
|
187
148
|
customAction={()=>{
|
|
188
149
|
history.push("/web/user-info")
|
|
189
150
|
}}
|
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/
|
|
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';
|
|
6
6
|
import { context } from './helmetContext';
|
|
7
7
|
|
|
8
8
|
export const innerProvider = (container) => {
|