unika-components 1.0.31 → 1.0.33

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.
@@ -0,0 +1,85 @@
1
+ import 'swiper/swiper-bundle.css';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ slides: {
4
+ type: {
5
+ (arrayLength: number): {
6
+ image: string;
7
+ }[];
8
+ (...items: {
9
+ image: string;
10
+ }[]): {
11
+ image: string;
12
+ }[];
13
+ new (arrayLength: number): {
14
+ image: string;
15
+ }[];
16
+ new (...items: {
17
+ image: string;
18
+ }[]): {
19
+ image: string;
20
+ }[];
21
+ isArray(arg: any): arg is any[];
22
+ readonly prototype: any[];
23
+ from<T>(arrayLike: ArrayLike<T>): T[];
24
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
25
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
26
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
27
+ of<T_4>(...items: T_4[]): T_4[];
28
+ readonly [Symbol.species]: ArrayConstructor;
29
+ };
30
+ default: {
31
+ image: string;
32
+ }[];
33
+ };
34
+ }, {
35
+ styleProps: import("vue").ComputedRef<Pick<any, string>>;
36
+ handleClick: () => void;
37
+ swiperOptions: import("vue").Ref<{
38
+ navigation: boolean;
39
+ pagination: {
40
+ el: string;
41
+ clickable: boolean;
42
+ };
43
+ autoplay: {
44
+ delay: number;
45
+ };
46
+ effect: string;
47
+ }>;
48
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
49
+ slides: {
50
+ type: {
51
+ (arrayLength: number): {
52
+ image: string;
53
+ }[];
54
+ (...items: {
55
+ image: string;
56
+ }[]): {
57
+ image: string;
58
+ }[];
59
+ new (arrayLength: number): {
60
+ image: string;
61
+ }[];
62
+ new (...items: {
63
+ image: string;
64
+ }[]): {
65
+ image: string;
66
+ }[];
67
+ isArray(arg: any): arg is any[];
68
+ readonly prototype: any[];
69
+ from<T>(arrayLike: ArrayLike<T>): T[];
70
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
71
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
72
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
73
+ of<T_4>(...items: T_4[]): T_4[];
74
+ readonly [Symbol.species]: ArrayConstructor;
75
+ };
76
+ default: {
77
+ image: string;
78
+ }[];
79
+ };
80
+ }>>, {
81
+ slides: {
82
+ image: string;
83
+ }[];
84
+ }, {}>;
85
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import UniSwiper from './UniSwiper.vue';
2
+ export default UniSwiper;
@@ -354,7 +354,7 @@ export declare const effectDefaultProps: {
354
354
  top: string;
355
355
  right: string;
356
356
  };
357
- export declare const registerFormfaultProps: {
357
+ export declare const registerFormDfaultProps: {
358
358
  actionType: string;
359
359
  url: string;
360
360
  height: string;
@@ -374,7 +374,27 @@ export declare const registerFormfaultProps: {
374
374
  top: string;
375
375
  right: string;
376
376
  };
377
- export declare const lottiesfaultProps: {
377
+ export declare const lottiesDfaultProps: {
378
+ actionType: string;
379
+ url: string;
380
+ height: string;
381
+ width: string;
382
+ paddingLeft: string;
383
+ paddingRight: string;
384
+ paddingTop: string;
385
+ paddingBottom: string;
386
+ borderStyle: string;
387
+ borderColor: string;
388
+ borderWidth: string;
389
+ borderRadius: string;
390
+ boxShadow: string;
391
+ opacity: number;
392
+ position: string;
393
+ left: string;
394
+ top: string;
395
+ right: string;
396
+ };
397
+ export declare const swiperDfaultProps: {
378
398
  actionType: string;
379
399
  url: string;
380
400
  height: string;
@@ -711,6 +731,28 @@ export declare const componentsDefaultProps: {
711
731
  right: string;
712
732
  };
713
733
  };
734
+ 'uni-swiper': {
735
+ props: {
736
+ actionType: string;
737
+ url: string;
738
+ height: string;
739
+ width: string;
740
+ paddingLeft: string;
741
+ paddingRight: string;
742
+ paddingTop: string;
743
+ paddingBottom: string;
744
+ borderStyle: string;
745
+ borderColor: string;
746
+ borderWidth: string;
747
+ borderRadius: string;
748
+ boxShadow: string;
749
+ opacity: number;
750
+ position: string;
751
+ left: string;
752
+ top: string;
753
+ right: string;
754
+ };
755
+ };
714
756
  };
715
757
  export declare const isEditingProp: {
716
758
  isEditing: {
@@ -15,8 +15,9 @@ import UniLike from './components/UniLike';
15
15
  import UniEffect from './components/UniEffect';
16
16
  import UniRegisterForm from './components/UniRegisterForm';
17
17
  import UniLotties from './components/UniLotties';
18
+ import UniSwiper from './components/UniSwiper';
18
19
  declare const install: (app: App) => void;
19
- export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniLike, UniEffect, UniRegisterForm, UniLotties, install };
20
+ export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniLike, UniEffect, UniRegisterForm, UniLotties, UniSwiper, install };
20
21
  declare const _default: {
21
22
  install: (app: App<any>) => void;
22
23
  };
@@ -83,63 +83,10 @@ body, html {
83
83
  transform: translate3d(-50%, -50%, 0);
84
84
  }
85
85
  }
86
-
87
- .uni-background-component {
88
- width: 100%;
89
- }
90
- .bg-img {
91
- width: 100%;
92
- height: 100%;
93
- object-fit: cover;
94
- z-index:1;
95
- }
96
- .watermark {
97
- height: 100%;
98
- position: absolute;
99
- top: 0;
100
- left: 0;
101
- right: 0;
102
- bottom: 0;
103
- }
104
- .watermark-div {
105
- height: 100%;
106
- width:100%;
107
- position:absolute;
108
- z-index:99999999;
109
- }
110
- body:before{
111
- content: '';
112
- position: fixed;
113
- top: 0;
114
- bottom: 0;
115
- left: 0;
116
- right: 0;
117
- z-index: -1;
118
- /* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
119
- background-position: center;
120
- opacity: 0.1;
121
- }
122
-
123
- .uni-video-component {
124
- position: relative;
125
- text-align: center;
126
- }
127
- .play-pause-button {
128
- position: absolute;
129
- top: 50%;
130
- left: 50%;
131
- transform: translate(-50%, -50%);
132
- cursor: pointer;
133
- font-size: 2rem;
134
- color: #fff;
135
- background: rgba(0, 0, 0, 0.6);
136
- border-radius: 50%;
137
- padding: 10px;
138
- transition: background 0.3s;
139
- }
140
- .play-pause-button:hover {
141
- background: rgba(0, 0, 0, 0.8);
142
- }
86
+
87
+ .uni-image-component {
88
+ max-width: 100%;
89
+ }
143
90
 
144
91
  #audio {
145
92
  position: absolute;
@@ -236,6 +183,42 @@ body, html {
236
183
  }
237
184
  }
238
185
 
186
+ .uni-background-component {
187
+ width: 100%;
188
+ }
189
+ .bg-img {
190
+ width: 100%;
191
+ height: 100%;
192
+ object-fit: cover;
193
+ z-index:1;
194
+ }
195
+ .watermark {
196
+ height: 100%;
197
+ position: absolute;
198
+ top: 0;
199
+ left: 0;
200
+ right: 0;
201
+ bottom: 0;
202
+ }
203
+ .watermark-div {
204
+ height: 100%;
205
+ width:100%;
206
+ position:absolute;
207
+ z-index:99999999;
208
+ }
209
+ body:before{
210
+ content: '';
211
+ position: fixed;
212
+ top: 0;
213
+ bottom: 0;
214
+ left: 0;
215
+ right: 0;
216
+ z-index: -1;
217
+ /* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
218
+ background-position: center;
219
+ opacity: 0.1;
220
+ }
221
+
239
222
  .slot-number {
240
223
  position: absolute;
241
224
  bottom: 2px;
@@ -243,32 +226,27 @@ body, html {
243
226
  font-size: 12px;
244
227
  color: #666
245
228
  }
246
-
247
- .uni-image-component {
248
- max-width: 100%;
249
- }
250
-
251
- .like-button {
252
- display: flex;
253
- flex-direction: column;
254
- align-items: center;
255
- cursor: pointer;
256
- }
257
229
 
258
- .icon-heart {
259
- font-size: 24px;
260
- color: #e74c3c;
261
- }
262
-
263
- .liked {
264
- color: #f00; /* 更改颜色以示已赞 */
265
- }
266
-
267
- .like-count {
268
- margin-top: 4px;
269
- font-size: 16px;
270
- color: #333;
271
- }
230
+ .uni-video-component {
231
+ position: relative;
232
+ text-align: center;
233
+ }
234
+ .play-pause-button {
235
+ position: absolute;
236
+ top: 50%;
237
+ left: 50%;
238
+ transform: translate(-50%, -50%);
239
+ cursor: pointer;
240
+ font-size: 2rem;
241
+ color: #fff;
242
+ background: rgba(0, 0, 0, 0.6);
243
+ border-radius: 50%;
244
+ padding: 10px;
245
+ transition: background 0.3s;
246
+ }
247
+ .play-pause-button:hover {
248
+ background: rgba(0, 0, 0, 0.8);
249
+ }
272
250
 
273
251
  .video-player {
274
252
  position: relative;
@@ -291,6 +269,20 @@ body, html {
291
269
  background: rgba(0, 0, 0, 0.8);
292
270
  }
293
271
 
272
+ .swiper-container {
273
+ width: 100%;
274
+ height: 300px;
275
+ }
276
+
277
+ .swiper-slide {
278
+ text-align: center;
279
+ }
280
+
281
+ .swiper-slide img {
282
+ max-width: 100%;
283
+ max-height: 100%;
284
+ }
285
+
294
286
  #app1 {
295
287
  position: relative;
296
288
  }
@@ -312,6 +304,28 @@ body, html {
312
304
  transform: translateY(100vh) rotate(360deg);
313
305
  }
314
306
  }
307
+
308
+ .like-button {
309
+ display: flex;
310
+ flex-direction: column;
311
+ align-items: center;
312
+ cursor: pointer;
313
+ }
314
+
315
+ .icon-heart {
316
+ font-size: 24px;
317
+ color: #e74c3c;
318
+ }
319
+
320
+ .liked {
321
+ color: #f00; /* 更改颜色以示已赞 */
322
+ }
323
+
324
+ .like-count {
325
+ margin-top: 4px;
326
+ font-size: 16px;
327
+ color: #333;
328
+ }
315
329
  /**
316
330
  * Swiper 6.8.4
317
331
  * Most modern mobile touch slider and framework with hardware accelerated transitions