cfel-base-components 2.5.47 → 2.5.49

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.
@@ -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: "目录1",
18
- key: "a",
18
+ label: "Dashboard",
19
+ key: "dashboard",
19
20
  icon: <QqOutlined />,
20
21
  children: [
21
22
  {
22
- label: "目录1-子目录1",
23
- key: "a-1",
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: "目录1-子目录2",
27
- key: "a-2",
41
+ label: "Stats",
42
+ key: "dashboard-stats",
28
43
  },
29
44
  ],
30
45
  },
31
46
  {
32
- label: "目录2",
33
- key: "b",
47
+ label: "User Management",
48
+ key: "user-management",
34
49
  icon: <WeiboOutlined />,
35
50
  children: [
36
51
  {
37
- label: "目录2-子目录1",
38
- key: "b-1",
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: "目录2-子目录1",
60
- key: "d-1",
56
+ label: "Roles",
57
+ key: "user-management-roles",
61
58
  },
62
59
  ],
63
60
  },
64
61
  {
65
- label: "目录1",
66
- key: "e",
62
+ label: "Settings",
63
+ key: "settings",
67
64
  icon: <QqOutlined />,
68
65
  children: [
69
66
  {
70
- label: "目录1-子目录1",
71
- key: "e-1",
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: "目录2-子目录1",
82
- key: "f-1",
71
+ label: "Preferences",
72
+ key: "settings-preferences",
83
73
  },
84
74
  ],
85
75
  },
86
76
  {
87
- label: "目录1",
88
- key: "g",
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: "目录2-子目录1",
104
- key: "h-1",
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: "目录2-子目录1",
126
- key: "j-1",
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
- //type="console"
147
+ type=""
187
148
  customAction={()=>{
188
149
  history.push("/web/user-info")
189
150
  }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfel-base-components",
3
- "version": "2.5.47",
3
+ "version": "2.5.49",
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/wujingang/Desktop/workspace/base-components/node_modules/@umijs/renderer-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';
6
6
  import { context } from './helmetContext';
7
7
 
8
8
  export const innerProvider = (container) => {