unika-components 1.0.229 → 1.0.231
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.
|
@@ -21,8 +21,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
};
|
|
22
22
|
size: boolean;
|
|
23
23
|
speed: {
|
|
24
|
-
min:
|
|
25
|
-
max:
|
|
24
|
+
min: string;
|
|
25
|
+
max: string;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
number: {
|
|
@@ -125,7 +125,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
127
|
}>;
|
|
128
|
-
particlesKey: import("vue").Ref<number>;
|
|
129
128
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
130
129
|
[x: string]: any;
|
|
131
130
|
}>>, {
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
.uni-image-component {
|
|
3
|
-
max-width: 100%;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
h2.uni-text-component, p.uni-text-component {
|
|
7
|
-
margin-bottom: 0;
|
|
8
|
-
}
|
|
9
|
-
button.uni-text-component {
|
|
10
|
-
padding: 5px 10px;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
}
|
|
13
|
-
.uni-text-component {
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
white-space: pre-wrap;
|
|
16
|
-
}
|
|
17
1
|
|
|
18
2
|
|
|
19
3
|
.uni-calendar-component {
|
|
@@ -99,6 +83,58 @@ body, html {
|
|
|
99
83
|
transform: translate3d(-50%, -50%, 0);
|
|
100
84
|
}
|
|
101
85
|
}
|
|
86
|
+
|
|
87
|
+
h2.uni-text-component, p.uni-text-component {
|
|
88
|
+
margin-bottom: 0;
|
|
89
|
+
}
|
|
90
|
+
button.uni-text-component {
|
|
91
|
+
padding: 5px 10px;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
}
|
|
94
|
+
.uni-text-component {
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
white-space: pre-wrap;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.uni-image-component {
|
|
100
|
+
max-width: 100%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.like-button {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
align-items: center;
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.icon-heart {
|
|
111
|
+
font-size: 24px;
|
|
112
|
+
color: #e74c3c;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.liked {
|
|
116
|
+
color: #f00; /* 更改颜色以示已赞 */
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.like-count {
|
|
120
|
+
margin-top: 4px;
|
|
121
|
+
font-size: 16px;
|
|
122
|
+
color: #333;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.swiper-warp {
|
|
126
|
+
width: 100%;
|
|
127
|
+
height: 100%;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.swiper-slide-component {
|
|
131
|
+
text-align: center;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.swiper-slide img {
|
|
135
|
+
max-width: 100%;
|
|
136
|
+
max-height: 100%;
|
|
137
|
+
}
|
|
102
138
|
|
|
103
139
|
.uni-video-component {
|
|
104
140
|
position: relative;
|
|
@@ -120,21 +156,16 @@ body, html {
|
|
|
120
156
|
.play-pause-button:hover {
|
|
121
157
|
background: rgba(0, 0, 0, 0.8);
|
|
122
158
|
}
|
|
159
|
+
|
|
160
|
+
.uni-svg-component {
|
|
161
|
+
display: inline-block;
|
|
162
|
+
}
|
|
123
163
|
|
|
124
|
-
.
|
|
164
|
+
.effect {
|
|
125
165
|
width: 100%;
|
|
126
166
|
height: 100%;
|
|
127
167
|
}
|
|
128
168
|
|
|
129
|
-
.swiper-slide-component {
|
|
130
|
-
text-align: center;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.swiper-slide img {
|
|
134
|
-
max-width: 100%;
|
|
135
|
-
max-height: 100%;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
169
|
.ant-input-number {
|
|
139
170
|
box-sizing: border-box;
|
|
140
171
|
margin: 0;
|
|
@@ -170,39 +201,8 @@ body, html {
|
|
|
170
201
|
vertical-align: top;
|
|
171
202
|
}
|
|
172
203
|
|
|
173
|
-
.like-button {
|
|
174
|
-
display: flex;
|
|
175
|
-
flex-direction: column;
|
|
176
|
-
align-items: center;
|
|
177
|
-
cursor: pointer;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.icon-heart {
|
|
181
|
-
font-size: 24px;
|
|
182
|
-
color: #e74c3c;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.liked {
|
|
186
|
-
color: #f00; /* 更改颜色以示已赞 */
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.like-count {
|
|
190
|
-
margin-top: 4px;
|
|
191
|
-
font-size: 16px;
|
|
192
|
-
color: #333;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
204
|
.uni-build-up-component {
|
|
196
205
|
}
|
|
197
|
-
|
|
198
|
-
.effect {
|
|
199
|
-
width: 100%;
|
|
200
|
-
height: 100%;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.uni-svg-component {
|
|
204
|
-
display: inline-block;
|
|
205
|
-
}
|
|
206
206
|
/**
|
|
207
207
|
* Swiper 6.8.4
|
|
208
208
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
@@ -751,6 +751,193 @@ button.swiper-pagination-bullet {
|
|
|
751
751
|
backface-visibility: hidden;
|
|
752
752
|
}
|
|
753
753
|
|
|
754
|
+
|
|
755
|
+
.no-animation__card {
|
|
756
|
+
font-weight: 500;
|
|
757
|
+
font-size: var(--countdown-size, 2rem);
|
|
758
|
+
line-height: 1.5;
|
|
759
|
+
display: block;
|
|
760
|
+
color: var(--main-color, #EC685C);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.flip-clock {
|
|
764
|
+
text-align: center;
|
|
765
|
+
perspective: 600px;
|
|
766
|
+
margin: 0 auto;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.flip-clock *,
|
|
770
|
+
.flip-clock *:before,
|
|
771
|
+
.flip-clock *:after {
|
|
772
|
+
box-sizing: border-box;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.flip-clock__piece {
|
|
776
|
+
display: inline-block;
|
|
777
|
+
margin: 0 0.2vw;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
@media (min-width: 1000px) {
|
|
781
|
+
.flip-clock__piece {
|
|
782
|
+
margin: 0 5px;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.flip-clock__slot {
|
|
787
|
+
font-size: var(--label-size, 1rem);
|
|
788
|
+
line-height: 1.5;
|
|
789
|
+
display: block;
|
|
790
|
+
color: var(--label-color, #222222);
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.flip-card {
|
|
794
|
+
display: block;
|
|
795
|
+
position: relative;
|
|
796
|
+
padding-bottom: 0.72em; /* halfHeight */
|
|
797
|
+
font-size: var(--countdown-size, 2.25rem);
|
|
798
|
+
line-height: 0.95;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
@media (min-width: 1000px) {
|
|
802
|
+
.flip-clock__slot {
|
|
803
|
+
font-size: 1.2rem;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.flip-card {
|
|
807
|
+
font-size: 3rem;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.flip-card__top,
|
|
812
|
+
.flip-card__bottom,
|
|
813
|
+
.flip-card__back-bottom,
|
|
814
|
+
.flip-card__back::before,
|
|
815
|
+
.flip-card__back::after{
|
|
816
|
+
display: block;
|
|
817
|
+
height: 0.72em; /* halfHeight */
|
|
818
|
+
color: var(--main-color, #EC685C);
|
|
819
|
+
background: var(--main-flip-background-color, #222222);
|
|
820
|
+
padding: 0.23em 0.15em 0.4em;
|
|
821
|
+
border-radius: 0.15em 0.15em 0 0; /* borderRadius */
|
|
822
|
+
backface-visibility: hidden;
|
|
823
|
+
-webkit-backface-visibility: hidden;
|
|
824
|
+
transform-style: preserve-3d;
|
|
825
|
+
width: 2.1em;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.flip-card__top-4digits,
|
|
829
|
+
.flip-card__bottom-4digits,
|
|
830
|
+
.flip-card__back-bottom-4digits,
|
|
831
|
+
.flip-card__back-4digits::before,
|
|
832
|
+
.flip-card__back-4digits::after {
|
|
833
|
+
display: block;
|
|
834
|
+
height: 0.72em; /* halfHeight */
|
|
835
|
+
color: var(--main-color, #EC685C);
|
|
836
|
+
background: var(--main-flip-background-color, #222222);
|
|
837
|
+
padding: 0.23em 0.15em 0.4em;
|
|
838
|
+
border-radius: 0.15em 0.15em 0 0; /* borderRadius */
|
|
839
|
+
backface-visibility: hidden;
|
|
840
|
+
-webkit-backface-visibility: hidden;
|
|
841
|
+
transform-style: preserve-3d;
|
|
842
|
+
width: 2.65em;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.flip-card__bottom,
|
|
846
|
+
.flip-card__back-bottom,
|
|
847
|
+
.flip-card__bottom-4digits,
|
|
848
|
+
.flip-card__back-bottom-4digits {
|
|
849
|
+
color: var(--second-flip-color, #EC685C);
|
|
850
|
+
position: absolute;
|
|
851
|
+
top: 50%;
|
|
852
|
+
left: 0;
|
|
853
|
+
border-top: solid 1px var(--second-flip-background-color, #000);
|
|
854
|
+
background: var(--second-flip-background-color, #393939);
|
|
855
|
+
border-radius: 0 0 0.15em 0.15em; /* borderRadius */
|
|
856
|
+
pointer-events: none;
|
|
857
|
+
overflow: hidden;
|
|
858
|
+
z-index: 2;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
.flip-card__back-bottom,
|
|
862
|
+
.flip-card__back-bottom-4digits {
|
|
863
|
+
z-index: 1;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.flip-card__bottom::after,
|
|
867
|
+
.flip-card__back-bottom::after,
|
|
868
|
+
.flip-card__bottom-4digits::after,
|
|
869
|
+
.flip-card__back-bottom-4digits::after {
|
|
870
|
+
display: block;
|
|
871
|
+
margin-top: -0.72em; /* Negative halfHeight */
|
|
872
|
+
}
|
|
873
|
+
.flip-card__back::before,
|
|
874
|
+
.flip-card__bottom::after,
|
|
875
|
+
.flip-card__back-bottom::after,
|
|
876
|
+
.flip-card__back-4digits::before,
|
|
877
|
+
.flip-card__bottom-4digits::after,
|
|
878
|
+
.flip-card__back-bottom-4digits::after {
|
|
879
|
+
content: attr(data-value);
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
.flip-card__back,
|
|
883
|
+
.flip-card__back-4digits {
|
|
884
|
+
position: absolute;
|
|
885
|
+
top: 0;
|
|
886
|
+
height: 100%;
|
|
887
|
+
left: 0%;
|
|
888
|
+
pointer-events: none;
|
|
889
|
+
}
|
|
890
|
+
.flip-card__back::before,
|
|
891
|
+
.flip-card__back-4digits::before {
|
|
892
|
+
position: relative;
|
|
893
|
+
overflow: hidden;
|
|
894
|
+
z-index: -1;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
.flip .flip-card__back::before,
|
|
898
|
+
.flip .flip-card__back-4digits::before {
|
|
899
|
+
z-index: 1;
|
|
900
|
+
animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
|
|
901
|
+
animation-fill-mode: both;
|
|
902
|
+
transform-origin: center bottom;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
.flip .flip-card__bottom,
|
|
906
|
+
.flip .flip-card__bottom-4digits {
|
|
907
|
+
transform-origin: center top;
|
|
908
|
+
animation-fill-mode: both;
|
|
909
|
+
animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
|
|
910
|
+
}
|
|
911
|
+
@keyframes flipTop {
|
|
912
|
+
0% {
|
|
913
|
+
transform: rotateX(0deg);
|
|
914
|
+
z-index: 2;
|
|
915
|
+
}
|
|
916
|
+
0%, 99% {
|
|
917
|
+
opacity: 1;
|
|
918
|
+
}
|
|
919
|
+
100% {
|
|
920
|
+
transform: rotateX(-90deg);
|
|
921
|
+
opacity: 0;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
@keyframes flipBottom {
|
|
926
|
+
0%, 50% {
|
|
927
|
+
z-index: -1;
|
|
928
|
+
transform: rotateX(90deg);
|
|
929
|
+
opacity: 0;
|
|
930
|
+
}
|
|
931
|
+
51% {
|
|
932
|
+
opacity: 1;
|
|
933
|
+
}
|
|
934
|
+
100% {
|
|
935
|
+
opacity: 1;
|
|
936
|
+
transform: rotateX(0deg);
|
|
937
|
+
z-index: 5;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
|
|
754
941
|
.unika-calendar-box {
|
|
755
942
|
position: relative;
|
|
756
943
|
width: 325px !important;
|
|
@@ -1010,190 +1197,3 @@ button.swiper-pagination-bullet {
|
|
|
1010
1197
|
padding: 0 0px;
|
|
1011
1198
|
border-bottom: 1px solid
|
|
1012
1199
|
}
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
.no-animation__card {
|
|
1016
|
-
font-weight: 500;
|
|
1017
|
-
font-size: var(--countdown-size, 2rem);
|
|
1018
|
-
line-height: 1.5;
|
|
1019
|
-
display: block;
|
|
1020
|
-
color: var(--main-color, #EC685C);
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
.flip-clock {
|
|
1024
|
-
text-align: center;
|
|
1025
|
-
perspective: 600px;
|
|
1026
|
-
margin: 0 auto;
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
.flip-clock *,
|
|
1030
|
-
.flip-clock *:before,
|
|
1031
|
-
.flip-clock *:after {
|
|
1032
|
-
box-sizing: border-box;
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
.flip-clock__piece {
|
|
1036
|
-
display: inline-block;
|
|
1037
|
-
margin: 0 0.2vw;
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
@media (min-width: 1000px) {
|
|
1041
|
-
.flip-clock__piece {
|
|
1042
|
-
margin: 0 5px;
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
.flip-clock__slot {
|
|
1047
|
-
font-size: var(--label-size, 1rem);
|
|
1048
|
-
line-height: 1.5;
|
|
1049
|
-
display: block;
|
|
1050
|
-
color: var(--label-color, #222222);
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
.flip-card {
|
|
1054
|
-
display: block;
|
|
1055
|
-
position: relative;
|
|
1056
|
-
padding-bottom: 0.72em; /* halfHeight */
|
|
1057
|
-
font-size: var(--countdown-size, 2.25rem);
|
|
1058
|
-
line-height: 0.95;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
@media (min-width: 1000px) {
|
|
1062
|
-
.flip-clock__slot {
|
|
1063
|
-
font-size: 1.2rem;
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
.flip-card {
|
|
1067
|
-
font-size: 3rem;
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
.flip-card__top,
|
|
1072
|
-
.flip-card__bottom,
|
|
1073
|
-
.flip-card__back-bottom,
|
|
1074
|
-
.flip-card__back::before,
|
|
1075
|
-
.flip-card__back::after{
|
|
1076
|
-
display: block;
|
|
1077
|
-
height: 0.72em; /* halfHeight */
|
|
1078
|
-
color: var(--main-color, #EC685C);
|
|
1079
|
-
background: var(--main-flip-background-color, #222222);
|
|
1080
|
-
padding: 0.23em 0.15em 0.4em;
|
|
1081
|
-
border-radius: 0.15em 0.15em 0 0; /* borderRadius */
|
|
1082
|
-
backface-visibility: hidden;
|
|
1083
|
-
-webkit-backface-visibility: hidden;
|
|
1084
|
-
transform-style: preserve-3d;
|
|
1085
|
-
width: 2.1em;
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
.flip-card__top-4digits,
|
|
1089
|
-
.flip-card__bottom-4digits,
|
|
1090
|
-
.flip-card__back-bottom-4digits,
|
|
1091
|
-
.flip-card__back-4digits::before,
|
|
1092
|
-
.flip-card__back-4digits::after {
|
|
1093
|
-
display: block;
|
|
1094
|
-
height: 0.72em; /* halfHeight */
|
|
1095
|
-
color: var(--main-color, #EC685C);
|
|
1096
|
-
background: var(--main-flip-background-color, #222222);
|
|
1097
|
-
padding: 0.23em 0.15em 0.4em;
|
|
1098
|
-
border-radius: 0.15em 0.15em 0 0; /* borderRadius */
|
|
1099
|
-
backface-visibility: hidden;
|
|
1100
|
-
-webkit-backface-visibility: hidden;
|
|
1101
|
-
transform-style: preserve-3d;
|
|
1102
|
-
width: 2.65em;
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
.flip-card__bottom,
|
|
1106
|
-
.flip-card__back-bottom,
|
|
1107
|
-
.flip-card__bottom-4digits,
|
|
1108
|
-
.flip-card__back-bottom-4digits {
|
|
1109
|
-
color: var(--second-flip-color, #EC685C);
|
|
1110
|
-
position: absolute;
|
|
1111
|
-
top: 50%;
|
|
1112
|
-
left: 0;
|
|
1113
|
-
border-top: solid 1px var(--second-flip-background-color, #000);
|
|
1114
|
-
background: var(--second-flip-background-color, #393939);
|
|
1115
|
-
border-radius: 0 0 0.15em 0.15em; /* borderRadius */
|
|
1116
|
-
pointer-events: none;
|
|
1117
|
-
overflow: hidden;
|
|
1118
|
-
z-index: 2;
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
.flip-card__back-bottom,
|
|
1122
|
-
.flip-card__back-bottom-4digits {
|
|
1123
|
-
z-index: 1;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
.flip-card__bottom::after,
|
|
1127
|
-
.flip-card__back-bottom::after,
|
|
1128
|
-
.flip-card__bottom-4digits::after,
|
|
1129
|
-
.flip-card__back-bottom-4digits::after {
|
|
1130
|
-
display: block;
|
|
1131
|
-
margin-top: -0.72em; /* Negative halfHeight */
|
|
1132
|
-
}
|
|
1133
|
-
.flip-card__back::before,
|
|
1134
|
-
.flip-card__bottom::after,
|
|
1135
|
-
.flip-card__back-bottom::after,
|
|
1136
|
-
.flip-card__back-4digits::before,
|
|
1137
|
-
.flip-card__bottom-4digits::after,
|
|
1138
|
-
.flip-card__back-bottom-4digits::after {
|
|
1139
|
-
content: attr(data-value);
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
.flip-card__back,
|
|
1143
|
-
.flip-card__back-4digits {
|
|
1144
|
-
position: absolute;
|
|
1145
|
-
top: 0;
|
|
1146
|
-
height: 100%;
|
|
1147
|
-
left: 0%;
|
|
1148
|
-
pointer-events: none;
|
|
1149
|
-
}
|
|
1150
|
-
.flip-card__back::before,
|
|
1151
|
-
.flip-card__back-4digits::before {
|
|
1152
|
-
position: relative;
|
|
1153
|
-
overflow: hidden;
|
|
1154
|
-
z-index: -1;
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
.flip .flip-card__back::before,
|
|
1158
|
-
.flip .flip-card__back-4digits::before {
|
|
1159
|
-
z-index: 1;
|
|
1160
|
-
animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
|
|
1161
|
-
animation-fill-mode: both;
|
|
1162
|
-
transform-origin: center bottom;
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
.flip .flip-card__bottom,
|
|
1166
|
-
.flip .flip-card__bottom-4digits {
|
|
1167
|
-
transform-origin: center top;
|
|
1168
|
-
animation-fill-mode: both;
|
|
1169
|
-
animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
|
|
1170
|
-
}
|
|
1171
|
-
@keyframes flipTop {
|
|
1172
|
-
0% {
|
|
1173
|
-
transform: rotateX(0deg);
|
|
1174
|
-
z-index: 2;
|
|
1175
|
-
}
|
|
1176
|
-
0%, 99% {
|
|
1177
|
-
opacity: 1;
|
|
1178
|
-
}
|
|
1179
|
-
100% {
|
|
1180
|
-
transform: rotateX(-90deg);
|
|
1181
|
-
opacity: 0;
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
@keyframes flipBottom {
|
|
1186
|
-
0%, 50% {
|
|
1187
|
-
z-index: -1;
|
|
1188
|
-
transform: rotateX(90deg);
|
|
1189
|
-
opacity: 0;
|
|
1190
|
-
}
|
|
1191
|
-
51% {
|
|
1192
|
-
opacity: 1;
|
|
1193
|
-
}
|
|
1194
|
-
100% {
|
|
1195
|
-
opacity: 1;
|
|
1196
|
-
transform: rotateX(0deg);
|
|
1197
|
-
z-index: 5;
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
@@ -26242,12 +26242,34 @@ script$8.install = (app) => {
|
|
|
26242
26242
|
|
|
26243
26243
|
const defaultProps$6 = transformToComponentProps(componentsDefaultProps['uni-effect'].props, isEditingProp);
|
|
26244
26244
|
const defaultStyles$5 = without$1(Object.keys(effectDefaultProps), 'actionType', 'url', 'shape', 'number', 'spead');
|
|
26245
|
+
// import { loadFull } from 'tsparticles'
|
|
26246
|
+
// import type { Engine } from 'tsparticles-engine'
|
|
26247
|
+
// array that contains style props
|
|
26245
26248
|
var script$7 = defineComponent({
|
|
26246
26249
|
name: 'uni-effect',
|
|
26247
26250
|
props: {
|
|
26248
26251
|
...defaultProps$6,
|
|
26252
|
+
// opacity: {
|
|
26253
|
+
// type: Number,
|
|
26254
|
+
// default: 1 // explosions side bottom single falling
|
|
26255
|
+
// },
|
|
26256
|
+
// shape: {
|
|
26257
|
+
// type: Array<string>,
|
|
26258
|
+
// default: ['circle','square','triangle','polygon','emoji','image']
|
|
26259
|
+
// },
|
|
26260
|
+
// number: {
|
|
26261
|
+
// type: Number,
|
|
26262
|
+
// default: 500
|
|
26263
|
+
// },
|
|
26264
|
+
// spead: {
|
|
26265
|
+
// type: Number,
|
|
26266
|
+
// default: 1
|
|
26267
|
+
// }
|
|
26249
26268
|
},
|
|
26269
|
+
components: {},
|
|
26250
26270
|
setup(props) {
|
|
26271
|
+
// 重用并且简化
|
|
26272
|
+
// 抽离并且获得 styleProps
|
|
26251
26273
|
const styleProps = useStylePick(props, defaultStyles$5);
|
|
26252
26274
|
const handleClick = useComponentClick(props);
|
|
26253
26275
|
const getOptions = (spead, number, opacity, shape) => {
|
|
@@ -26264,7 +26286,7 @@ var script$7 = defineComponent({
|
|
|
26264
26286
|
]
|
|
26265
26287
|
},
|
|
26266
26288
|
"move": {
|
|
26267
|
-
"direction": '
|
|
26289
|
+
"direction": 'botton',
|
|
26268
26290
|
"enable": true,
|
|
26269
26291
|
"outModes": {
|
|
26270
26292
|
"default": "out"
|
|
@@ -26541,16 +26563,15 @@ var script$7 = defineComponent({
|
|
|
26541
26563
|
};
|
|
26542
26564
|
};
|
|
26543
26565
|
const options = ref(getOptions(props.spead, props.number, props.opacity, props.shape));
|
|
26544
|
-
|
|
26566
|
+
// 监听 props.language 的变化
|
|
26545
26567
|
watch([() => props.spead, () => props.number, () => props.opacity, () => props.shape], ([newSpeed, newNumber, newOpacity, newShape]) => {
|
|
26546
26568
|
options.value = getOptions(newSpeed, newNumber, newOpacity, newShape);
|
|
26547
|
-
particlesKey.value += 1; // 更新 key 值,强制重新渲染组件
|
|
26548
26569
|
});
|
|
26549
26570
|
return {
|
|
26550
26571
|
styleProps,
|
|
26551
26572
|
handleClick,
|
|
26552
26573
|
options,
|
|
26553
|
-
particlesKey
|
|
26574
|
+
// particlesKey
|
|
26554
26575
|
};
|
|
26555
26576
|
}
|
|
26556
26577
|
});
|
|
@@ -26563,12 +26584,12 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26563
26584
|
style: normalizeStyle$1(_ctx.styleProps),
|
|
26564
26585
|
class: "uni-effect-component inner-component"
|
|
26565
26586
|
}, [
|
|
26566
|
-
(
|
|
26567
|
-
|
|
26587
|
+
createVNode(_component_Particles, {
|
|
26588
|
+
particlesLoaded: _ctx.particlesLoaded,
|
|
26568
26589
|
id: "tsparticles",
|
|
26569
26590
|
options: _ctx.options,
|
|
26570
26591
|
class: "effect"
|
|
26571
|
-
}, null, 8 /* PROPS */, ["options"])
|
|
26592
|
+
}, null, 8 /* PROPS */, ["particlesLoaded", "options"])
|
|
26572
26593
|
], 4 /* STYLE */))
|
|
26573
26594
|
}
|
|
26574
26595
|
|
|
@@ -26249,12 +26249,34 @@
|
|
|
26249
26249
|
|
|
26250
26250
|
const defaultProps$6 = transformToComponentProps(componentsDefaultProps['uni-effect'].props, isEditingProp);
|
|
26251
26251
|
const defaultStyles$5 = without$1(Object.keys(effectDefaultProps), 'actionType', 'url', 'shape', 'number', 'spead');
|
|
26252
|
+
// import { loadFull } from 'tsparticles'
|
|
26253
|
+
// import type { Engine } from 'tsparticles-engine'
|
|
26254
|
+
// array that contains style props
|
|
26252
26255
|
var script$7 = vue.defineComponent({
|
|
26253
26256
|
name: 'uni-effect',
|
|
26254
26257
|
props: {
|
|
26255
26258
|
...defaultProps$6,
|
|
26259
|
+
// opacity: {
|
|
26260
|
+
// type: Number,
|
|
26261
|
+
// default: 1 // explosions side bottom single falling
|
|
26262
|
+
// },
|
|
26263
|
+
// shape: {
|
|
26264
|
+
// type: Array<string>,
|
|
26265
|
+
// default: ['circle','square','triangle','polygon','emoji','image']
|
|
26266
|
+
// },
|
|
26267
|
+
// number: {
|
|
26268
|
+
// type: Number,
|
|
26269
|
+
// default: 500
|
|
26270
|
+
// },
|
|
26271
|
+
// spead: {
|
|
26272
|
+
// type: Number,
|
|
26273
|
+
// default: 1
|
|
26274
|
+
// }
|
|
26256
26275
|
},
|
|
26276
|
+
components: {},
|
|
26257
26277
|
setup(props) {
|
|
26278
|
+
// 重用并且简化
|
|
26279
|
+
// 抽离并且获得 styleProps
|
|
26258
26280
|
const styleProps = useStylePick(props, defaultStyles$5);
|
|
26259
26281
|
const handleClick = useComponentClick(props);
|
|
26260
26282
|
const getOptions = (spead, number, opacity, shape) => {
|
|
@@ -26271,7 +26293,7 @@
|
|
|
26271
26293
|
]
|
|
26272
26294
|
},
|
|
26273
26295
|
"move": {
|
|
26274
|
-
"direction": '
|
|
26296
|
+
"direction": 'botton',
|
|
26275
26297
|
"enable": true,
|
|
26276
26298
|
"outModes": {
|
|
26277
26299
|
"default": "out"
|
|
@@ -26548,16 +26570,15 @@
|
|
|
26548
26570
|
};
|
|
26549
26571
|
};
|
|
26550
26572
|
const options = vue.ref(getOptions(props.spead, props.number, props.opacity, props.shape));
|
|
26551
|
-
|
|
26573
|
+
// 监听 props.language 的变化
|
|
26552
26574
|
vue.watch([() => props.spead, () => props.number, () => props.opacity, () => props.shape], ([newSpeed, newNumber, newOpacity, newShape]) => {
|
|
26553
26575
|
options.value = getOptions(newSpeed, newNumber, newOpacity, newShape);
|
|
26554
|
-
particlesKey.value += 1; // 更新 key 值,强制重新渲染组件
|
|
26555
26576
|
});
|
|
26556
26577
|
return {
|
|
26557
26578
|
styleProps,
|
|
26558
26579
|
handleClick,
|
|
26559
26580
|
options,
|
|
26560
|
-
particlesKey
|
|
26581
|
+
// particlesKey
|
|
26561
26582
|
};
|
|
26562
26583
|
}
|
|
26563
26584
|
});
|
|
@@ -26570,12 +26591,12 @@
|
|
|
26570
26591
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
26571
26592
|
class: "uni-effect-component inner-component"
|
|
26572
26593
|
}, [
|
|
26573
|
-
|
|
26574
|
-
|
|
26594
|
+
vue.createVNode(_component_Particles, {
|
|
26595
|
+
particlesLoaded: _ctx.particlesLoaded,
|
|
26575
26596
|
id: "tsparticles",
|
|
26576
26597
|
options: _ctx.options,
|
|
26577
26598
|
class: "effect"
|
|
26578
|
-
}, null, 8 /* PROPS */, ["options"])
|
|
26599
|
+
}, null, 8 /* PROPS */, ["particlesLoaded", "options"])
|
|
26579
26600
|
], 4 /* STYLE */))
|
|
26580
26601
|
}
|
|
26581
26602
|
|