unika-components 1.0.47 → 1.0.48
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.
|
@@ -47,20 +47,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
47
|
required: false;
|
|
48
48
|
default: string;
|
|
49
49
|
};
|
|
50
|
-
countdownSize: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
required: false;
|
|
53
|
-
default: (props: {
|
|
54
|
-
size: string;
|
|
55
|
-
}) => "2.25rem" | "2.75rem" | "1.5rem";
|
|
56
|
-
};
|
|
57
|
-
labelSize: {
|
|
58
|
-
type: StringConstructor;
|
|
59
|
-
required: false;
|
|
60
|
-
default: (props: {
|
|
61
|
-
size: string;
|
|
62
|
-
}) => "1" | "1.25rem" | ".8rem";
|
|
63
|
-
};
|
|
64
50
|
labels: {
|
|
65
51
|
type: ObjectConstructor;
|
|
66
52
|
required: false;
|
|
@@ -76,6 +62,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
62
|
}, {
|
|
77
63
|
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
78
64
|
handleClick: () => void;
|
|
65
|
+
labelSize: import("vue").ComputedRef<"1" | "1.25rem" | ".8rem">;
|
|
66
|
+
countdownSize: import("vue").ComputedRef<"2.25rem" | "2.75rem" | "1.5rem">;
|
|
79
67
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
80
68
|
left: {
|
|
81
69
|
type: StringConstructor;
|
|
@@ -125,20 +113,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
125
113
|
required: false;
|
|
126
114
|
default: string;
|
|
127
115
|
};
|
|
128
|
-
countdownSize: {
|
|
129
|
-
type: StringConstructor;
|
|
130
|
-
required: false;
|
|
131
|
-
default: (props: {
|
|
132
|
-
size: string;
|
|
133
|
-
}) => "2.25rem" | "2.75rem" | "1.5rem";
|
|
134
|
-
};
|
|
135
|
-
labelSize: {
|
|
136
|
-
type: StringConstructor;
|
|
137
|
-
required: false;
|
|
138
|
-
default: (props: {
|
|
139
|
-
size: string;
|
|
140
|
-
}) => "1" | "1.25rem" | ".8rem";
|
|
141
|
-
};
|
|
142
116
|
labels: {
|
|
143
117
|
type: ObjectConstructor;
|
|
144
118
|
required: false;
|
|
@@ -163,8 +137,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
163
137
|
showLabels: boolean;
|
|
164
138
|
flipAnimation: boolean;
|
|
165
139
|
language: string;
|
|
166
|
-
countdownSize: string;
|
|
167
|
-
labelSize: string;
|
|
168
140
|
labels: Record<string, any>;
|
|
169
141
|
}, {}>;
|
|
170
142
|
export default _default;
|
|
@@ -1,113 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
.uni-image-component {
|
|
3
|
-
max-width: 100%;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.slide-guide {
|
|
7
|
-
position: absolute;
|
|
8
|
-
bottom: 90px;
|
|
9
|
-
left: 50%;
|
|
10
|
-
transform: translateX(-50%);
|
|
11
|
-
}
|
|
12
|
-
.slide-guide img {
|
|
13
|
-
animation: flowing 2s ease-in-out infinite;
|
|
14
|
-
width: 33px;
|
|
15
|
-
vertical-align: middle;
|
|
16
|
-
border-style: none;
|
|
17
|
-
}
|
|
18
|
-
body, html {
|
|
19
|
-
position: relative;
|
|
20
|
-
width: 100%;
|
|
21
|
-
height: 100%;
|
|
22
|
-
margin: 0px;
|
|
23
|
-
}
|
|
24
|
-
.swiper-container {
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: 100%;
|
|
27
|
-
}
|
|
28
|
-
.swiper-slide {
|
|
29
|
-
width: 100%;
|
|
30
|
-
height: 100%;
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
background-size: cover;
|
|
33
|
-
background-position: center;
|
|
34
|
-
background-repeat: no-repeat;
|
|
35
|
-
}
|
|
36
|
-
.up-arrow {
|
|
37
|
-
width: 2rem;
|
|
38
|
-
height: 2rem;
|
|
39
|
-
position: fixed;
|
|
40
|
-
bottom: 2rem;
|
|
41
|
-
left: 50%;
|
|
42
|
-
transform: translate3d(-50%, 0, 0);
|
|
43
|
-
z-index: 999;
|
|
44
|
-
background: none;
|
|
45
|
-
border: none;
|
|
46
|
-
padding: 0;
|
|
47
|
-
animation: upArrowAni 2s infinite linear;
|
|
48
|
-
}
|
|
49
|
-
.up-arrow img {
|
|
50
|
-
width: 2rem;
|
|
51
|
-
height: 2rem;
|
|
52
|
-
text-align: center;
|
|
53
|
-
line-height: 2rem;
|
|
54
|
-
color: #fff;
|
|
55
|
-
font-size: 1.5rem;
|
|
56
|
-
}
|
|
57
|
-
@keyframes upArrowAni {
|
|
58
|
-
0% {
|
|
59
|
-
opacity: 0;
|
|
60
|
-
transform: translate3d(-50%, 30%, 0);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
30% {
|
|
64
|
-
opacity: 1;
|
|
65
|
-
transform: translate3d(-50%, -20%, 0);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
60% {
|
|
69
|
-
opacity: 0;
|
|
70
|
-
transform: translate3d(-50%, -35%, 0);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
100% {
|
|
74
|
-
opacity: 0;
|
|
75
|
-
transform: translate3d(-50%, -50%, 0);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
h2.uni-text-component, p.uni-text-component {
|
|
80
|
-
margin-bottom: 0;
|
|
81
|
-
}
|
|
82
|
-
button.uni-text-component {
|
|
83
|
-
padding: 5px 10px;
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
}
|
|
86
|
-
.uni-text-component {
|
|
87
|
-
box-sizing: border-box;
|
|
88
|
-
white-space: pre-wrap;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.uni-video-component {
|
|
92
|
-
position: relative;
|
|
93
|
-
text-align: center;
|
|
94
|
-
}
|
|
95
|
-
.play-pause-button {
|
|
96
|
-
position: absolute;
|
|
97
|
-
top: 50%;
|
|
98
|
-
left: 50%;
|
|
99
|
-
transform: translate(-50%, -50%);
|
|
100
|
-
cursor: pointer;
|
|
101
|
-
font-size: 2rem;
|
|
102
|
-
color: #fff;
|
|
103
|
-
background: rgba(0, 0, 0, 0.6);
|
|
104
|
-
border-radius: 50%;
|
|
105
|
-
padding: 10px;
|
|
106
|
-
transition: background 0.3s;
|
|
107
|
-
}
|
|
108
|
-
.play-pause-button:hover {
|
|
109
|
-
background: rgba(0, 0, 0, 0.8);
|
|
110
|
-
}
|
|
111
1
|
|
|
112
2
|
#audio {
|
|
113
3
|
position: absolute;
|
|
@@ -204,6 +94,43 @@ button.uni-text-component {
|
|
|
204
94
|
}
|
|
205
95
|
}
|
|
206
96
|
|
|
97
|
+
.uni-video-component {
|
|
98
|
+
position: relative;
|
|
99
|
+
text-align: center;
|
|
100
|
+
}
|
|
101
|
+
.play-pause-button {
|
|
102
|
+
position: absolute;
|
|
103
|
+
top: 50%;
|
|
104
|
+
left: 50%;
|
|
105
|
+
transform: translate(-50%, -50%);
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
font-size: 2rem;
|
|
108
|
+
color: #fff;
|
|
109
|
+
background: rgba(0, 0, 0, 0.6);
|
|
110
|
+
border-radius: 50%;
|
|
111
|
+
padding: 10px;
|
|
112
|
+
transition: background 0.3s;
|
|
113
|
+
}
|
|
114
|
+
.play-pause-button:hover {
|
|
115
|
+
background: rgba(0, 0, 0, 0.8);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.uni-image-component {
|
|
119
|
+
max-width: 100%;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
h2.uni-text-component, p.uni-text-component {
|
|
123
|
+
margin-bottom: 0;
|
|
124
|
+
}
|
|
125
|
+
button.uni-text-component {
|
|
126
|
+
padding: 5px 10px;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
}
|
|
129
|
+
.uni-text-component {
|
|
130
|
+
box-sizing: border-box;
|
|
131
|
+
white-space: pre-wrap;
|
|
132
|
+
}
|
|
133
|
+
|
|
207
134
|
.uni-background-component {
|
|
208
135
|
width: 100%;
|
|
209
136
|
}
|
|
@@ -270,27 +197,6 @@ button.uni-text-component {
|
|
|
270
197
|
color: #333;
|
|
271
198
|
}
|
|
272
199
|
|
|
273
|
-
.video-player {
|
|
274
|
-
position: relative;
|
|
275
|
-
text-align: center;
|
|
276
|
-
}
|
|
277
|
-
.play-pause-button {
|
|
278
|
-
position: absolute;
|
|
279
|
-
top: 50%;
|
|
280
|
-
left: 50%;
|
|
281
|
-
transform: translate(-50%, -50%);
|
|
282
|
-
cursor: pointer;
|
|
283
|
-
font-size: 2rem;
|
|
284
|
-
color: #fff;
|
|
285
|
-
background: rgba(0, 0, 0, 0.6);
|
|
286
|
-
border-radius: 50%;
|
|
287
|
-
padding: 10px;
|
|
288
|
-
transition: background 0.3s;
|
|
289
|
-
}
|
|
290
|
-
.play-pause-button:hover {
|
|
291
|
-
background: rgba(0, 0, 0, 0.8);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
200
|
#app1 {
|
|
295
201
|
position: relative;
|
|
296
202
|
}
|
|
@@ -312,6 +218,100 @@ button.uni-text-component {
|
|
|
312
218
|
transform: translateY(100vh) rotate(360deg);
|
|
313
219
|
}
|
|
314
220
|
}
|
|
221
|
+
|
|
222
|
+
.slide-guide {
|
|
223
|
+
position: absolute;
|
|
224
|
+
bottom: 90px;
|
|
225
|
+
left: 50%;
|
|
226
|
+
transform: translateX(-50%);
|
|
227
|
+
}
|
|
228
|
+
.slide-guide img {
|
|
229
|
+
animation: flowing 2s ease-in-out infinite;
|
|
230
|
+
width: 33px;
|
|
231
|
+
vertical-align: middle;
|
|
232
|
+
border-style: none;
|
|
233
|
+
}
|
|
234
|
+
body, html {
|
|
235
|
+
position: relative;
|
|
236
|
+
width: 100%;
|
|
237
|
+
height: 100%;
|
|
238
|
+
margin: 0px;
|
|
239
|
+
}
|
|
240
|
+
.swiper-container {
|
|
241
|
+
width: 100%;
|
|
242
|
+
height: 100%;
|
|
243
|
+
}
|
|
244
|
+
.swiper-slide {
|
|
245
|
+
width: 100%;
|
|
246
|
+
height: 100%;
|
|
247
|
+
overflow: hidden;
|
|
248
|
+
background-size: cover;
|
|
249
|
+
background-position: center;
|
|
250
|
+
background-repeat: no-repeat;
|
|
251
|
+
}
|
|
252
|
+
.up-arrow {
|
|
253
|
+
width: 2rem;
|
|
254
|
+
height: 2rem;
|
|
255
|
+
position: fixed;
|
|
256
|
+
bottom: 2rem;
|
|
257
|
+
left: 50%;
|
|
258
|
+
transform: translate3d(-50%, 0, 0);
|
|
259
|
+
z-index: 999;
|
|
260
|
+
background: none;
|
|
261
|
+
border: none;
|
|
262
|
+
padding: 0;
|
|
263
|
+
animation: upArrowAni 2s infinite linear;
|
|
264
|
+
}
|
|
265
|
+
.up-arrow img {
|
|
266
|
+
width: 2rem;
|
|
267
|
+
height: 2rem;
|
|
268
|
+
text-align: center;
|
|
269
|
+
line-height: 2rem;
|
|
270
|
+
color: #fff;
|
|
271
|
+
font-size: 1.5rem;
|
|
272
|
+
}
|
|
273
|
+
@keyframes upArrowAni {
|
|
274
|
+
0% {
|
|
275
|
+
opacity: 0;
|
|
276
|
+
transform: translate3d(-50%, 30%, 0);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
30% {
|
|
280
|
+
opacity: 1;
|
|
281
|
+
transform: translate3d(-50%, -20%, 0);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
60% {
|
|
285
|
+
opacity: 0;
|
|
286
|
+
transform: translate3d(-50%, -35%, 0);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
100% {
|
|
290
|
+
opacity: 0;
|
|
291
|
+
transform: translate3d(-50%, -50%, 0);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.video-player {
|
|
296
|
+
position: relative;
|
|
297
|
+
text-align: center;
|
|
298
|
+
}
|
|
299
|
+
.play-pause-button {
|
|
300
|
+
position: absolute;
|
|
301
|
+
top: 50%;
|
|
302
|
+
left: 50%;
|
|
303
|
+
transform: translate(-50%, -50%);
|
|
304
|
+
cursor: pointer;
|
|
305
|
+
font-size: 2rem;
|
|
306
|
+
color: #fff;
|
|
307
|
+
background: rgba(0, 0, 0, 0.6);
|
|
308
|
+
border-radius: 50%;
|
|
309
|
+
padding: 10px;
|
|
310
|
+
transition: background 0.3s;
|
|
311
|
+
}
|
|
312
|
+
.play-pause-button:hover {
|
|
313
|
+
background: rgba(0, 0, 0, 0.8);
|
|
314
|
+
}
|
|
315
315
|
|
|
316
316
|
/*.swiper-container {
|
|
317
317
|
width: 100%;
|
|
@@ -21175,36 +21175,6 @@ var script$7 = defineComponent({
|
|
|
21175
21175
|
required: false,
|
|
21176
21176
|
default: "middle"
|
|
21177
21177
|
},
|
|
21178
|
-
countdownSize: {
|
|
21179
|
-
type: String,
|
|
21180
|
-
required: false,
|
|
21181
|
-
default: function (props) {
|
|
21182
|
-
if (props.size == 'middle') {
|
|
21183
|
-
return "2.25rem";
|
|
21184
|
-
}
|
|
21185
|
-
else if (props.size == 'large') {
|
|
21186
|
-
return "2.75rem";
|
|
21187
|
-
}
|
|
21188
|
-
else {
|
|
21189
|
-
return "1.5rem";
|
|
21190
|
-
}
|
|
21191
|
-
}
|
|
21192
|
-
},
|
|
21193
|
-
labelSize: {
|
|
21194
|
-
type: String,
|
|
21195
|
-
required: false,
|
|
21196
|
-
default: function (props) {
|
|
21197
|
-
if (props.size == 'middle') {
|
|
21198
|
-
return "1";
|
|
21199
|
-
}
|
|
21200
|
-
else if (props.size == 'large') {
|
|
21201
|
-
return "1.25rem";
|
|
21202
|
-
}
|
|
21203
|
-
else {
|
|
21204
|
-
return ".8rem";
|
|
21205
|
-
}
|
|
21206
|
-
}
|
|
21207
|
-
},
|
|
21208
21178
|
labels: {
|
|
21209
21179
|
type: Object,
|
|
21210
21180
|
required: false,
|
|
@@ -21236,9 +21206,33 @@ var script$7 = defineComponent({
|
|
|
21236
21206
|
// 抽离并且获得 styleProps
|
|
21237
21207
|
const styleProps = useStylePick(props);
|
|
21238
21208
|
const handleClick = useComponentClick(props);
|
|
21209
|
+
const labelSize = computed(() => {
|
|
21210
|
+
if (props.size == 'middle') {
|
|
21211
|
+
return "1";
|
|
21212
|
+
}
|
|
21213
|
+
else if (props.size == 'large') {
|
|
21214
|
+
return "1.25rem";
|
|
21215
|
+
}
|
|
21216
|
+
else {
|
|
21217
|
+
return ".8rem";
|
|
21218
|
+
}
|
|
21219
|
+
});
|
|
21220
|
+
const countdownSize = computed(() => {
|
|
21221
|
+
if (props.size == 'middle') {
|
|
21222
|
+
return "2.25rem";
|
|
21223
|
+
}
|
|
21224
|
+
else if (props.size == 'large') {
|
|
21225
|
+
return "2.75rem";
|
|
21226
|
+
}
|
|
21227
|
+
else {
|
|
21228
|
+
return "1.5rem";
|
|
21229
|
+
}
|
|
21230
|
+
});
|
|
21239
21231
|
return {
|
|
21240
21232
|
styleProps,
|
|
21241
|
-
handleClick
|
|
21233
|
+
handleClick,
|
|
21234
|
+
labelSize,
|
|
21235
|
+
countdownSize
|
|
21242
21236
|
};
|
|
21243
21237
|
}
|
|
21244
21238
|
});
|
|
@@ -21259,8 +21253,9 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21259
21253
|
labels: _ctx.labels,
|
|
21260
21254
|
language: _ctx.language,
|
|
21261
21255
|
countdownSize: _ctx.countdownSize,
|
|
21256
|
+
flipAnimation: _ctx.flipAnimation,
|
|
21262
21257
|
labelSize: _ctx.labelSize
|
|
21263
|
-
}, null, 8 /* PROPS */, ["deadline", "mainColor", "mainFlipBackgroundColor", "labelColor", "showLabels", "labels", "language", "countdownSize", "labelSize"])
|
|
21258
|
+
}, null, 8 /* PROPS */, ["deadline", "mainColor", "mainFlipBackgroundColor", "labelColor", "showLabels", "labels", "language", "countdownSize", "flipAnimation", "labelSize"])
|
|
21264
21259
|
], 4 /* STYLE */))
|
|
21265
21260
|
}
|
|
21266
21261
|
|
|
@@ -21182,36 +21182,6 @@
|
|
|
21182
21182
|
required: false,
|
|
21183
21183
|
default: "middle"
|
|
21184
21184
|
},
|
|
21185
|
-
countdownSize: {
|
|
21186
|
-
type: String,
|
|
21187
|
-
required: false,
|
|
21188
|
-
default: function (props) {
|
|
21189
|
-
if (props.size == 'middle') {
|
|
21190
|
-
return "2.25rem";
|
|
21191
|
-
}
|
|
21192
|
-
else if (props.size == 'large') {
|
|
21193
|
-
return "2.75rem";
|
|
21194
|
-
}
|
|
21195
|
-
else {
|
|
21196
|
-
return "1.5rem";
|
|
21197
|
-
}
|
|
21198
|
-
}
|
|
21199
|
-
},
|
|
21200
|
-
labelSize: {
|
|
21201
|
-
type: String,
|
|
21202
|
-
required: false,
|
|
21203
|
-
default: function (props) {
|
|
21204
|
-
if (props.size == 'middle') {
|
|
21205
|
-
return "1";
|
|
21206
|
-
}
|
|
21207
|
-
else if (props.size == 'large') {
|
|
21208
|
-
return "1.25rem";
|
|
21209
|
-
}
|
|
21210
|
-
else {
|
|
21211
|
-
return ".8rem";
|
|
21212
|
-
}
|
|
21213
|
-
}
|
|
21214
|
-
},
|
|
21215
21185
|
labels: {
|
|
21216
21186
|
type: Object,
|
|
21217
21187
|
required: false,
|
|
@@ -21243,9 +21213,33 @@
|
|
|
21243
21213
|
// 抽离并且获得 styleProps
|
|
21244
21214
|
const styleProps = useStylePick(props);
|
|
21245
21215
|
const handleClick = useComponentClick(props);
|
|
21216
|
+
const labelSize = vue.computed(() => {
|
|
21217
|
+
if (props.size == 'middle') {
|
|
21218
|
+
return "1";
|
|
21219
|
+
}
|
|
21220
|
+
else if (props.size == 'large') {
|
|
21221
|
+
return "1.25rem";
|
|
21222
|
+
}
|
|
21223
|
+
else {
|
|
21224
|
+
return ".8rem";
|
|
21225
|
+
}
|
|
21226
|
+
});
|
|
21227
|
+
const countdownSize = vue.computed(() => {
|
|
21228
|
+
if (props.size == 'middle') {
|
|
21229
|
+
return "2.25rem";
|
|
21230
|
+
}
|
|
21231
|
+
else if (props.size == 'large') {
|
|
21232
|
+
return "2.75rem";
|
|
21233
|
+
}
|
|
21234
|
+
else {
|
|
21235
|
+
return "1.5rem";
|
|
21236
|
+
}
|
|
21237
|
+
});
|
|
21246
21238
|
return {
|
|
21247
21239
|
styleProps,
|
|
21248
|
-
handleClick
|
|
21240
|
+
handleClick,
|
|
21241
|
+
labelSize,
|
|
21242
|
+
countdownSize
|
|
21249
21243
|
};
|
|
21250
21244
|
}
|
|
21251
21245
|
});
|
|
@@ -21266,8 +21260,9 @@
|
|
|
21266
21260
|
labels: _ctx.labels,
|
|
21267
21261
|
language: _ctx.language,
|
|
21268
21262
|
countdownSize: _ctx.countdownSize,
|
|
21263
|
+
flipAnimation: _ctx.flipAnimation,
|
|
21269
21264
|
labelSize: _ctx.labelSize
|
|
21270
|
-
}, null, 8 /* PROPS */, ["deadline", "mainColor", "mainFlipBackgroundColor", "labelColor", "showLabels", "labels", "language", "countdownSize", "labelSize"])
|
|
21265
|
+
}, null, 8 /* PROPS */, ["deadline", "mainColor", "mainFlipBackgroundColor", "labelColor", "showLabels", "labels", "language", "countdownSize", "flipAnimation", "labelSize"])
|
|
21271
21266
|
], 4 /* STYLE */))
|
|
21272
21267
|
}
|
|
21273
21268
|
|