unika-components 1.0.53 → 1.0.55
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.
|
@@ -357,6 +357,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
357
357
|
rendererSettings: any;
|
|
358
358
|
assetsPath: string;
|
|
359
359
|
}> | null>;
|
|
360
|
+
play: () => void;
|
|
360
361
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
361
362
|
left: {
|
|
362
363
|
type: StringConstructor;
|
|
@@ -1,56 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
h2.uni-text-component, p.uni-text-component {
|
|
3
|
-
margin-bottom: 0;
|
|
4
|
-
}
|
|
5
|
-
button.uni-text-component {
|
|
6
|
-
padding: 5px 10px;
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
}
|
|
9
|
-
.uni-text-component {
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
white-space: pre-wrap;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.uni-background-component {
|
|
15
|
-
width: 100%;
|
|
16
|
-
}
|
|
17
|
-
.bg-img {
|
|
18
|
-
width: 100%;
|
|
19
|
-
height: 100%;
|
|
20
|
-
object-fit: cover;
|
|
21
|
-
z-index:1;
|
|
22
|
-
}
|
|
23
|
-
.watermark {
|
|
24
|
-
height: 100%;
|
|
25
|
-
position: absolute;
|
|
26
|
-
top: 0;
|
|
27
|
-
left: 0;
|
|
28
|
-
right: 0;
|
|
29
|
-
bottom: 0;
|
|
30
|
-
}
|
|
31
|
-
.watermark-div {
|
|
32
|
-
height: 100%;
|
|
33
|
-
width:100%;
|
|
34
|
-
position:absolute;
|
|
35
|
-
z-index:99999999;
|
|
36
|
-
}
|
|
37
|
-
body:before{
|
|
38
|
-
content: '';
|
|
39
|
-
position: fixed;
|
|
40
|
-
top: 0;
|
|
41
|
-
bottom: 0;
|
|
42
|
-
left: 0;
|
|
43
|
-
right: 0;
|
|
44
|
-
z-index: -1;
|
|
45
|
-
/* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
|
|
46
|
-
background-position: center;
|
|
47
|
-
opacity: 0.1;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.uni-image-component {
|
|
51
|
-
max-width: 100%;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
2
|
.slide-guide {
|
|
55
3
|
position: absolute;
|
|
56
4
|
bottom: 90px;
|
|
@@ -123,6 +71,43 @@ body, html {
|
|
|
123
71
|
transform: translate3d(-50%, -50%, 0);
|
|
124
72
|
}
|
|
125
73
|
}
|
|
74
|
+
|
|
75
|
+
h2.uni-text-component, p.uni-text-component {
|
|
76
|
+
margin-bottom: 0;
|
|
77
|
+
}
|
|
78
|
+
button.uni-text-component {
|
|
79
|
+
padding: 5px 10px;
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
}
|
|
82
|
+
.uni-text-component {
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
white-space: pre-wrap;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.uni-video-component {
|
|
88
|
+
position: relative;
|
|
89
|
+
text-align: center;
|
|
90
|
+
}
|
|
91
|
+
.play-pause-button {
|
|
92
|
+
position: absolute;
|
|
93
|
+
top: 50%;
|
|
94
|
+
left: 50%;
|
|
95
|
+
transform: translate(-50%, -50%);
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
font-size: 2rem;
|
|
98
|
+
color: #fff;
|
|
99
|
+
background: rgba(0, 0, 0, 0.6);
|
|
100
|
+
border-radius: 50%;
|
|
101
|
+
padding: 10px;
|
|
102
|
+
transition: background 0.3s;
|
|
103
|
+
}
|
|
104
|
+
.play-pause-button:hover {
|
|
105
|
+
background: rgba(0, 0, 0, 0.8);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.uni-image-component {
|
|
109
|
+
max-width: 100%;
|
|
110
|
+
}
|
|
126
111
|
|
|
127
112
|
#audio {
|
|
128
113
|
position: absolute;
|
|
@@ -219,7 +204,7 @@ body, html {
|
|
|
219
204
|
}
|
|
220
205
|
}
|
|
221
206
|
|
|
222
|
-
.
|
|
207
|
+
.video-player {
|
|
223
208
|
position: relative;
|
|
224
209
|
text-align: center;
|
|
225
210
|
}
|
|
@@ -240,12 +225,40 @@ body, html {
|
|
|
240
225
|
background: rgba(0, 0, 0, 0.8);
|
|
241
226
|
}
|
|
242
227
|
|
|
243
|
-
.
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
228
|
+
.uni-background-component {
|
|
229
|
+
width: 100%;
|
|
230
|
+
}
|
|
231
|
+
.bg-img {
|
|
232
|
+
width: 100%;
|
|
233
|
+
height: 100%;
|
|
234
|
+
object-fit: cover;
|
|
235
|
+
z-index:1;
|
|
236
|
+
}
|
|
237
|
+
.watermark {
|
|
238
|
+
height: 100%;
|
|
239
|
+
position: absolute;
|
|
240
|
+
top: 0;
|
|
241
|
+
left: 0;
|
|
242
|
+
right: 0;
|
|
243
|
+
bottom: 0;
|
|
244
|
+
}
|
|
245
|
+
.watermark-div {
|
|
246
|
+
height: 100%;
|
|
247
|
+
width:100%;
|
|
248
|
+
position:absolute;
|
|
249
|
+
z-index:99999999;
|
|
250
|
+
}
|
|
251
|
+
body:before{
|
|
252
|
+
content: '';
|
|
253
|
+
position: fixed;
|
|
254
|
+
top: 0;
|
|
255
|
+
bottom: 0;
|
|
256
|
+
left: 0;
|
|
257
|
+
right: 0;
|
|
258
|
+
z-index: -1;
|
|
259
|
+
/* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
|
|
260
|
+
background-position: center;
|
|
261
|
+
opacity: 0.1;
|
|
249
262
|
}
|
|
250
263
|
|
|
251
264
|
.like-button {
|
|
@@ -270,6 +283,14 @@ body, html {
|
|
|
270
283
|
color: #333;
|
|
271
284
|
}
|
|
272
285
|
|
|
286
|
+
.slot-number {
|
|
287
|
+
position: absolute;
|
|
288
|
+
bottom: 2px;
|
|
289
|
+
left: 7px;
|
|
290
|
+
font-size: 12px;
|
|
291
|
+
color: #666
|
|
292
|
+
}
|
|
293
|
+
|
|
273
294
|
#app1 {
|
|
274
295
|
position: relative;
|
|
275
296
|
}
|
|
@@ -292,27 +313,6 @@ body, html {
|
|
|
292
313
|
}
|
|
293
314
|
}
|
|
294
315
|
|
|
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
|
-
|
|
316
316
|
/*.swiper-container {
|
|
317
317
|
width: 100%;
|
|
318
318
|
height: 300px;
|
|
@@ -46744,11 +46744,19 @@ var script$1 = defineComponent({
|
|
|
46744
46744
|
const styleProps = useStylePick(props);
|
|
46745
46745
|
const handleClick = useComponentClick(props);
|
|
46746
46746
|
const lottieAnimation = ref(null);
|
|
46747
|
+
const play = () => {
|
|
46748
|
+
if (lottieAnimation.value) {
|
|
46749
|
+
lottieAnimation.value.stop();
|
|
46750
|
+
lottieAnimation.value.play();
|
|
46751
|
+
console.log('播放动画');
|
|
46752
|
+
}
|
|
46753
|
+
};
|
|
46747
46754
|
return {
|
|
46748
46755
|
styleProps,
|
|
46749
46756
|
// AstronautJSON,
|
|
46750
46757
|
handleClick,
|
|
46751
|
-
lottieAnimation
|
|
46758
|
+
lottieAnimation,
|
|
46759
|
+
play
|
|
46752
46760
|
};
|
|
46753
46761
|
}
|
|
46754
46762
|
});
|
|
@@ -46751,11 +46751,19 @@
|
|
|
46751
46751
|
const styleProps = useStylePick(props);
|
|
46752
46752
|
const handleClick = useComponentClick(props);
|
|
46753
46753
|
const lottieAnimation = vue.ref(null);
|
|
46754
|
+
const play = () => {
|
|
46755
|
+
if (lottieAnimation.value) {
|
|
46756
|
+
lottieAnimation.value.stop();
|
|
46757
|
+
lottieAnimation.value.play();
|
|
46758
|
+
console.log('播放动画');
|
|
46759
|
+
}
|
|
46760
|
+
};
|
|
46754
46761
|
return {
|
|
46755
46762
|
styleProps,
|
|
46756
46763
|
// AstronautJSON,
|
|
46757
46764
|
handleClick,
|
|
46758
|
-
lottieAnimation
|
|
46765
|
+
lottieAnimation,
|
|
46766
|
+
play
|
|
46759
46767
|
};
|
|
46760
46768
|
}
|
|
46761
46769
|
});
|