unika-components 1.0.25 → 1.0.26

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,13 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ [x: string]: any;
3
+ }, {
4
+ styleProps: import("vue").ComputedRef<Pick<any, string>>;
5
+ handleClick: () => void;
6
+ getTop: (i: number) => string;
7
+ getLeft: (i: number) => string;
8
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ [x: string]: any;
10
+ }>>, {
11
+ [x: string]: any;
12
+ }, {}>;
13
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import UniEffect from './UniEffect.vue';
2
+ export default UniEffect;
@@ -0,0 +1,2 @@
1
+ export declare function into(): void;
2
+ export declare function snowDestoty(): void;
@@ -334,6 +334,26 @@ export declare const likeDefaultProps: {
334
334
  top: string;
335
335
  right: string;
336
336
  };
337
+ export declare const effectDefaultProps: {
338
+ actionType: string;
339
+ url: string;
340
+ height: string;
341
+ width: string;
342
+ paddingLeft: string;
343
+ paddingRight: string;
344
+ paddingTop: string;
345
+ paddingBottom: string;
346
+ borderStyle: string;
347
+ borderColor: string;
348
+ borderWidth: string;
349
+ borderRadius: string;
350
+ boxShadow: string;
351
+ opacity: number;
352
+ position: string;
353
+ left: string;
354
+ top: string;
355
+ right: string;
356
+ };
337
357
  export declare const componentsDefaultProps: {
338
358
  'uni-text': {
339
359
  props: {
@@ -585,6 +605,28 @@ export declare const componentsDefaultProps: {
585
605
  right: string;
586
606
  };
587
607
  };
608
+ 'uni-effect': {
609
+ props: {
610
+ actionType: string;
611
+ url: string;
612
+ height: string;
613
+ width: string;
614
+ paddingLeft: string;
615
+ paddingRight: string;
616
+ paddingTop: string;
617
+ paddingBottom: string;
618
+ borderStyle: string;
619
+ borderColor: string;
620
+ borderWidth: string;
621
+ borderRadius: string;
622
+ boxShadow: string;
623
+ opacity: number;
624
+ position: string;
625
+ left: string;
626
+ top: string;
627
+ right: string;
628
+ };
629
+ };
588
630
  };
589
631
  export declare const isEditingProp: {
590
632
  isEditing: {
@@ -12,8 +12,9 @@ import UniCountdown from './components/UniCountdown';
12
12
  import UniMap from './components/UniMap';
13
13
  import UniCall from './components/UniCall';
14
14
  import UniLike from './components/UniLike';
15
+ import UniEffect from './components/UniEffect';
15
16
  declare const install: (app: App) => void;
16
- export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniLike, install };
17
+ export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniLike, UniEffect, install };
17
18
  declare const _default: {
18
19
  install: (app: App<any>) => void;
19
20
  };
@@ -1,16 +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
2
  .uni-image-component {
15
3
  max-width: 100%;
16
4
  }
@@ -88,63 +76,6 @@ body, html {
88
76
  }
89
77
  }
90
78
 
91
- .uni-background-component {
92
- width: 100%;
93
- }
94
- .bg-img {
95
- width: 100%;
96
- height: 100%;
97
- object-fit: cover;
98
- z-index:1;
99
- }
100
- .watermark {
101
- height: 100%;
102
- position: absolute;
103
- top: 0;
104
- left: 0;
105
- right: 0;
106
- bottom: 0;
107
- }
108
- .watermark-div {
109
- height: 100%;
110
- width:100%;
111
- position:absolute;
112
- z-index:99999999;
113
- }
114
- body:before{
115
- content: '';
116
- position: fixed;
117
- top: 0;
118
- bottom: 0;
119
- left: 0;
120
- right: 0;
121
- z-index: -1;
122
- /* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
123
- background-position: center;
124
- opacity: 0.1;
125
- }
126
-
127
- .uni-video-component {
128
- position: relative;
129
- text-align: center;
130
- }
131
- .play-pause-button {
132
- position: absolute;
133
- top: 50%;
134
- left: 50%;
135
- transform: translate(-50%, -50%);
136
- cursor: pointer;
137
- font-size: 2rem;
138
- color: #fff;
139
- background: rgba(0, 0, 0, 0.6);
140
- border-radius: 50%;
141
- padding: 10px;
142
- transition: background 0.3s;
143
- }
144
- .play-pause-button:hover {
145
- background: rgba(0, 0, 0, 0.8);
146
- }
147
-
148
79
  #audio {
149
80
  position: absolute;
150
81
  right: 10px;
@@ -240,6 +171,75 @@ body, html {
240
171
  }
241
172
  }
242
173
 
174
+ .uni-background-component {
175
+ width: 100%;
176
+ }
177
+ .bg-img {
178
+ width: 100%;
179
+ height: 100%;
180
+ object-fit: cover;
181
+ z-index:1;
182
+ }
183
+ .watermark {
184
+ height: 100%;
185
+ position: absolute;
186
+ top: 0;
187
+ left: 0;
188
+ right: 0;
189
+ bottom: 0;
190
+ }
191
+ .watermark-div {
192
+ height: 100%;
193
+ width:100%;
194
+ position:absolute;
195
+ z-index:99999999;
196
+ }
197
+ body:before{
198
+ content: '';
199
+ position: fixed;
200
+ top: 0;
201
+ bottom: 0;
202
+ left: 0;
203
+ right: 0;
204
+ z-index: -1;
205
+ /* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
206
+ background-position: center;
207
+ opacity: 0.1;
208
+ }
209
+
210
+ .uni-video-component {
211
+ position: relative;
212
+ text-align: center;
213
+ }
214
+ .play-pause-button {
215
+ position: absolute;
216
+ top: 50%;
217
+ left: 50%;
218
+ transform: translate(-50%, -50%);
219
+ cursor: pointer;
220
+ font-size: 2rem;
221
+ color: #fff;
222
+ background: rgba(0, 0, 0, 0.6);
223
+ border-radius: 50%;
224
+ padding: 10px;
225
+ transition: background 0.3s;
226
+ }
227
+ .play-pause-button:hover {
228
+ background: rgba(0, 0, 0, 0.8);
229
+ }
230
+
231
+ h2.uni-text-component, p.uni-text-component {
232
+ margin-bottom: 0;
233
+ }
234
+ button.uni-text-component {
235
+ padding: 5px 10px;
236
+ cursor: pointer;
237
+ }
238
+ .uni-text-component {
239
+ box-sizing: border-box;
240
+ white-space: pre-wrap;
241
+ }
242
+
243
243
  .slot-number {
244
244
  position: absolute;
245
245
  bottom: 2px;
@@ -269,6 +269,28 @@ body, html {
269
269
  font-size: 16px;
270
270
  color: #333;
271
271
  }
272
+
273
+ #app1 {
274
+ position: relative;
275
+ }
276
+ .snowflake {
277
+ position: absolute;
278
+ top: 0;
279
+ left: 0;
280
+ width: 10px;
281
+ height: 10px;
282
+ background: red;
283
+ border-radius: 50%;
284
+ animation: falling 10s linear infinite;
285
+ }
286
+ @keyframes falling {
287
+ from {
288
+ transform: translateY(0) rotate(0deg);
289
+ }
290
+ to {
291
+ transform: translateY(100vh) rotate(360deg);
292
+ }
293
+ }
272
294
  /**
273
295
  * Swiper 6.8.4
274
296
  * Most modern mobile touch slider and framework with hardware accelerated transitions