unika-components 1.0.322 → 1.0.323

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.
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
22
22
  backgroundColor: string;
23
23
  }>;
24
24
  showPageIndicator: import("vue").ComputedRef<boolean>;
25
- pageTransition: import("vue").ComputedRef<string>;
25
+ pageTransition: import("vue").ComputedRef<"fade" | "slide-up" | "slide-down">;
26
26
  getPageStyle: (page: PageData) => {
27
27
  backgroundColor: string;
28
28
  backgroundImage: string;
@@ -207,6 +207,18 @@
207
207
  will-change: transform;
208
208
  }
209
209
 
210
+
211
+ .uni-calendar-component {
212
+
213
+ }
214
+ .slot-number {
215
+ position: absolute;
216
+ bottom: 2px;
217
+ left: 7px;
218
+ font-size: 12px;
219
+ color: #666
220
+ }
221
+
210
222
  .uni-video-component {
211
223
  position: relative;
212
224
  text-align: center;
@@ -228,18 +240,6 @@
228
240
  background: rgba(0, 0, 0, 0.8);
229
241
  }
230
242
 
231
-
232
- .uni-calendar-component {
233
-
234
- }
235
- .slot-number {
236
- position: absolute;
237
- bottom: 2px;
238
- left: 7px;
239
- font-size: 12px;
240
- color: #666
241
- }
242
-
243
243
  .like-button {
244
244
  display: flex;
245
245
  flex-direction: column;
@@ -262,6 +262,11 @@
262
262
  color: #333;
263
263
  }
264
264
 
265
+ .uni-lotties-component {
266
+ width: 100%;
267
+ height: 100%;
268
+ }
269
+
265
270
  .ant-input-number {
266
271
  box-sizing: border-box;
267
272
  margin: 0;
@@ -297,130 +302,18 @@
297
302
  vertical-align: top;
298
303
  }
299
304
 
300
- .uni-build-up-component {
301
- }
302
-
303
305
  .effect {
304
306
  width: 100%;
305
307
  height: 100%;
306
308
  }
309
+
310
+ .uni-build-up-component {
311
+ }
307
312
 
308
313
  .uni-svg-component {
309
314
  display: inline-block;
310
315
  }
311
316
 
312
- .uni-lotties-component {
313
- width: 100%;
314
- height: 100%;
315
- }
316
-
317
- .page-indicator {
318
- position: fixed;
319
- display: flex;
320
- align-items: center;
321
- justify-content: center;
322
- z-index: 1000;
323
- transition: all 0.3s ease;
324
-
325
- /* 默认位置(底部居中) */
326
- &.bottom {
327
- bottom: 20px;
328
- left: 50%;
329
- transform: translateX(-50%);
330
- flex-direction: row;
331
- }
332
-
333
- /* 顶部样式 */
334
- &.top {
335
- top: 20px;
336
- left: 50%;
337
- transform: translateX(-50%);
338
- flex-direction: row;
339
- }
340
-
341
- /* 左侧样式 */
342
- &.left {
343
- left: 20px;
344
- top: 50%;
345
- transform: translateY(-50%);
346
- flex-direction: column;
347
- }
348
-
349
- /* 右侧样式 */
350
- &.right {
351
- right: 20px;
352
- top: 50%;
353
- transform: translateY(-50%);
354
- flex-direction: column;
355
- }
356
-
357
- /* 点状样式 */
358
- &.dot-style {
359
- .indicator-dot {
360
- width: v-bind('size + "px"');
361
- height: v-bind('size + "px"');
362
- margin: v-bind('spacing/2 + "px"');
363
- border-radius: 50%;
364
- background-color: v-bind('color + "4D"'); /* 添加透明度 */
365
- display: flex;
366
- align-items: center;
367
- justify-content: center;
368
- cursor: pointer;
369
- transition: all 0.3s ease;
370
-
371
- .active-dot {
372
- border-radius: 50%;
373
- transition: all 0.3s ease;
374
- }
375
-
376
- &:hover {
377
- background-color: v-bind('color + "80"');
378
- }
379
-
380
- &.active {
381
- background-color: transparent;
382
- }
383
- }
384
- }
385
-
386
- /* 数字样式 */
387
- &.number-style {
388
- padding: 6px 12px;
389
- border-radius: 20px;
390
- background-color: rgba(0, 0, 0, 0.3);
391
- color: v-bind('color');
392
- font-size: 14px;
393
-
394
- .current-page {
395
- color: v-bind('activeColor');
396
- font-weight: bold;
397
- }
398
-
399
- .separator {
400
- margin: 0 4px;
401
- opacity: 0.6;
402
- }
403
-
404
- .total-pages {
405
- opacity: 0.8;
406
- }
407
- }
408
- }
409
-
410
- .dynamic-element {
411
- position: absolute;
412
- box-sizing: border-box;
413
- }
414
-
415
- .is-sign {
416
- z-index: 10;
417
- }
418
-
419
- .is-locked {
420
- pointer-events: none;
421
- opacity: 0.7;
422
- }
423
-
424
317
 
425
318
  .no-animation__card {
426
319
  font-weight: 500;
@@ -868,3 +761,111 @@
868
761
  padding: 0 0px;
869
762
  border-bottom: 1px solid
870
763
  }
764
+
765
+ .dynamic-element {
766
+ position: absolute;
767
+ box-sizing: border-box;
768
+ }
769
+
770
+ .is-sign {
771
+ z-index: 10;
772
+ }
773
+
774
+ .is-locked {
775
+ pointer-events: none;
776
+ opacity: 0.7;
777
+ }
778
+
779
+ .page-indicator {
780
+ position: fixed;
781
+ display: flex;
782
+ align-items: center;
783
+ justify-content: center;
784
+ z-index: 1000;
785
+ transition: all 0.3s ease;
786
+
787
+ /* 默认位置(底部居中) */
788
+ &.bottom {
789
+ bottom: 20px;
790
+ left: 50%;
791
+ transform: translateX(-50%);
792
+ flex-direction: row;
793
+ }
794
+
795
+ /* 顶部样式 */
796
+ &.top {
797
+ top: 20px;
798
+ left: 50%;
799
+ transform: translateX(-50%);
800
+ flex-direction: row;
801
+ }
802
+
803
+ /* 左侧样式 */
804
+ &.left {
805
+ left: 20px;
806
+ top: 50%;
807
+ transform: translateY(-50%);
808
+ flex-direction: column;
809
+ }
810
+
811
+ /* 右侧样式 */
812
+ &.right {
813
+ right: 20px;
814
+ top: 50%;
815
+ transform: translateY(-50%);
816
+ flex-direction: column;
817
+ }
818
+
819
+ /* 点状样式 */
820
+ &.dot-style {
821
+ .indicator-dot {
822
+ width: v-bind('size + "px"');
823
+ height: v-bind('size + "px"');
824
+ margin: v-bind('spacing/2 + "px"');
825
+ border-radius: 50%;
826
+ background-color: v-bind('color + "4D"'); /* 添加透明度 */
827
+ display: flex;
828
+ align-items: center;
829
+ justify-content: center;
830
+ cursor: pointer;
831
+ transition: all 0.3s ease;
832
+
833
+ .active-dot {
834
+ border-radius: 50%;
835
+ transition: all 0.3s ease;
836
+ }
837
+
838
+ &:hover {
839
+ background-color: v-bind('color + "80"');
840
+ }
841
+
842
+ &.active {
843
+ background-color: transparent;
844
+ }
845
+ }
846
+ }
847
+
848
+ /* 数字样式 */
849
+ &.number-style {
850
+ padding: 6px 12px;
851
+ border-radius: 20px;
852
+ background-color: rgba(0, 0, 0, 0.3);
853
+ color: v-bind('color');
854
+ font-size: 14px;
855
+
856
+ .current-page {
857
+ color: v-bind('activeColor');
858
+ font-weight: bold;
859
+ }
860
+
861
+ .separator {
862
+ margin: 0 4px;
863
+ opacity: 0.6;
864
+ }
865
+
866
+ .total-pages {
867
+ opacity: 0.8;
868
+ }
869
+ }
870
+ }
871
+
@@ -6180,7 +6180,7 @@ var script$f = defineComponent({
6180
6180
  },
6181
6181
  setup(props) {
6182
6182
  const bgMusic = ref(null);
6183
- const currentPageId = ref(props.workData?.pages?.[0]?.pageId || '');
6183
+ const currentPageId = ref(props.workData && props.workData.pages && props.workData.pages[0] && props.workData.pages[0].pageId || '');
6184
6184
  // 数据解构
6185
6185
  const workData = reactive(props.workData || {});
6186
6186
  const { personalData, global, pages } = toRefs(workData);
@@ -6187,7 +6187,7 @@
6187
6187
  },
6188
6188
  setup(props) {
6189
6189
  const bgMusic = vue.ref(null);
6190
- const currentPageId = vue.ref(props.workData?.pages?.[0]?.pageId || '');
6190
+ const currentPageId = vue.ref(props.workData && props.workData.pages && props.workData.pages[0] && props.workData.pages[0].pageId || '');
6191
6191
  // 数据解构
6192
6192
  const workData = vue.reactive(props.workData || {});
6193
6193
  const { personalData, global, pages } = vue.toRefs(workData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.322",
3
+ "version": "1.0.323",
4
4
  "private": false,
5
5
  "description": "Unika Components Library",
6
6
  "main": "dist/unika-components.umd.js",