unika-components 1.0.394 → 1.0.395

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.
@@ -67,38 +67,6 @@
67
67
  }
68
68
  }
69
69
 
70
- .ele-shape {
71
- position: absolute;
72
- overflow: hidden;
73
- }
74
-
75
- .ani-wrap {
76
- width: 100%;
77
- height: 100%;
78
- box-sizing: border-box;
79
- }
80
-
81
- .e-shape {
82
- width: 100%;
83
- height: 100%;
84
- }
85
-
86
- .svg-container :deep(svg) {
87
- width: 100%;
88
- height: 100%;
89
- display: block;
90
- }
91
-
92
- .svg-loading,
93
- .svg-error {
94
- display: flex;
95
- align-items: center;
96
- justify-content: center;
97
- width: 100%;
98
- height: 100%;
99
- background: rgba(0,0,0,0.05);
100
- }
101
-
102
70
  .ele-img {
103
71
  position: absolute;
104
72
  overflow: hidden;
@@ -149,6 +117,38 @@
149
117
  transform: scale(1);
150
118
  }
151
119
  }
120
+
121
+ .ele-shape {
122
+ position: absolute;
123
+ overflow: hidden;
124
+ }
125
+
126
+ .ani-wrap {
127
+ width: 100%;
128
+ height: 100%;
129
+ box-sizing: border-box;
130
+ }
131
+
132
+ .e-shape {
133
+ width: 100%;
134
+ height: 100%;
135
+ }
136
+
137
+ .svg-container :deep(svg) {
138
+ width: 100%;
139
+ height: 100%;
140
+ display: block;
141
+ }
142
+
143
+ .svg-loading,
144
+ .svg-error {
145
+ display: flex;
146
+ align-items: center;
147
+ justify-content: center;
148
+ width: 100%;
149
+ height: 100%;
150
+ background: rgba(0,0,0,0.05);
151
+ }
152
152
 
153
153
  @font-face {
154
154
  font-family: iconfont;
@@ -741,107 +741,86 @@
741
741
  background: #fff;
742
742
  }
743
743
 
744
- .effect-container {
745
- will-change: transform;
746
- }
747
-
748
- .particles-wrapper {
749
- position: relative;
750
- width: 100%;
751
- height: 100%;
752
- }
753
-
754
- .particle {
744
+ .element-video {
755
745
  position: absolute;
756
- background-repeat: no-repeat;
757
- background-size: contain;
758
- animation-name: falling;
759
- animation-timing-function: linear;
760
- animation-iteration-count: infinite;
761
- will-change: transform;
762
- }
763
-
764
- @keyframes falling {
765
- 0% {
766
- transform: translateY(0) rotate(0deg);
767
- opacity: 1;
768
- }
769
- 80% {
770
- opacity: 0.8;
771
- }
772
- 100% {
773
- transform: translateY(100vh) rotate(360deg);
774
- opacity: 0;
775
- }
776
- }
777
- .ele-lottie .ele-lotwrap {
778
- overflow: hidden
746
+ overflow: hidden;
747
+ background-color: #000;
779
748
  }
780
749
 
781
- .ele-effect .effect-wrap {
782
- position: relative;
783
- overflow: hidden;
750
+ .element-video .ani-wrap, .element-video img {
751
+ display: block;
784
752
  width: 100%;
785
- height: 100%
753
+ height: 100%;
786
754
  }
787
755
 
788
- .ele-effect .e-small {
789
- position: absolute;
790
- width: 24px;
791
- height: 24px;
792
- background-image: url(http://cdn.h5ds.com/static/images/snow.png);
793
- background-size: cover;
794
- background-repeat: no-repeat;
795
- -webkit-transform-origin: center;
796
- transform-origin: center;
797
- -webkit-animation: snow 5s linear infinite;
798
- animation: snow 5s linear infinite
756
+ .video-container {
757
+ width: 100%;
758
+ height: 100%;
799
759
  }
800
760
 
801
- .element-ditu .ani-wrap {
802
- width: 100%;
803
- height: 100%;
804
- overflow: hidden
761
+ .video-container iframe {
762
+ width: 100%;
763
+ height: 100%;
764
+ border: none;
805
765
  }
806
766
 
807
- .element-ditu .map {
808
- width: 100%;
809
- height: 100%
767
+ .video-cover {
768
+ position: relative;
769
+ width: 100%;
770
+ height: 100%;
771
+ background-size: cover;
772
+ background-position: center;
773
+ cursor: pointer;
810
774
  }
811
775
 
812
- .element-ditu .map .el-button {
813
- width: 100%;
814
- height: 100%;
815
- display: -webkit-box;
816
- display: -ms-flexbox;
817
- display: flex;
818
- -webkit-box-align: center;
819
- -ms-flex-align: center;
820
- align-items: center;
821
- padding: 0;
822
- -webkit-box-pack: center;
823
- -ms-flex-pack: center;
824
- justify-content: center;
825
- background: inherit;
826
- color: inherit;
827
- border: none
776
+ .video-cover .play-btn {
777
+ position: absolute;
778
+ left: 50%;
779
+ top: 50%;
780
+ transform: translate(-50%, -50%);
781
+ width: 50px;
782
+ height: 50px;
783
+ opacity: 0.8;
784
+ transition: opacity 0.2s;
828
785
  }
829
786
 
830
- .element-ditu .center-map {
831
- width: 100%;
832
- height: 100%;
833
- background: #fff
787
+ .video-cover:hover .play-btn {
788
+ opacity: 1;
834
789
  }
835
790
 
836
- .element-ditu .mask-map {
837
- position: absolute;
838
- width: 100%;
839
- height: 100%;
840
- top: 0
791
+ .ant-input-number {
792
+ box-sizing: border-box;
793
+ margin: 0;
794
+ padding: 0;
795
+ color: rgba(0, 0, 0, 0.88);
796
+ font-size: 14px;
797
+ line-height: 1.5714285714285714;
798
+ list-style: none;
799
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
800
+ position: relative;
801
+ display: inline-block;
802
+ width: 100%;
803
+ min-width: 0;
804
+ background-color: #ffffff;
805
+ background-image: none;
806
+ border-width: 1px;
807
+ border-style: solid;
808
+ border-color: #d9d9d9;
809
+ border-radius: 6px;
810
+ transition: all 0.2s;
811
+ border: 1px solid #d9d9d9;
841
812
  }
842
- .map-iframe {
843
- width: 100%;
844
- height: 100%;
813
+ .ant-form-item {
814
+ box-sizing: border-box;
815
+ margin: 0;
816
+ padding: 0;
817
+ color: rgba(0, 0, 0, 0.88);
818
+ font-size: 14px;
819
+ line-height: 1.5714285714285714;
820
+ list-style: none;
821
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
822
+ margin-bottom: 0px;
823
+ vertical-align: top;
845
824
  }
846
825
 
847
826
  .call {
@@ -885,117 +864,138 @@
885
864
  background-size: contain;
886
865
  }
887
866
 
888
- .element-video {
889
- position: absolute;
890
- overflow: hidden;
891
- background-color: #000;
867
+ .element-ditu .ani-wrap {
868
+ width: 100%;
869
+ height: 100%;
870
+ overflow: hidden
892
871
  }
893
872
 
894
- .element-video .ani-wrap, .element-video img {
895
- display: block;
873
+ .element-ditu .map {
874
+ width: 100%;
875
+ height: 100%
876
+ }
877
+
878
+ .element-ditu .map .el-button {
896
879
  width: 100%;
897
880
  height: 100%;
881
+ display: -webkit-box;
882
+ display: -ms-flexbox;
883
+ display: flex;
884
+ -webkit-box-align: center;
885
+ -ms-flex-align: center;
886
+ align-items: center;
887
+ padding: 0;
888
+ -webkit-box-pack: center;
889
+ -ms-flex-pack: center;
890
+ justify-content: center;
891
+ background: inherit;
892
+ color: inherit;
893
+ border: none
898
894
  }
899
895
 
900
- .video-container {
901
- width: 100%;
902
- height: 100%;
896
+ .element-ditu .center-map {
897
+ width: 100%;
898
+ height: 100%;
899
+ background: #fff
903
900
  }
904
901
 
905
- .video-container iframe {
902
+ .element-ditu .mask-map {
903
+ position: absolute;
904
+ width: 100%;
905
+ height: 100%;
906
+ top: 0
907
+ }
908
+ .map-iframe {
909
+ width: 100%;
910
+ height: 100%;
911
+ }
912
+
913
+ .uni-lotties-component {
906
914
  width: 100%;
907
915
  height: 100%;
908
- border: none;
909
916
  }
910
917
 
911
- .video-cover {
918
+ .effect-container {
919
+ will-change: transform;
920
+ }
921
+
922
+ .particles-wrapper {
912
923
  position: relative;
913
924
  width: 100%;
914
925
  height: 100%;
915
- background-size: cover;
916
- background-position: center;
917
- cursor: pointer;
918
926
  }
919
927
 
920
- .video-cover .play-btn {
928
+ .particle {
921
929
  position: absolute;
922
- left: 50%;
923
- top: 50%;
924
- transform: translate(-50%, -50%);
925
- width: 50px;
926
- height: 50px;
927
- opacity: 0.8;
928
- transition: opacity 0.2s;
930
+ background-repeat: no-repeat;
931
+ background-size: contain;
932
+ animation-name: falling;
933
+ animation-timing-function: linear;
934
+ animation-iteration-count: infinite;
935
+ will-change: transform;
929
936
  }
930
937
 
931
- .video-cover:hover .play-btn {
932
- opacity: 1;
938
+ @keyframes falling {
939
+ 0% {
940
+ transform: translateY(0) rotate(0deg);
941
+ opacity: 1;
942
+ }
943
+ 80% {
944
+ opacity: 0.8;
945
+ }
946
+ 100% {
947
+ transform: translateY(100vh) rotate(360deg);
948
+ opacity: 0;
949
+ }
933
950
  }
934
-
935
- .like-button {
936
- display: flex;
937
- flex-direction: column;
938
- align-items: center;
939
- cursor: pointer;
951
+ .ele-lottie .ele-lotwrap {
952
+ overflow: hidden
940
953
  }
941
954
 
942
- .icon-heart {
943
- font-size: 24px;
944
- color: #e74c3c;
955
+ .ele-effect .effect-wrap {
956
+ position: relative;
957
+ overflow: hidden;
958
+ width: 100%;
959
+ height: 100%
945
960
  }
946
961
 
947
- .liked {
948
- color: #f00; /* 更改颜色以示已赞 */
962
+ .ele-effect .e-small {
963
+ position: absolute;
964
+ width: 24px;
965
+ height: 24px;
966
+ background-image: url(http://cdn.h5ds.com/static/images/snow.png);
967
+ background-size: cover;
968
+ background-repeat: no-repeat;
969
+ -webkit-transform-origin: center;
970
+ transform-origin: center;
971
+ -webkit-animation: snow 5s linear infinite;
972
+ animation: snow 5s linear infinite
949
973
  }
950
974
 
951
- .like-count {
952
- margin-top: 4px;
953
- font-size: 16px;
954
- color: #333;
955
- }
975
+ .uni-build-up-component {
976
+ }
956
977
 
957
- .ant-input-number {
958
- box-sizing: border-box;
959
- margin: 0;
960
- padding: 0;
961
- color: rgba(0, 0, 0, 0.88);
962
- font-size: 14px;
963
- line-height: 1.5714285714285714;
964
- list-style: none;
965
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
966
- position: relative;
967
- display: inline-block;
968
- width: 100%;
969
- min-width: 0;
970
- background-color: #ffffff;
971
- background-image: none;
972
- border-width: 1px;
973
- border-style: solid;
974
- border-color: #d9d9d9;
975
- border-radius: 6px;
976
- transition: all 0.2s;
977
- border: 1px solid #d9d9d9;
978
+ .like-button {
979
+ display: flex;
980
+ flex-direction: column;
981
+ align-items: center;
982
+ cursor: pointer;
978
983
  }
979
- .ant-form-item {
980
- box-sizing: border-box;
981
- margin: 0;
982
- padding: 0;
983
- color: rgba(0, 0, 0, 0.88);
984
- font-size: 14px;
985
- line-height: 1.5714285714285714;
986
- list-style: none;
987
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
988
- margin-bottom: 0px;
989
- vertical-align: top;
984
+
985
+ .icon-heart {
986
+ font-size: 24px;
987
+ color: #e74c3c;
990
988
  }
991
989
 
992
- .uni-lotties-component {
993
- width: 100%;
994
- height: 100%;
990
+ .liked {
991
+ color: #f00; /* 更改颜色以示已赞 */
995
992
  }
996
993
 
997
- .uni-build-up-component {
998
- }
994
+ .like-count {
995
+ margin-top: 4px;
996
+ font-size: 16px;
997
+ color: #333;
998
+ }
999
999
 
1000
1000
  /* Iconfont definition */
1001
1001
  @font-face {
@@ -3483,7 +3483,7 @@ input::placeholder {
3483
3483
  user-select: none;
3484
3484
  }
3485
3485
 
3486
- .f-single {
3486
+ .f-multiple {
3487
3487
  cursor: pointer;
3488
3488
  }
3489
3489
 
@@ -3508,20 +3508,21 @@ input::placeholder {
3508
3508
  vertical-align: middle;
3509
3509
  }
3510
3510
 
3511
- .f-single ul {
3511
+ .f-multiple ul {
3512
3512
  padding: 15px;
3513
3513
  margin: 0;
3514
3514
  list-style: none;
3515
3515
  }
3516
3516
 
3517
- .f-single ul li {
3518
- display: flex;
3519
- align-items: center;
3517
+ .f-multiple ul li {
3520
3518
  margin-top: 12px;
3521
3519
  font-size: 0;
3520
+ display: flex;
3521
+ align-items: center;
3522
+ cursor: pointer;
3522
3523
  }
3523
3524
 
3524
- .f-single ul li:first-child {
3525
+ .f-multiple ul li:first-child {
3525
3526
  margin-top: 0;
3526
3527
  }
3527
3528
 
@@ -3564,16 +3565,6 @@ input::placeholder {
3564
3565
  border-bottom-color: #ff4d4f;
3565
3566
  }
3566
3567
 
3567
- /* 错误提示样式 */
3568
- .error-tip {
3569
- position: fixed;
3570
- left: 0;
3571
- top: 0;
3572
- width: 100%;
3573
- height: 100%;
3574
- z-index: 1000;
3575
- }
3576
-
3577
3568
  .form-submit {
3578
3569
  cursor: pointer;
3579
3570
  transition: all 0.2s;
@@ -3639,10 +3630,100 @@ input::placeholder {
3639
3630
  text-align: center;
3640
3631
  }
3641
3632
 
3642
- .form-container {
3633
+ .ele-form {
3634
+ position: absolute;
3635
+ user-select: none;
3636
+ }
3637
+
3638
+ .f-single {
3639
+ cursor: pointer;
3640
+ }
3641
+
3642
+ .ani-wrap {
3643
+ position: relative;
3644
+ }
3645
+
3646
+ .fs-tit {
3647
+ display: flex;
3648
+ padding: 0 5px;
3649
+ height: 40px;
3650
+ align-items: center;
3651
+ white-space: nowrap;
3652
+ overflow: hidden;
3653
+ text-overflow: ellipsis;
3654
+ border-bottom: 1px solid rgba(153, 153, 153, 1);
3655
+ }
3656
+
3657
+ .require {
3658
+ padding: 0 5px 0 0;
3659
+ color: red;
3660
+ vertical-align: middle;
3661
+ }
3662
+
3663
+ .f-single ul {
3664
+ padding: 15px;
3665
+ margin: 0;
3666
+ list-style: none;
3667
+ }
3668
+
3669
+ .f-single ul li {
3670
+ display: flex;
3671
+ align-items: center;
3672
+ margin-top: 12px;
3673
+ font-size: 0;
3674
+ }
3675
+
3676
+ .f-single ul li:first-child {
3677
+ margin-top: 0;
3678
+ }
3679
+
3680
+ .fs-circle {
3681
+ display: inline-block;
3682
+ width: 16px;
3683
+ height: 16px;
3684
+ border-radius: 50%;
3643
3685
  position: relative;
3686
+ transition: all 0.2s;
3687
+ }
3688
+
3689
+ .fs-circle.selected {
3690
+ background-color: #2687f1;
3691
+ border-color: #2687f1 !important;
3692
+ }
3693
+
3694
+ .fs-circle.selected::after {
3695
+ content: "";
3696
+ position: absolute;
3697
+ top: 3px;
3698
+ left: 3px;
3699
+ width: 8px;
3700
+ height: 8px;
3701
+ border-radius: 50%;
3702
+ background-color: white;
3703
+ }
3704
+
3705
+ .fs-txt {
3706
+ display: inline-block;
3707
+ width: calc(100% - 16px);
3708
+ padding-left: 8px;
3709
+ vertical-align: top;
3710
+ word-break: break-all;
3711
+ font-size: 14px;
3712
+ line-height: 1.2;
3713
+ }
3714
+
3715
+ .has-error .fs-tit {
3716
+ border-bottom-color: #ff4d4f;
3717
+ }
3718
+
3719
+ /* 错误提示样式 */
3720
+ .error-tip {
3721
+ position: fixed;
3722
+ left: 0;
3723
+ top: 0;
3644
3724
  width: 100%;
3645
3725
  height: 100%;
3726
+ z-index: 1000;
3646
3727
  }
3647
3728
 
3648
3729
  .ele-form {
@@ -3760,19 +3841,6 @@ input::placeholder {
3760
3841
  z-index: 1000;
3761
3842
  }
3762
3843
 
3763
- .global.tel {
3764
- width: 35px;
3765
- height: 55px;
3766
- border-radius: 50%;
3767
- text-align: center;
3768
- margin-bottom: 15px;
3769
- border: 2px solid #fff;
3770
- cursor: pointer;
3771
- }
3772
- .icon-dianhua:before { content: "\E60E"; }
3773
- .iconfont { font-family: iconfont !important; font-size: 30px; font-style: normal; }
3774
- .global.tel > span { font-size: 12px; line-height: 20px; display: block;}
3775
-
3776
3844
  .global.video {
3777
3845
  width: 35px;
3778
3846
  height: 55px;
@@ -4211,91 +4279,10 @@ input::placeholder {
4211
4279
  .iconfont { font-family: iconfont !important; font-size: 30px; font-style: normal; }
4212
4280
  .global.map > span { font-size: 12px; line-height: 20px; display: block;}
4213
4281
 
4214
- .ele-form {
4215
- position: absolute;
4216
- user-select: none;
4217
- }
4218
-
4219
- .f-multiple {
4220
- cursor: pointer;
4221
- }
4222
-
4223
- .ani-wrap {
4224
- position: relative;
4225
- }
4226
-
4227
- .fs-tit {
4228
- display: flex;
4229
- padding: 0 5px;
4230
- height: 40px;
4231
- align-items: center;
4232
- white-space: nowrap;
4233
- overflow: hidden;
4234
- text-overflow: ellipsis;
4235
- border-bottom: 1px solid rgba(153, 153, 153, 1);
4236
- }
4237
-
4238
- .require {
4239
- padding: 0 5px 0 0;
4240
- color: red;
4241
- vertical-align: middle;
4242
- }
4243
-
4244
- .f-multiple ul {
4245
- padding: 15px;
4246
- margin: 0;
4247
- list-style: none;
4248
- }
4249
-
4250
- .f-multiple ul li {
4251
- margin-top: 12px;
4252
- font-size: 0;
4253
- display: flex;
4254
- align-items: center;
4255
- cursor: pointer;
4256
- }
4257
-
4258
- .f-multiple ul li:first-child {
4259
- margin-top: 0;
4260
- }
4261
-
4262
- .fs-circle {
4263
- display: inline-block;
4264
- width: 16px;
4265
- height: 16px;
4266
- border-radius: 50%;
4282
+ .form-container {
4267
4283
  position: relative;
4268
- transition: all 0.2s;
4269
- }
4270
-
4271
- .fs-circle.selected {
4272
- background-color: #2687f1;
4273
- border-color: #2687f1 !important;
4274
- }
4275
-
4276
- .fs-circle.selected::after {
4277
- content: "";
4278
- position: absolute;
4279
- top: 3px;
4280
- left: 3px;
4281
- width: 8px;
4282
- height: 8px;
4283
- border-radius: 50%;
4284
- background-color: white;
4285
- }
4286
-
4287
- .fs-txt {
4288
- display: inline-block;
4289
- width: calc(100% - 16px);
4290
- padding-left: 8px;
4291
- vertical-align: top;
4292
- word-break: break-all;
4293
- font-size: 14px;
4294
- line-height: 1.2;
4295
- }
4296
-
4297
- .has-error .fs-tit {
4298
- border-bottom-color: #ff4d4f;
4284
+ width: 100%;
4285
+ height: 100%;
4299
4286
  }
4300
4287
 
4301
4288
  .global.receipt {
@@ -4310,3 +4297,17 @@ input::placeholder {
4310
4297
  .icon-liuyan:before { content: "\E636"; }
4311
4298
  .iconfont { font-family: iconfont !important; font-size: 30px; font-style: normal; }
4312
4299
  .global.receipt > span { font-size: 12px; line-height: 20px; display: block; }
4300
+
4301
+ .global.tel {
4302
+ width: 35px;
4303
+ height: 55px;
4304
+ border-radius: 50%;
4305
+ text-align: center;
4306
+ margin-bottom: 15px;
4307
+ border: 2px solid #fff;
4308
+ cursor: pointer;
4309
+ }
4310
+ .icon-dianhua:before { content: "\E60E"; }
4311
+ .iconfont { font-family: iconfont !important; font-size: 30px; font-style: normal; }
4312
+ .global.tel > span { font-size: 12px; line-height: 20px; display: block;}
4313
+
@@ -62579,7 +62579,7 @@ var script = defineComponent({
62579
62579
  // 获取当前页面的过渡动画类型
62580
62580
  const currentTransition = computed(() => {
62581
62581
  const currentPage = pages.value.find(page => page.pageId === currentPageId.value);
62582
- return currentPage?.ani || 'slide';
62582
+ return currentPage && currentPage.ani || 'slide';
62583
62583
  });
62584
62584
  // 初始化 currentPageId
62585
62585
  watch(() => pages.value, (newPages) => {
@@ -62602,7 +62602,7 @@ var script = defineComponent({
62602
62602
  if (currentPage && !currentPage.autoPage)
62603
62603
  return;
62604
62604
  clearAutoPlayTimer();
62605
- if (!currentPage?.autoPage)
62605
+ if (currentPage && !currentPage.autoPage)
62606
62606
  return;
62607
62607
  autoPlayTimer.value = setTimeout(() => {
62608
62608
  const currentIndex = pages.value.findIndex(p => p.pageId === currentPageId.value);
@@ -62616,7 +62616,7 @@ var script = defineComponent({
62616
62616
  currentPageId.value = pages.value[nextIndex].pageId;
62617
62617
  startAutoPlay(); // 递归调用,使用新页面的配置
62618
62618
  }
62619
- }, currentPage.delay * 1000 || 3000);
62619
+ }, currentPage && currentPage.delay * 1000 || 3000);
62620
62620
  };
62621
62621
  const clearAutoPlayTimer = () => {
62622
62622
  if (autoPlayTimer.value) {
@@ -62641,23 +62641,23 @@ var script = defineComponent({
62641
62641
  // 计算属性
62642
62642
  const containerStyle = computed(() => {
62643
62643
  return {
62644
- width: global.value?.width || '100%',
62645
- height: global.value?.height || '100vh',
62646
- backgroundColor: global.value?.themeColor || '#ffffff'
62644
+ width: global.value.width || '100%',
62645
+ height: global.value.height || '100vh',
62646
+ backgroundColor: global.value.themeColor || '#ffffff'
62647
62647
  };
62648
62648
  });
62649
62649
  const showPageIndicator = computed(() => {
62650
- return pages.value && pages.value.length > 1 && global.value?.pageDot !== undefined;
62650
+ return pages.value && pages.value.length > 1 && global.value.pageDot !== undefined;
62651
62651
  });
62652
62652
  const isScrollMode = computed(() => {
62653
- return global.value?.cat === 'long';
62653
+ return global.value.cat === 'long';
62654
62654
  });
62655
62655
  // 方法
62656
62656
  const getPageStyle = (page) => {
62657
62657
  return {
62658
- backgroundColor: page?.bgColor,
62659
- backgroundImage: page?.bgImage ? `url(${page.bgImage})` : 'none',
62660
- opacity: page?.bgOpacity || '1'
62658
+ backgroundColor: page.bgColor,
62659
+ backgroundImage: page.bgImage ? `url(${page.bgImage})` : 'none',
62660
+ opacity: page.bgOpacity || '1'
62661
62661
  };
62662
62662
  };
62663
62663
  const beforeEnter = (el) => {
@@ -62583,7 +62583,7 @@ summary tabindex target title type usemap value width wmode wrap`;
62583
62583
  // 获取当前页面的过渡动画类型
62584
62584
  const currentTransition = vue.computed(() => {
62585
62585
  const currentPage = pages.value.find(page => page.pageId === currentPageId.value);
62586
- return currentPage?.ani || 'slide';
62586
+ return currentPage && currentPage.ani || 'slide';
62587
62587
  });
62588
62588
  // 初始化 currentPageId
62589
62589
  vue.watch(() => pages.value, (newPages) => {
@@ -62606,7 +62606,7 @@ summary tabindex target title type usemap value width wmode wrap`;
62606
62606
  if (currentPage && !currentPage.autoPage)
62607
62607
  return;
62608
62608
  clearAutoPlayTimer();
62609
- if (!currentPage?.autoPage)
62609
+ if (currentPage && !currentPage.autoPage)
62610
62610
  return;
62611
62611
  autoPlayTimer.value = setTimeout(() => {
62612
62612
  const currentIndex = pages.value.findIndex(p => p.pageId === currentPageId.value);
@@ -62620,7 +62620,7 @@ summary tabindex target title type usemap value width wmode wrap`;
62620
62620
  currentPageId.value = pages.value[nextIndex].pageId;
62621
62621
  startAutoPlay(); // 递归调用,使用新页面的配置
62622
62622
  }
62623
- }, currentPage.delay * 1000 || 3000);
62623
+ }, currentPage && currentPage.delay * 1000 || 3000);
62624
62624
  };
62625
62625
  const clearAutoPlayTimer = () => {
62626
62626
  if (autoPlayTimer.value) {
@@ -62645,23 +62645,23 @@ summary tabindex target title type usemap value width wmode wrap`;
62645
62645
  // 计算属性
62646
62646
  const containerStyle = vue.computed(() => {
62647
62647
  return {
62648
- width: global.value?.width || '100%',
62649
- height: global.value?.height || '100vh',
62650
- backgroundColor: global.value?.themeColor || '#ffffff'
62648
+ width: global.value.width || '100%',
62649
+ height: global.value.height || '100vh',
62650
+ backgroundColor: global.value.themeColor || '#ffffff'
62651
62651
  };
62652
62652
  });
62653
62653
  const showPageIndicator = vue.computed(() => {
62654
- return pages.value && pages.value.length > 1 && global.value?.pageDot !== undefined;
62654
+ return pages.value && pages.value.length > 1 && global.value.pageDot !== undefined;
62655
62655
  });
62656
62656
  const isScrollMode = vue.computed(() => {
62657
- return global.value?.cat === 'long';
62657
+ return global.value.cat === 'long';
62658
62658
  });
62659
62659
  // 方法
62660
62660
  const getPageStyle = (page) => {
62661
62661
  return {
62662
- backgroundColor: page?.bgColor,
62663
- backgroundImage: page?.bgImage ? `url(${page.bgImage})` : 'none',
62664
- opacity: page?.bgOpacity || '1'
62662
+ backgroundColor: page.bgColor,
62663
+ backgroundImage: page.bgImage ? `url(${page.bgImage})` : 'none',
62664
+ opacity: page.bgOpacity || '1'
62665
62665
  };
62666
62666
  };
62667
62667
  const beforeEnter = (el) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.394",
3
+ "version": "1.0.395",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",