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
|
@@ -11,6 +11,73 @@ ul {
|
|
|
11
11
|
margin: 0;
|
|
12
12
|
}
|
|
13
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
|
+
.menu-item-icon {
|
|
28
|
+
background: rgba(255, 255, 255, 0.85);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sub-list {
|
|
32
|
+
width: 100%;
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.sub-li {
|
|
38
|
+
width: 152px;
|
|
39
|
+
height: 24px;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
text-overflow: ellipsis;
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
padding: 6px 8px;
|
|
45
|
+
|
|
46
|
+
&:hover {
|
|
47
|
+
color: #185dfe;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:not(:first-child) {
|
|
51
|
+
margin-top: 4px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.grand-li {
|
|
56
|
+
width: 130px;
|
|
57
|
+
height: 24px;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
text-overflow: ellipsis;
|
|
60
|
+
font-weight: 400;
|
|
61
|
+
font-size: 14px;
|
|
62
|
+
padding: 6px 8px;
|
|
63
|
+
|
|
64
|
+
&:hover {
|
|
65
|
+
color: #185dfe;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:not(:first-child) {
|
|
69
|
+
margin-top: 4px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.sub-item-selected {
|
|
74
|
+
font-weight: 500;
|
|
75
|
+
color: #3d76ec;
|
|
76
|
+
background: rgba(61, 118, 236, 0.1);
|
|
77
|
+
border-radius: 4px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
14
81
|
.layout-menu-console {
|
|
15
82
|
border-radius: 16px;
|
|
16
83
|
height: calc(100% - 107px);
|
|
@@ -23,6 +90,7 @@ ul {
|
|
|
23
90
|
cursor: pointer;
|
|
24
91
|
position: relative;
|
|
25
92
|
z-index: 90;
|
|
93
|
+
color: rgba(255, 255, 255, 0.25);
|
|
26
94
|
|
|
27
95
|
.#{$menuPrefixCls}-submenu-arrow {
|
|
28
96
|
display: inline-block;
|
|
@@ -37,7 +105,7 @@ ul {
|
|
|
37
105
|
.ant-layout-sider-collapsed & {
|
|
38
106
|
display: none;
|
|
39
107
|
}
|
|
40
|
-
|
|
108
|
+
|
|
41
109
|
&::before,
|
|
42
110
|
&::after {
|
|
43
111
|
position: absolute;
|
|
@@ -49,15 +117,15 @@ ul {
|
|
|
49
117
|
transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
50
118
|
content: '';
|
|
51
119
|
}
|
|
52
|
-
|
|
120
|
+
|
|
53
121
|
&::before {
|
|
54
122
|
transform: rotate(-45deg) translateX(2.5px);
|
|
55
123
|
}
|
|
56
|
-
|
|
124
|
+
|
|
57
125
|
&::after {
|
|
58
126
|
transform: rotate(45deg) translateX(-2.5px);
|
|
59
127
|
}
|
|
60
|
-
|
|
128
|
+
|
|
61
129
|
// RTL support
|
|
62
130
|
&.#{$menuPrefixCls}-rtl,
|
|
63
131
|
.#{$menuPrefixCls}-submenu-rtl & {
|
|
@@ -65,7 +133,7 @@ ul {
|
|
|
65
133
|
left: 16px;
|
|
66
134
|
}
|
|
67
135
|
}
|
|
68
|
-
|
|
136
|
+
|
|
69
137
|
.#{$menuPrefixCls}-submenu-open > .#{$menuPrefixCls}-submenu-title {
|
|
70
138
|
.#{$menuPrefixCls}-submenu-arrow {
|
|
71
139
|
transform: translateY(-3px);
|
|
@@ -77,7 +145,7 @@ ul {
|
|
|
77
145
|
}
|
|
78
146
|
}
|
|
79
147
|
}
|
|
80
|
-
|
|
148
|
+
|
|
81
149
|
.#{$menuPrefixCls}-submenu-selected {
|
|
82
150
|
> .#{$menuPrefixCls}-submenu-title {
|
|
83
151
|
.#{$menuPrefixCls}-submenu-arrow {
|
|
@@ -88,7 +156,6 @@ ul {
|
|
|
88
156
|
}
|
|
89
157
|
}
|
|
90
158
|
}
|
|
91
|
-
|
|
92
159
|
|
|
93
160
|
> li {
|
|
94
161
|
.first-li {
|
|
@@ -97,7 +164,7 @@ ul {
|
|
|
97
164
|
color: #fff;
|
|
98
165
|
font-weight: 500;
|
|
99
166
|
}
|
|
100
|
-
|
|
167
|
+
|
|
101
168
|
.menu-item-label {
|
|
102
169
|
color: #fff;
|
|
103
170
|
font-weight: 500;
|
|
@@ -196,6 +263,7 @@ ul {
|
|
|
196
263
|
padding-left: 11px;
|
|
197
264
|
display: flex;
|
|
198
265
|
}
|
|
266
|
+
|
|
199
267
|
.menu-item-icon {
|
|
200
268
|
display: inline-block;
|
|
201
269
|
height: 22px;
|
|
@@ -222,18 +290,17 @@ ul {
|
|
|
222
290
|
line-height: 52px;
|
|
223
291
|
width: 100%;
|
|
224
292
|
|
|
225
|
-
.menu-item-content{
|
|
293
|
+
.menu-item-content {
|
|
226
294
|
width: 100%;
|
|
227
295
|
padding-right: 24px;
|
|
228
296
|
|
|
229
|
-
.menu-item-label{
|
|
297
|
+
.menu-item-label {
|
|
230
298
|
width: 100%;
|
|
231
299
|
display: flex;
|
|
232
300
|
align-items: center;
|
|
233
301
|
justify-content: space-between;
|
|
234
302
|
}
|
|
235
303
|
}
|
|
236
|
-
|
|
237
304
|
|
|
238
305
|
&::before {
|
|
239
306
|
content: '';
|
|
@@ -309,7 +376,7 @@ ul {
|
|
|
309
376
|
}
|
|
310
377
|
|
|
311
378
|
.grand-li {
|
|
312
|
-
background: #
|
|
379
|
+
background: #3568b7;
|
|
313
380
|
position: relative;
|
|
314
381
|
z-index: 9;
|
|
315
382
|
line-height: 52px;
|
|
@@ -404,6 +471,19 @@ ul {
|
|
|
404
471
|
cursor: pointer;
|
|
405
472
|
position: relative;
|
|
406
473
|
z-index: 20;
|
|
474
|
+
font-weight: 400;
|
|
475
|
+
|
|
476
|
+
.menu-item-icon {
|
|
477
|
+
display: inline-block;
|
|
478
|
+
height: 22px;
|
|
479
|
+
width: 22px;
|
|
480
|
+
color: rgba(255, 255, 255, 0.85);
|
|
481
|
+
|
|
482
|
+
&:hover {
|
|
483
|
+
color: #fff;
|
|
484
|
+
font-weight: 500;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
407
487
|
|
|
408
488
|
.menu-item-content {
|
|
409
489
|
font-weight: 400;
|
|
@@ -412,6 +492,11 @@ ul {
|
|
|
412
492
|
line-height: 24px;
|
|
413
493
|
text-align: left;
|
|
414
494
|
}
|
|
495
|
+
|
|
496
|
+
.submenu-selected {
|
|
497
|
+
color: #fff;
|
|
498
|
+
font-weight: 500;
|
|
499
|
+
}
|
|
415
500
|
}
|
|
416
501
|
|
|
417
502
|
.cpc-icon {
|
|
@@ -473,9 +558,7 @@ body {
|
|
|
473
558
|
height: 40px;
|
|
474
559
|
color: #fff;
|
|
475
560
|
background: #5b6ecf;
|
|
476
|
-
box-shadow:
|
|
477
|
-
inset 0px 2px 1px 0px rgba(0, 0, 0, 0.05),
|
|
478
|
-
inset 0px -2px 0px 0px #ffffff22;
|
|
561
|
+
box-shadow: inset 0px 2px 1px 0px rgba(0, 0, 0, 0.05), inset 0px -2px 0px 0px #ffffff22;
|
|
479
562
|
border-radius: 10px;
|
|
480
563
|
background-size: 50%;
|
|
481
564
|
background-position-x: right;
|
|
@@ -551,9 +634,7 @@ body {
|
|
|
551
634
|
width: 40px;
|
|
552
635
|
height: 40px;
|
|
553
636
|
background: #f8f8fb;
|
|
554
|
-
box-shadow:
|
|
555
|
-
inset 0px 2px 1px 0px rgba(0, 0, 0, 0.05),
|
|
556
|
-
inset 0px -2px 0px 0px #ffffff;
|
|
637
|
+
box-shadow: inset 0px 2px 1px 0px rgba(0, 0, 0, 0.05), inset 0px -2px 0px 0px #ffffff;
|
|
557
638
|
border-radius: 10px;
|
|
558
639
|
backdrop-filter: blur(10px);
|
|
559
640
|
padding-top: 11px;
|
|
@@ -573,7 +654,6 @@ body {
|
|
|
573
654
|
border-radius: 16px;
|
|
574
655
|
}
|
|
575
656
|
|
|
576
|
-
|
|
577
657
|
.layout-side-mask2-console {
|
|
578
658
|
z-index: 10;
|
|
579
659
|
background: linear-gradient(227deg, #7856e6 0%, #6a6ed2 0%, #0271c3 100%) !important;
|
|
@@ -602,7 +682,6 @@ body {
|
|
|
602
682
|
height: 30px;
|
|
603
683
|
position: relative;
|
|
604
684
|
z-index: 11;
|
|
605
|
-
|
|
606
685
|
|
|
607
686
|
.logo-sub {
|
|
608
687
|
width: 31px;
|
|
@@ -617,7 +696,6 @@ body {
|
|
|
617
696
|
}
|
|
618
697
|
|
|
619
698
|
.layout-header-console {
|
|
620
|
-
|
|
621
699
|
z-index: 1;
|
|
622
700
|
height: $header-height;
|
|
623
701
|
background: linear-gradient(223deg, #faf8ff 0%, #eeecfe 29%, #ffffff 100%);
|
|
@@ -672,37 +750,6 @@ body {
|
|
|
672
750
|
border-radius: 6px;
|
|
673
751
|
cursor: pointer;
|
|
674
752
|
|
|
675
|
-
&-down {
|
|
676
|
-
transform: rotate(0deg);
|
|
677
|
-
animation: downanimation 0.3s ease-in-out;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
@keyframes downanimation {
|
|
681
|
-
from {
|
|
682
|
-
transform: rotate(180deg);
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
to {
|
|
686
|
-
transform: rotate(0deg);
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
//---
|
|
691
|
-
&-up {
|
|
692
|
-
transform: rotate(180deg);
|
|
693
|
-
animation: upanimation 0.3s ease-in-out;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
@keyframes upanimation {
|
|
697
|
-
from {
|
|
698
|
-
transform: rotate(0deg);
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
to {
|
|
702
|
-
transform: rotate(180deg);
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
|
|
706
753
|
&:hover {
|
|
707
754
|
background: rgba(0, 0, 0, 0.06);
|
|
708
755
|
}
|
|
@@ -748,9 +795,7 @@ body {
|
|
|
748
795
|
background: linear-gradient(227deg, #556ec611 0%, #556ec6aa 100%);
|
|
749
796
|
color: #fff;
|
|
750
797
|
border-radius: 16px;
|
|
751
|
-
box-shadow:
|
|
752
|
-
0 8px 20px rgba(0, 0, 0, 0.1),
|
|
753
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
798
|
+
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
754
799
|
backdrop-filter: blur(10px);
|
|
755
800
|
padding: 16px;
|
|
756
801
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
@@ -813,18 +858,6 @@ body {
|
|
|
813
858
|
}
|
|
814
859
|
}
|
|
815
860
|
|
|
816
|
-
@keyframes dropDown {
|
|
817
|
-
from {
|
|
818
|
-
opacity: 0;
|
|
819
|
-
transform: translateY(-4px);
|
|
820
|
-
}
|
|
821
|
-
to {
|
|
822
|
-
opacity: 1;
|
|
823
|
-
transform: translateY(0);
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
|
|
828
861
|
.#{$menuPrefixCls} {
|
|
829
862
|
&-zoom-enter,
|
|
830
863
|
&-zoom-appear {
|
|
@@ -856,25 +889,58 @@ body {
|
|
|
856
889
|
transform-origin: top right !important;
|
|
857
890
|
}
|
|
858
891
|
}
|
|
892
|
+
}
|
|
893
|
+
// 箭头向下样式
|
|
894
|
+
.down {
|
|
895
|
+
transform: rotate(0deg);
|
|
896
|
+
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
897
|
+
}
|
|
859
898
|
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
899
|
+
// 箭头向上样式
|
|
900
|
+
.up {
|
|
901
|
+
transform: rotate(180deg);
|
|
902
|
+
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
// 箭头切换动画
|
|
906
|
+
.arrow-transition {
|
|
907
|
+
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
908
|
+
|
|
909
|
+
&.down-to-up {
|
|
910
|
+
animation: colorRotateUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
|
|
869
911
|
}
|
|
870
912
|
|
|
871
|
-
|
|
872
|
-
0
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
913
|
+
&.up-to-down {
|
|
914
|
+
animation: colorRotateDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
@keyframes colorRotateUp {
|
|
919
|
+
0% {
|
|
920
|
+
transform: rotate(0deg) scale(1);
|
|
921
|
+
color: currentColor;
|
|
922
|
+
}
|
|
923
|
+
50% {
|
|
924
|
+
transform: rotate(90deg) scale(1.2);
|
|
925
|
+
color: #1890ff;
|
|
926
|
+
}
|
|
927
|
+
100% {
|
|
928
|
+
transform: rotate(180deg) scale(1);
|
|
929
|
+
color: currentColor;
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
@keyframes colorRotateDown {
|
|
934
|
+
0% {
|
|
935
|
+
transform: rotate(180deg) scale(1);
|
|
936
|
+
color: currentColor;
|
|
937
|
+
}
|
|
938
|
+
50% {
|
|
939
|
+
transform: rotate(90deg) scale(1.2);
|
|
940
|
+
color: #1890ff;
|
|
941
|
+
}
|
|
942
|
+
100% {
|
|
943
|
+
transform: rotate(0deg) scale(1);
|
|
944
|
+
color: currentColor;
|
|
879
945
|
}
|
|
880
946
|
}
|