unika-components 1.0.256 → 1.0.257

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.
@@ -10,18 +10,13 @@ button.uni-text-component {
10
10
  box-sizing: border-box;
11
11
  white-space: pre-wrap;
12
12
  }
13
-
14
-
15
- .uni-calendar-component {
16
-
17
- }
18
- .slot-number {
19
- position: absolute;
20
- bottom: 2px;
21
- left: 7px;
22
- font-size: 12px;
23
- color: #666
24
- }
13
+
14
+ .uni-image-component {
15
+ max-width: 100%;
16
+ }
17
+ .uni-image-mask-wrapper {
18
+ display: inline-block;
19
+ }
25
20
 
26
21
  .slide-guide {
27
22
  position: absolute;
@@ -95,13 +90,18 @@ body, html {
95
90
  transform: translate3d(-50%, -50%, 0);
96
91
  }
97
92
  }
98
-
99
- .uni-image-component {
100
- max-width: 100%;
101
- }
102
- .uni-image-mask-wrapper {
103
- display: inline-block;
104
- }
93
+
94
+
95
+ .uni-calendar-component {
96
+
97
+ }
98
+ .slot-number {
99
+ position: absolute;
100
+ bottom: 2px;
101
+ left: 7px;
102
+ font-size: 12px;
103
+ color: #666
104
+ }
105
105
 
106
106
  .uni-video-component {
107
107
  position: relative;
@@ -124,26 +124,23 @@ body, html {
124
124
  background: rgba(0, 0, 0, 0.8);
125
125
  }
126
126
 
127
- .like-button {
128
- display: flex;
129
- flex-direction: column;
130
- align-items: center;
131
- cursor: pointer;
127
+ .uni-lotties-component {
128
+ width: 100%;
129
+ height: 100%;
132
130
  }
133
131
 
134
- .icon-heart {
135
- font-size: 24px;
136
- color: #e74c3c;
132
+ .swiper-warp {
133
+ width: 100%;
134
+ height: 100%;
137
135
  }
138
136
 
139
- .liked {
140
- color: #f00; /* 更改颜色以示已赞 */
137
+ .swiper-slide-component {
138
+ text-align: center;
141
139
  }
142
140
 
143
- .like-count {
144
- margin-top: 4px;
145
- font-size: 16px;
146
- color: #333;
141
+ .swiper-slide img {
142
+ max-width: 100%;
143
+ max-height: 100%;
147
144
  }
148
145
 
149
146
  .effect {
@@ -188,29 +185,32 @@ body, html {
188
185
 
189
186
  .uni-build-up-component {
190
187
  }
188
+
189
+ .uni-svg-component {
190
+ display: inline-block;
191
+ }
191
192
 
192
- .uni-lotties-component {
193
- width: 100%;
194
- height: 100%;
193
+ .like-button {
194
+ display: flex;
195
+ flex-direction: column;
196
+ align-items: center;
197
+ cursor: pointer;
195
198
  }
196
199
 
197
- .swiper-warp {
198
- width: 100%;
199
- height: 100%;
200
+ .icon-heart {
201
+ font-size: 24px;
202
+ color: #e74c3c;
200
203
  }
201
204
 
202
- .swiper-slide-component {
203
- text-align: center;
205
+ .liked {
206
+ color: #f00; /* 更改颜色以示已赞 */
204
207
  }
205
208
 
206
- .swiper-slide img {
207
- max-width: 100%;
208
- max-height: 100%;
209
+ .like-count {
210
+ margin-top: 4px;
211
+ font-size: 16px;
212
+ color: #333;
209
213
  }
210
-
211
- .uni-svg-component {
212
- display: inline-block;
213
- }
214
214
  /**
215
215
  * Swiper 6.8.4
216
216
  * Most modern mobile touch slider and framework with hardware accelerated transitions
@@ -759,6 +759,193 @@ button.swiper-pagination-bullet {
759
759
  backface-visibility: hidden;
760
760
  }
761
761
 
762
+
763
+ .no-animation__card {
764
+ font-weight: 500;
765
+ font-size: var(--countdown-size, 2rem);
766
+ line-height: 1.5;
767
+ display: block;
768
+ color: var(--main-color, #EC685C);
769
+ }
770
+
771
+ .flip-clock {
772
+ text-align: center;
773
+ perspective: 600px;
774
+ margin: 0 auto;
775
+ }
776
+
777
+ .flip-clock *,
778
+ .flip-clock *:before,
779
+ .flip-clock *:after {
780
+ box-sizing: border-box;
781
+ }
782
+
783
+ .flip-clock__piece {
784
+ display: inline-block;
785
+ margin: 0 0.2vw;
786
+ }
787
+
788
+ @media (min-width: 1000px) {
789
+ .flip-clock__piece {
790
+ margin: 0 5px;
791
+ }
792
+ }
793
+
794
+ .flip-clock__slot {
795
+ font-size: var(--label-size, 1rem);
796
+ line-height: 1.5;
797
+ display: block;
798
+ color: var(--label-color, #222222);
799
+ }
800
+
801
+ .flip-card {
802
+ display: block;
803
+ position: relative;
804
+ padding-bottom: 0.72em; /* halfHeight */
805
+ font-size: var(--countdown-size, 2.25rem);
806
+ line-height: 0.95;
807
+ }
808
+
809
+ @media (min-width: 1000px) {
810
+ .flip-clock__slot {
811
+ font-size: 1.2rem;
812
+ }
813
+
814
+ .flip-card {
815
+ font-size: 3rem;
816
+ }
817
+ }
818
+
819
+ .flip-card__top,
820
+ .flip-card__bottom,
821
+ .flip-card__back-bottom,
822
+ .flip-card__back::before,
823
+ .flip-card__back::after{
824
+ display: block;
825
+ height: 0.72em; /* halfHeight */
826
+ color: var(--main-color, #EC685C);
827
+ background: var(--main-flip-background-color, #222222);
828
+ padding: 0.23em 0.15em 0.4em;
829
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
830
+ backface-visibility: hidden;
831
+ -webkit-backface-visibility: hidden;
832
+ transform-style: preserve-3d;
833
+ width: 2.1em;
834
+ }
835
+
836
+ .flip-card__top-4digits,
837
+ .flip-card__bottom-4digits,
838
+ .flip-card__back-bottom-4digits,
839
+ .flip-card__back-4digits::before,
840
+ .flip-card__back-4digits::after {
841
+ display: block;
842
+ height: 0.72em; /* halfHeight */
843
+ color: var(--main-color, #EC685C);
844
+ background: var(--main-flip-background-color, #222222);
845
+ padding: 0.23em 0.15em 0.4em;
846
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
847
+ backface-visibility: hidden;
848
+ -webkit-backface-visibility: hidden;
849
+ transform-style: preserve-3d;
850
+ width: 2.65em;
851
+ }
852
+
853
+ .flip-card__bottom,
854
+ .flip-card__back-bottom,
855
+ .flip-card__bottom-4digits,
856
+ .flip-card__back-bottom-4digits {
857
+ color: var(--second-flip-color, #EC685C);
858
+ position: absolute;
859
+ top: 50%;
860
+ left: 0;
861
+ border-top: solid 1px var(--second-flip-background-color, #000);
862
+ background: var(--second-flip-background-color, #393939);
863
+ border-radius: 0 0 0.15em 0.15em; /* borderRadius */
864
+ pointer-events: none;
865
+ overflow: hidden;
866
+ z-index: 2;
867
+ }
868
+
869
+ .flip-card__back-bottom,
870
+ .flip-card__back-bottom-4digits {
871
+ z-index: 1;
872
+ }
873
+
874
+ .flip-card__bottom::after,
875
+ .flip-card__back-bottom::after,
876
+ .flip-card__bottom-4digits::after,
877
+ .flip-card__back-bottom-4digits::after {
878
+ display: block;
879
+ margin-top: -0.72em; /* Negative halfHeight */
880
+ }
881
+ .flip-card__back::before,
882
+ .flip-card__bottom::after,
883
+ .flip-card__back-bottom::after,
884
+ .flip-card__back-4digits::before,
885
+ .flip-card__bottom-4digits::after,
886
+ .flip-card__back-bottom-4digits::after {
887
+ content: attr(data-value);
888
+ }
889
+
890
+ .flip-card__back,
891
+ .flip-card__back-4digits {
892
+ position: absolute;
893
+ top: 0;
894
+ height: 100%;
895
+ left: 0%;
896
+ pointer-events: none;
897
+ }
898
+ .flip-card__back::before,
899
+ .flip-card__back-4digits::before {
900
+ position: relative;
901
+ overflow: hidden;
902
+ z-index: -1;
903
+ }
904
+
905
+ .flip .flip-card__back::before,
906
+ .flip .flip-card__back-4digits::before {
907
+ z-index: 1;
908
+ animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
909
+ animation-fill-mode: both;
910
+ transform-origin: center bottom;
911
+ }
912
+
913
+ .flip .flip-card__bottom,
914
+ .flip .flip-card__bottom-4digits {
915
+ transform-origin: center top;
916
+ animation-fill-mode: both;
917
+ animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
918
+ }
919
+ @keyframes flipTop {
920
+ 0% {
921
+ transform: rotateX(0deg);
922
+ z-index: 2;
923
+ }
924
+ 0%, 99% {
925
+ opacity: 1;
926
+ }
927
+ 100% {
928
+ transform: rotateX(-90deg);
929
+ opacity: 0;
930
+ }
931
+ }
932
+
933
+ @keyframes flipBottom {
934
+ 0%, 50% {
935
+ z-index: -1;
936
+ transform: rotateX(90deg);
937
+ opacity: 0;
938
+ }
939
+ 51% {
940
+ opacity: 1;
941
+ }
942
+ 100% {
943
+ opacity: 1;
944
+ transform: rotateX(0deg);
945
+ z-index: 5;
946
+ }
947
+ }
948
+
762
949
  .unika-calendar-box {
763
950
  position: relative;
764
951
  width: 325px !important;
@@ -1018,190 +1205,3 @@ button.swiper-pagination-bullet {
1018
1205
  padding: 0 0px;
1019
1206
  border-bottom: 1px solid
1020
1207
  }
1021
-
1022
-
1023
- .no-animation__card {
1024
- font-weight: 500;
1025
- font-size: var(--countdown-size, 2rem);
1026
- line-height: 1.5;
1027
- display: block;
1028
- color: var(--main-color, #EC685C);
1029
- }
1030
-
1031
- .flip-clock {
1032
- text-align: center;
1033
- perspective: 600px;
1034
- margin: 0 auto;
1035
- }
1036
-
1037
- .flip-clock *,
1038
- .flip-clock *:before,
1039
- .flip-clock *:after {
1040
- box-sizing: border-box;
1041
- }
1042
-
1043
- .flip-clock__piece {
1044
- display: inline-block;
1045
- margin: 0 0.2vw;
1046
- }
1047
-
1048
- @media (min-width: 1000px) {
1049
- .flip-clock__piece {
1050
- margin: 0 5px;
1051
- }
1052
- }
1053
-
1054
- .flip-clock__slot {
1055
- font-size: var(--label-size, 1rem);
1056
- line-height: 1.5;
1057
- display: block;
1058
- color: var(--label-color, #222222);
1059
- }
1060
-
1061
- .flip-card {
1062
- display: block;
1063
- position: relative;
1064
- padding-bottom: 0.72em; /* halfHeight */
1065
- font-size: var(--countdown-size, 2.25rem);
1066
- line-height: 0.95;
1067
- }
1068
-
1069
- @media (min-width: 1000px) {
1070
- .flip-clock__slot {
1071
- font-size: 1.2rem;
1072
- }
1073
-
1074
- .flip-card {
1075
- font-size: 3rem;
1076
- }
1077
- }
1078
-
1079
- .flip-card__top,
1080
- .flip-card__bottom,
1081
- .flip-card__back-bottom,
1082
- .flip-card__back::before,
1083
- .flip-card__back::after{
1084
- display: block;
1085
- height: 0.72em; /* halfHeight */
1086
- color: var(--main-color, #EC685C);
1087
- background: var(--main-flip-background-color, #222222);
1088
- padding: 0.23em 0.15em 0.4em;
1089
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1090
- backface-visibility: hidden;
1091
- -webkit-backface-visibility: hidden;
1092
- transform-style: preserve-3d;
1093
- width: 2.1em;
1094
- }
1095
-
1096
- .flip-card__top-4digits,
1097
- .flip-card__bottom-4digits,
1098
- .flip-card__back-bottom-4digits,
1099
- .flip-card__back-4digits::before,
1100
- .flip-card__back-4digits::after {
1101
- display: block;
1102
- height: 0.72em; /* halfHeight */
1103
- color: var(--main-color, #EC685C);
1104
- background: var(--main-flip-background-color, #222222);
1105
- padding: 0.23em 0.15em 0.4em;
1106
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1107
- backface-visibility: hidden;
1108
- -webkit-backface-visibility: hidden;
1109
- transform-style: preserve-3d;
1110
- width: 2.65em;
1111
- }
1112
-
1113
- .flip-card__bottom,
1114
- .flip-card__back-bottom,
1115
- .flip-card__bottom-4digits,
1116
- .flip-card__back-bottom-4digits {
1117
- color: var(--second-flip-color, #EC685C);
1118
- position: absolute;
1119
- top: 50%;
1120
- left: 0;
1121
- border-top: solid 1px var(--second-flip-background-color, #000);
1122
- background: var(--second-flip-background-color, #393939);
1123
- border-radius: 0 0 0.15em 0.15em; /* borderRadius */
1124
- pointer-events: none;
1125
- overflow: hidden;
1126
- z-index: 2;
1127
- }
1128
-
1129
- .flip-card__back-bottom,
1130
- .flip-card__back-bottom-4digits {
1131
- z-index: 1;
1132
- }
1133
-
1134
- .flip-card__bottom::after,
1135
- .flip-card__back-bottom::after,
1136
- .flip-card__bottom-4digits::after,
1137
- .flip-card__back-bottom-4digits::after {
1138
- display: block;
1139
- margin-top: -0.72em; /* Negative halfHeight */
1140
- }
1141
- .flip-card__back::before,
1142
- .flip-card__bottom::after,
1143
- .flip-card__back-bottom::after,
1144
- .flip-card__back-4digits::before,
1145
- .flip-card__bottom-4digits::after,
1146
- .flip-card__back-bottom-4digits::after {
1147
- content: attr(data-value);
1148
- }
1149
-
1150
- .flip-card__back,
1151
- .flip-card__back-4digits {
1152
- position: absolute;
1153
- top: 0;
1154
- height: 100%;
1155
- left: 0%;
1156
- pointer-events: none;
1157
- }
1158
- .flip-card__back::before,
1159
- .flip-card__back-4digits::before {
1160
- position: relative;
1161
- overflow: hidden;
1162
- z-index: -1;
1163
- }
1164
-
1165
- .flip .flip-card__back::before,
1166
- .flip .flip-card__back-4digits::before {
1167
- z-index: 1;
1168
- animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
1169
- animation-fill-mode: both;
1170
- transform-origin: center bottom;
1171
- }
1172
-
1173
- .flip .flip-card__bottom,
1174
- .flip .flip-card__bottom-4digits {
1175
- transform-origin: center top;
1176
- animation-fill-mode: both;
1177
- animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
1178
- }
1179
- @keyframes flipTop {
1180
- 0% {
1181
- transform: rotateX(0deg);
1182
- z-index: 2;
1183
- }
1184
- 0%, 99% {
1185
- opacity: 1;
1186
- }
1187
- 100% {
1188
- transform: rotateX(-90deg);
1189
- opacity: 0;
1190
- }
1191
- }
1192
-
1193
- @keyframes flipBottom {
1194
- 0%, 50% {
1195
- z-index: -1;
1196
- transform: rotateX(90deg);
1197
- opacity: 0;
1198
- }
1199
- 51% {
1200
- opacity: 1;
1201
- }
1202
- 100% {
1203
- opacity: 1;
1204
- transform: rotateX(0deg);
1205
- z-index: 5;
1206
- }
1207
- }
@@ -13130,9 +13130,13 @@ var script$h = defineComponent({
13130
13130
  const restartLottieAnimations = () => {
13131
13131
  componentRefs.value.forEach((el) => {
13132
13132
  const lottieComponent = el.querySelector('.uni-lotties-component');
13133
+ console.log(lottieComponent);
13133
13134
  if (lottieComponent && lottieComponent.__vue__) {
13134
13135
  const vueInstance = lottieComponent.__vue__;
13136
+ console.log('aaaaaa');
13137
+ console.log(vueInstance);
13135
13138
  if (vueInstance.play) {
13139
+ console.log('bbbbbb');
13136
13140
  vueInstance.play();
13137
13141
  }
13138
13142
  }
@@ -75698,14 +75702,6 @@ var script$5 = defineComponent({
75698
75702
  lottieAnimation.value.play();
75699
75703
  }
75700
75704
  };
75701
- watch(lottieKey, () => {
75702
- console.log('ssssss');
75703
- if (lottieAnimation.value) {
75704
- console.log('kkkkkk');
75705
- lottieAnimation.value.stop();
75706
- lottieAnimation.value.play();
75707
- }
75708
- });
75709
75705
  return {
75710
75706
  styleProps,
75711
75707
  handleClick,
@@ -13137,9 +13137,13 @@
13137
13137
  const restartLottieAnimations = () => {
13138
13138
  componentRefs.value.forEach((el) => {
13139
13139
  const lottieComponent = el.querySelector('.uni-lotties-component');
13140
+ console.log(lottieComponent);
13140
13141
  if (lottieComponent && lottieComponent.__vue__) {
13141
13142
  const vueInstance = lottieComponent.__vue__;
13143
+ console.log('aaaaaa');
13144
+ console.log(vueInstance);
13142
13145
  if (vueInstance.play) {
13146
+ console.log('bbbbbb');
13143
13147
  vueInstance.play();
13144
13148
  }
13145
13149
  }
@@ -75705,14 +75709,6 @@ summary tabindex target title type usemap value width wmode wrap`;
75705
75709
  lottieAnimation.value.play();
75706
75710
  }
75707
75711
  };
75708
- vue.watch(lottieKey, () => {
75709
- console.log('ssssss');
75710
- if (lottieAnimation.value) {
75711
- console.log('kkkkkk');
75712
- lottieAnimation.value.stop();
75713
- lottieAnimation.value.play();
75714
- }
75715
- });
75716
75712
  return {
75717
75713
  styleProps,
75718
75714
  handleClick,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.256",
3
+ "version": "1.0.257",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",