cfel-base-components 2.5.55 → 2.5.57
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 +5 -5
- package/demo/src/index.module.less +1 -0
- package/package.json +2 -2
- package/src/components/layout/index.scss +151 -48
- package/src/components/layout/index.tsx +260 -104
- package/src/components/layout-console/index-console.scss +150 -84
- package/src/components/layout-console/index.tsx +256 -105
package/demo/src/index.jsx
CHANGED
|
@@ -3,8 +3,8 @@ import { createRoot } from 'react-dom/client'
|
|
|
3
3
|
import style from './index.module.less'
|
|
4
4
|
import { SwapOutlined, QqOutlined, WeiboOutlined } from '@ant-design/icons'
|
|
5
5
|
import { ConfigProvider } from 'antd'
|
|
6
|
-
import Layout from '../../src/components/layout'
|
|
7
|
-
|
|
6
|
+
// import Layout from '../../src/components/layout'
|
|
7
|
+
import Layout from '../../src/components/layout-console'
|
|
8
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';
|
|
@@ -51,7 +51,7 @@ const menuList = [
|
|
|
51
51
|
<span>配额列表</span>
|
|
52
52
|
<span className={style.quotaCount}>12</span>
|
|
53
53
|
</>,
|
|
54
|
-
key: 'product-
|
|
54
|
+
key: 'product-list34',
|
|
55
55
|
},
|
|
56
56
|
],
|
|
57
57
|
},
|
|
@@ -100,7 +100,7 @@ const menuList = [
|
|
|
100
100
|
<span>配额列表</span>
|
|
101
101
|
<span className={style.quotaCount}>12</span>
|
|
102
102
|
</>,
|
|
103
|
-
key: 'product-
|
|
103
|
+
key: 'product-list32',
|
|
104
104
|
},
|
|
105
105
|
],
|
|
106
106
|
},
|
|
@@ -109,7 +109,7 @@ const menuList = [
|
|
|
109
109
|
<span>配额列表</span>
|
|
110
110
|
<span className={style.quotaCount}>12</span>
|
|
111
111
|
</>,
|
|
112
|
-
key: 'entity-
|
|
112
|
+
key: 'entity-list22',
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
label: '资源类型管理',
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cfel-base-components",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.57",
|
|
4
4
|
"description": "cfel-base-components",
|
|
5
5
|
"main": "/src/index.tsx",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
8
|
"dev": "webpack-dev-server --config config/webpack.dev.config.js",
|
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
10
10
|
"build": "webpack --config config/webpack.prod.config.js"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
@@ -7,8 +7,71 @@ ul {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.ant-layout {
|
|
10
|
-
background: linear-gradient(
|
|
11
|
-
box-shadow: inset 0px -1px 0px 0px #
|
|
10
|
+
background: linear-gradient(223deg, #fef8ff 0%, #ecf3fe 29%, #f9faff 100%);
|
|
11
|
+
box-shadow: inset 0px -1px 0px 0px #edeefd;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ant-popover-inner {
|
|
15
|
+
padding: 8px !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.menu-popover {
|
|
19
|
+
width: 168px;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
color: #04073b;
|
|
23
|
+
text-align: left;
|
|
24
|
+
font-style: normal;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
|
|
27
|
+
.sub-list {
|
|
28
|
+
width: 100%;
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.sub-li {
|
|
34
|
+
width: 152px;
|
|
35
|
+
height: 24px;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
text-overflow: ellipsis;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
padding: 6px 8px;
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
color: #185dfe;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:not(:first-child) {
|
|
47
|
+
margin-top: 4px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.grand-li {
|
|
52
|
+
width: 130px;
|
|
53
|
+
height: 24px;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
text-overflow: ellipsis;
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
font-size: 14px;
|
|
58
|
+
padding: 6px 8px;
|
|
59
|
+
|
|
60
|
+
&:hover {
|
|
61
|
+
color: #185dfe;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:not(:first-child) {
|
|
65
|
+
margin-top: 4px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.sub-item-selected {
|
|
70
|
+
font-weight: 500;
|
|
71
|
+
color: #3d76ec;
|
|
72
|
+
background: rgba(61, 118, 236, 0.1);
|
|
73
|
+
border-radius: 4px;
|
|
74
|
+
}
|
|
12
75
|
}
|
|
13
76
|
|
|
14
77
|
.layout-menu {
|
|
@@ -33,12 +96,12 @@ ul {
|
|
|
33
96
|
height: 16px;
|
|
34
97
|
transform: translateY(0);
|
|
35
98
|
transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
36
|
-
|
|
99
|
+
|
|
37
100
|
// 当菜单收起时隐藏箭头
|
|
38
101
|
.ant-layout-sider-collapsed & {
|
|
39
102
|
display: none;
|
|
40
103
|
}
|
|
41
|
-
|
|
104
|
+
|
|
42
105
|
&::before,
|
|
43
106
|
&::after {
|
|
44
107
|
position: absolute;
|
|
@@ -52,15 +115,15 @@ ul {
|
|
|
52
115
|
transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
53
116
|
content: '';
|
|
54
117
|
}
|
|
55
|
-
|
|
118
|
+
|
|
56
119
|
&::before {
|
|
57
120
|
transform: rotate(-45deg) translateX(2.5px);
|
|
58
121
|
}
|
|
59
|
-
|
|
122
|
+
|
|
60
123
|
&::after {
|
|
61
124
|
transform: rotate(45deg) translateX(-2.5px);
|
|
62
125
|
}
|
|
63
|
-
|
|
126
|
+
|
|
64
127
|
// RTL support
|
|
65
128
|
&.#{$menuPrefixCls}-rtl,
|
|
66
129
|
.#{$menuPrefixCls}-submenu-rtl & {
|
|
@@ -68,7 +131,7 @@ ul {
|
|
|
68
131
|
left: 16px;
|
|
69
132
|
}
|
|
70
133
|
}
|
|
71
|
-
|
|
134
|
+
|
|
72
135
|
.#{$menuPrefixCls}-submenu-open > .#{$menuPrefixCls}-submenu-title {
|
|
73
136
|
.#{$menuPrefixCls}-submenu-arrow {
|
|
74
137
|
transform: translateY(-3px);
|
|
@@ -80,7 +143,7 @@ ul {
|
|
|
80
143
|
}
|
|
81
144
|
}
|
|
82
145
|
}
|
|
83
|
-
|
|
146
|
+
|
|
84
147
|
.#{$menuPrefixCls}-submenu-selected {
|
|
85
148
|
> .#{$menuPrefixCls}-submenu-title {
|
|
86
149
|
.#{$menuPrefixCls}-submenu-arrow {
|
|
@@ -91,7 +154,6 @@ ul {
|
|
|
91
154
|
}
|
|
92
155
|
}
|
|
93
156
|
}
|
|
94
|
-
|
|
95
157
|
|
|
96
158
|
> li {
|
|
97
159
|
.first-li {
|
|
@@ -100,7 +162,7 @@ ul {
|
|
|
100
162
|
color: #185dff;
|
|
101
163
|
font-weight: 500;
|
|
102
164
|
}
|
|
103
|
-
|
|
165
|
+
|
|
104
166
|
.menu-item-label {
|
|
105
167
|
color: #185dff;
|
|
106
168
|
font-weight: 500;
|
|
@@ -180,11 +242,10 @@ ul {
|
|
|
180
242
|
position: relative;
|
|
181
243
|
z-index: 9;
|
|
182
244
|
|
|
183
|
-
|
|
184
245
|
.menu-item-content {
|
|
185
246
|
width: 100%;
|
|
186
247
|
padding-right: 24px;
|
|
187
|
-
|
|
248
|
+
|
|
188
249
|
.menu-item-label {
|
|
189
250
|
width: 100%;
|
|
190
251
|
display: inline-flex;
|
|
@@ -278,21 +339,20 @@ ul {
|
|
|
278
339
|
}
|
|
279
340
|
|
|
280
341
|
.grand-li {
|
|
281
|
-
background: rgba(224,235,251);
|
|
342
|
+
background: rgba(224, 235, 251);
|
|
282
343
|
position: relative;
|
|
283
344
|
z-index: 9;
|
|
284
345
|
display: flex;
|
|
285
346
|
align-items: center;
|
|
286
347
|
margin-left: 2px;
|
|
287
348
|
|
|
288
|
-
|
|
289
349
|
.menu-item-content {
|
|
290
350
|
width: 100%;
|
|
291
351
|
padding-right: 24px;
|
|
292
352
|
height: 52px;
|
|
293
353
|
display: flex;
|
|
294
354
|
align-items: center;
|
|
295
|
-
|
|
355
|
+
|
|
296
356
|
.menu-item-label {
|
|
297
357
|
width: 100%;
|
|
298
358
|
display: inline-flex;
|
|
@@ -382,6 +442,23 @@ ul {
|
|
|
382
442
|
list-style: none;
|
|
383
443
|
cursor: pointer;
|
|
384
444
|
|
|
445
|
+
.menu-item-icon {
|
|
446
|
+
display: inline-block;
|
|
447
|
+
height: 22px;
|
|
448
|
+
width: 22px;
|
|
449
|
+
color: #04073b;
|
|
450
|
+
|
|
451
|
+
&:hover {
|
|
452
|
+
color: #185dff;
|
|
453
|
+
font-weight: 500;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.submenu-selected {
|
|
458
|
+
color: #185dff;
|
|
459
|
+
font-weight: 500;
|
|
460
|
+
}
|
|
461
|
+
|
|
385
462
|
.menu-item-content {
|
|
386
463
|
font-weight: 400;
|
|
387
464
|
font-size: 14px;
|
|
@@ -429,6 +506,8 @@ body {
|
|
|
429
506
|
}
|
|
430
507
|
|
|
431
508
|
.close-trigger {
|
|
509
|
+
position: relative;
|
|
510
|
+
z-index: 10;
|
|
432
511
|
margin-top: 24px;
|
|
433
512
|
width: 30px;
|
|
434
513
|
height: 30px;
|
|
@@ -440,6 +519,7 @@ body {
|
|
|
440
519
|
display: flex;
|
|
441
520
|
justify-content: center;
|
|
442
521
|
align-items: center;
|
|
522
|
+
cursor: pointer;
|
|
443
523
|
}
|
|
444
524
|
|
|
445
525
|
.search {
|
|
@@ -591,7 +671,7 @@ body {
|
|
|
591
671
|
.layout-header {
|
|
592
672
|
z-index: 1;
|
|
593
673
|
height: $header-height;
|
|
594
|
-
background: linear-gradient(
|
|
674
|
+
background: linear-gradient(223deg, #faf8ff 0%, #ecf2fe 29%, #ffffff 100%);
|
|
595
675
|
border-radius: 16px;
|
|
596
676
|
border: 1px solid #ffffff;
|
|
597
677
|
position: relative;
|
|
@@ -668,37 +748,6 @@ body {
|
|
|
668
748
|
height: 100%;
|
|
669
749
|
padding-left: 12px;
|
|
670
750
|
overflow: auto;
|
|
671
|
-
|
|
672
|
-
.down {
|
|
673
|
-
transform: rotate(0deg);
|
|
674
|
-
animation: downanimation 0.3s ease-in-out;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
@keyframes downanimation {
|
|
678
|
-
from {
|
|
679
|
-
transform: rotate(180deg);
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
to {
|
|
683
|
-
transform: rotate(0deg);
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
//---
|
|
688
|
-
.up {
|
|
689
|
-
transform: rotate(180deg);
|
|
690
|
-
animation: upanimation 0.3s ease-in-out;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
@keyframes upanimation {
|
|
694
|
-
from {
|
|
695
|
-
transform: rotate(0deg);
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
to {
|
|
699
|
-
transform: rotate(180deg);
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
751
|
}
|
|
703
752
|
|
|
704
753
|
.layout-content {
|
|
@@ -792,3 +841,57 @@ body {
|
|
|
792
841
|
}
|
|
793
842
|
}
|
|
794
843
|
|
|
844
|
+
// 箭头向下样式
|
|
845
|
+
.down {
|
|
846
|
+
transform: rotate(0deg);
|
|
847
|
+
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
// 箭头向上样式
|
|
851
|
+
.up {
|
|
852
|
+
transform: rotate(180deg);
|
|
853
|
+
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
// 箭头切换动画
|
|
857
|
+
.arrow-transition {
|
|
858
|
+
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
859
|
+
|
|
860
|
+
&.down-to-up {
|
|
861
|
+
animation: colorRotateUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
&.up-to-down {
|
|
865
|
+
animation: colorRotateDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
@keyframes colorRotateUp {
|
|
870
|
+
0% {
|
|
871
|
+
transform: rotate(0deg) scale(1);
|
|
872
|
+
color: currentColor;
|
|
873
|
+
}
|
|
874
|
+
50% {
|
|
875
|
+
transform: rotate(90deg) scale(1.2);
|
|
876
|
+
color: #1890ff;
|
|
877
|
+
}
|
|
878
|
+
100% {
|
|
879
|
+
transform: rotate(180deg) scale(1);
|
|
880
|
+
color: currentColor;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
@keyframes colorRotateDown {
|
|
885
|
+
0% {
|
|
886
|
+
transform: rotate(180deg) scale(1);
|
|
887
|
+
color: currentColor;
|
|
888
|
+
}
|
|
889
|
+
50% {
|
|
890
|
+
transform: rotate(90deg) scale(1.2);
|
|
891
|
+
color: #1890ff;
|
|
892
|
+
}
|
|
893
|
+
100% {
|
|
894
|
+
transform: rotate(0deg) scale(1);
|
|
895
|
+
color: currentColor;
|
|
896
|
+
}
|
|
897
|
+
}
|