cfel-base-components 2.5.56 → 2.5.58

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.
@@ -11,42 +11,70 @@ ul {
11
11
  margin: 0;
12
12
  }
13
13
 
14
+ .ant-popover-inner {
15
+ padding: 8px !important;
16
+ }
17
+
14
18
  .menu-popover {
15
19
  width: 168px;
16
- padding-left: 4px;
17
- font-weight: 500;
20
+ font-weight: 400;
18
21
  font-size: 14px;
19
22
  color: #04073b;
20
23
  text-align: left;
21
24
  font-style: normal;
22
25
  cursor: pointer;
23
26
 
24
- .menu-item-content {
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 {
25
38
  width: 152px;
26
- height: 32px;
39
+ height: 24px;
27
40
  overflow: hidden;
28
41
  text-overflow: ellipsis;
29
- margin-top: 4px;
42
+ font-weight: 400;
43
+ font-size: 14px;
44
+ padding: 6px 8px;
30
45
 
31
46
  &:hover {
32
47
  color: #185dfe;
33
48
  }
34
- }
35
49
 
36
- .sub-list {
37
- width: 100%;
38
- display: flex;
39
- justify-content: space-between;
50
+ &:not(:first-child) {
51
+ margin-top: 4px;
52
+ }
40
53
  }
41
54
 
42
- .sub-selected {
43
- color: #185dfe;
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
+ }
44
71
  }
45
72
 
46
- .selected {
47
- background: #e7eeff;
73
+ .sub-item-selected {
74
+ font-weight: 500;
75
+ color: #3d76ec;
76
+ background: rgba(61, 118, 236, 0.1);
48
77
  border-radius: 4px;
49
- color: #185dfe;
50
78
  }
51
79
  }
52
80
 
@@ -62,6 +90,7 @@ ul {
62
90
  cursor: pointer;
63
91
  position: relative;
64
92
  z-index: 90;
93
+ color: rgba(255, 255, 255, 0.25);
65
94
 
66
95
  .#{$menuPrefixCls}-submenu-arrow {
67
96
  display: inline-block;
@@ -234,6 +263,7 @@ ul {
234
263
  padding-left: 11px;
235
264
  display: flex;
236
265
  }
266
+
237
267
  .menu-item-icon {
238
268
  display: inline-block;
239
269
  height: 22px;
@@ -441,7 +471,19 @@ ul {
441
471
  cursor: pointer;
442
472
  position: relative;
443
473
  z-index: 20;
444
- color: #fff;
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
+ }
445
487
 
446
488
  .menu-item-content {
447
489
  font-weight: 400;
@@ -450,6 +492,11 @@ ul {
450
492
  line-height: 24px;
451
493
  text-align: left;
452
494
  }
495
+
496
+ .submenu-selected {
497
+ color: #fff;
498
+ font-weight: 500;
499
+ }
453
500
  }
454
501
 
455
502
  .cpc-icon {
@@ -703,37 +750,6 @@ body {
703
750
  border-radius: 6px;
704
751
  cursor: pointer;
705
752
 
706
- &-down {
707
- transform: rotate(0deg);
708
- animation: downanimation 0.3s ease-in-out;
709
- }
710
-
711
- @keyframes downanimation {
712
- from {
713
- transform: rotate(180deg);
714
- }
715
-
716
- to {
717
- transform: rotate(0deg);
718
- }
719
- }
720
-
721
- //---
722
- &-up {
723
- transform: rotate(180deg);
724
- animation: upanimation 0.3s ease-in-out;
725
- }
726
-
727
- @keyframes upanimation {
728
- from {
729
- transform: rotate(0deg);
730
- }
731
-
732
- to {
733
- transform: rotate(180deg);
734
- }
735
- }
736
-
737
753
  &:hover {
738
754
  background: rgba(0, 0, 0, 0.06);
739
755
  }
@@ -842,17 +858,6 @@ body {
842
858
  }
843
859
  }
844
860
 
845
- @keyframes dropDown {
846
- from {
847
- opacity: 0;
848
- transform: translateY(-4px);
849
- }
850
- to {
851
- opacity: 1;
852
- transform: translateY(0);
853
- }
854
- }
855
-
856
861
  .#{$menuPrefixCls} {
857
862
  &-zoom-enter,
858
863
  &-zoom-appear {
@@ -884,25 +889,58 @@ body {
884
889
  transform-origin: top right !important;
885
890
  }
886
891
  }
892
+ }
893
+ // 箭头向下样式
894
+ .down {
895
+ transform: rotate(0deg);
896
+ transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
897
+ }
887
898
 
888
- @keyframes rcMenuOpenZoomIn {
889
- 0% {
890
- opacity: 0;
891
- transform: scale(0, 0);
892
- }
893
- 100% {
894
- opacity: 1;
895
- transform: scale(1, 1);
896
- }
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;
897
911
  }
898
912
 
899
- @keyframes rcMenuOpenZoomOut {
900
- 0% {
901
- transform: scale(1, 1);
902
- }
903
- 100% {
904
- opacity: 0;
905
- transform: scale(0, 0);
906
- }
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;
907
945
  }
908
946
  }