cfel-base-components 2.5.46 → 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 +40 -84
- package/package.json +1 -1
- package/src/.umi/core/helmet.ts +1 -1
- package/src/components/layout/index.scss +416 -210
- package/src/components/layout/index.tsx +262 -108
- package/src/components/{layout → layout-console}/index-console.scss +317 -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";
|
|
@@ -13,122 +14,77 @@ import ProTable from "../../src/components/base-component/ProTable";
|
|
|
13
14
|
import PageContainer from "../../src/components/base-component/PageContainer";
|
|
14
15
|
|
|
15
16
|
const menuList = [
|
|
16
|
-
{
|
|
17
|
-
label: "目录0",
|
|
18
|
-
key: "a",
|
|
19
|
-
icon: <QqOutlined />,
|
|
20
|
-
},
|
|
21
17
|
{
|
|
22
|
-
label: "
|
|
23
|
-
key: "
|
|
18
|
+
label: "Dashboard",
|
|
19
|
+
key: "dashboard",
|
|
24
20
|
icon: <QqOutlined />,
|
|
25
21
|
children: [
|
|
26
22
|
{
|
|
27
|
-
label: "
|
|
28
|
-
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
|
+
],
|
|
29
39
|
},
|
|
30
40
|
{
|
|
31
|
-
label: "
|
|
32
|
-
key: "
|
|
41
|
+
label: "Stats",
|
|
42
|
+
key: "dashboard-stats",
|
|
33
43
|
},
|
|
34
44
|
],
|
|
35
45
|
},
|
|
36
46
|
{
|
|
37
|
-
label: "
|
|
38
|
-
key: "
|
|
47
|
+
label: "User Management",
|
|
48
|
+
key: "user-management",
|
|
39
49
|
icon: <WeiboOutlined />,
|
|
40
50
|
children: [
|
|
41
51
|
{
|
|
42
|
-
label: "
|
|
43
|
-
key: "
|
|
52
|
+
label: "Users",
|
|
53
|
+
key: "user-management-users",
|
|
44
54
|
},
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
label: "目录1",
|
|
49
|
-
key: "c",
|
|
50
|
-
icon: <QqOutlined />,
|
|
51
|
-
children: [
|
|
52
55
|
{
|
|
53
|
-
label: "
|
|
54
|
-
key: "
|
|
56
|
+
label: "Roles",
|
|
57
|
+
key: "user-management-roles",
|
|
55
58
|
},
|
|
56
59
|
],
|
|
57
60
|
},
|
|
58
61
|
{
|
|
59
|
-
label: "
|
|
60
|
-
key: "
|
|
61
|
-
icon: <WeiboOutlined />,
|
|
62
|
-
children: [
|
|
63
|
-
{
|
|
64
|
-
label: "目录2-子目录1",
|
|
65
|
-
key: "d-1",
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
label: "目录1",
|
|
71
|
-
key: "e",
|
|
62
|
+
label: "Settings",
|
|
63
|
+
key: "settings",
|
|
72
64
|
icon: <QqOutlined />,
|
|
73
65
|
children: [
|
|
74
66
|
{
|
|
75
|
-
label: "
|
|
76
|
-
key: "
|
|
67
|
+
label: "Profile",
|
|
68
|
+
key: "settings-profile",
|
|
77
69
|
},
|
|
78
|
-
],
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
label: "目录2",
|
|
82
|
-
key: "f",
|
|
83
|
-
icon: <WeiboOutlined />,
|
|
84
|
-
children: [
|
|
85
|
-
{
|
|
86
|
-
label: "目录2-子目录1",
|
|
87
|
-
key: "f-1",
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
label: "目录1",
|
|
93
|
-
key: "g",
|
|
94
|
-
icon: <QqOutlined />,
|
|
95
|
-
children: [
|
|
96
70
|
{
|
|
97
|
-
label: "
|
|
98
|
-
key: "
|
|
71
|
+
label: "Preferences",
|
|
72
|
+
key: "settings-preferences",
|
|
99
73
|
},
|
|
100
74
|
],
|
|
101
75
|
},
|
|
102
76
|
{
|
|
103
|
-
label: "
|
|
104
|
-
key: "
|
|
77
|
+
label: "Reports",
|
|
78
|
+
key: "reports",
|
|
105
79
|
icon: <WeiboOutlined />,
|
|
106
80
|
children: [
|
|
107
81
|
{
|
|
108
|
-
label: "
|
|
109
|
-
key: "
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
label: "目录1",
|
|
115
|
-
key: "i",
|
|
116
|
-
icon: <QqOutlined />,
|
|
117
|
-
children: [
|
|
118
|
-
{
|
|
119
|
-
label: "目录1-子目录1",
|
|
120
|
-
key: "i-1",
|
|
82
|
+
label: "Sales",
|
|
83
|
+
key: "reports-sales",
|
|
121
84
|
},
|
|
122
|
-
],
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
label: "目录2",
|
|
126
|
-
key: "j",
|
|
127
|
-
icon: <WeiboOutlined />,
|
|
128
|
-
children: [
|
|
129
85
|
{
|
|
130
|
-
label: "
|
|
131
|
-
key: "
|
|
86
|
+
label: "Performance",
|
|
87
|
+
key: "reports-performance",
|
|
132
88
|
},
|
|
133
89
|
],
|
|
134
90
|
},
|
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) => {
|