unika-components 1.0.69 → 1.0.71

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.
@@ -34,20 +34,6 @@ declare const _default: import("vue").DefineComponent<{
34
34
  }, {
35
35
  styleProps: import("vue").ComputedRef<Pick<any, string>>;
36
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
- direction: string;
49
- modules: import("swiper/types").SwiperComponent[];
50
- effect: string;
51
37
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
52
38
  slides: {
53
39
  type: {
@@ -347,24 +347,15 @@ export declare const lottiesDefaultProps: {
347
347
  pauseAnimation: boolean;
348
348
  };
349
349
  export declare const swiperDefaultProps: {
350
- actionType: string;
351
- url: string;
352
- height: string;
353
- width: string;
354
- paddingLeft: string;
355
- paddingRight: string;
356
- paddingTop: string;
357
- paddingBottom: string;
358
- borderStyle: string;
359
- borderColor: string;
360
- borderWidth: string;
361
- borderRadius: string;
362
- boxShadow: string;
363
- opacity: number;
364
- position: string;
365
350
  left: string;
366
351
  top: string;
367
- right: string;
352
+ width: string;
353
+ transform: string;
354
+ backgroundColor: string;
355
+ height: string;
356
+ slides: {
357
+ image: string;
358
+ }[];
368
359
  };
369
360
  export declare const componentsDefaultProps: {
370
361
  'uni-text': {
@@ -622,24 +613,15 @@ export declare const componentsDefaultProps: {
622
613
  };
623
614
  'uni-swiper': {
624
615
  props: {
625
- actionType: string;
626
- url: string;
627
- height: string;
628
- width: string;
629
- paddingLeft: string;
630
- paddingRight: string;
631
- paddingTop: string;
632
- paddingBottom: string;
633
- borderStyle: string;
634
- borderColor: string;
635
- borderWidth: string;
636
- borderRadius: string;
637
- boxShadow: string;
638
- opacity: number;
639
- position: string;
640
616
  left: string;
641
617
  top: string;
642
- right: string;
618
+ width: string;
619
+ transform: string;
620
+ backgroundColor: string;
621
+ height: string;
622
+ slides: {
623
+ image: string;
624
+ }[];
643
625
  };
644
626
  };
645
627
  'uni-button': {
@@ -3,18 +3,6 @@
3
3
  max-width: 100%;
4
4
  }
5
5
 
6
- h2.uni-text-component, p.uni-text-component {
7
- margin-bottom: 0;
8
- }
9
- button.uni-text-component {
10
- padding: 5px 10px;
11
- cursor: pointer;
12
- }
13
- .uni-text-component {
14
- box-sizing: border-box;
15
- white-space: pre-wrap;
16
- }
17
-
18
6
  .slide-guide {
19
7
  position: absolute;
20
8
  bottom: 90px;
@@ -88,14 +76,6 @@ body, html {
88
76
  }
89
77
  }
90
78
 
91
- .slot-number {
92
- position: absolute;
93
- bottom: 2px;
94
- left: 7px;
95
- font-size: 12px;
96
- color: #666
97
- }
98
-
99
79
  .uni-background-component {
100
80
  width: 100%;
101
81
  }
@@ -132,6 +112,47 @@ body, html {
132
112
  opacity: 0.1;
133
113
  }
134
114
 
115
+ .slot-number {
116
+ position: absolute;
117
+ bottom: 2px;
118
+ left: 7px;
119
+ font-size: 12px;
120
+ color: #666
121
+ }
122
+
123
+ h2.uni-text-component, p.uni-text-component {
124
+ margin-bottom: 0;
125
+ }
126
+ button.uni-text-component {
127
+ padding: 5px 10px;
128
+ cursor: pointer;
129
+ }
130
+ .uni-text-component {
131
+ box-sizing: border-box;
132
+ white-space: pre-wrap;
133
+ }
134
+
135
+ .uni-video-component {
136
+ position: relative;
137
+ text-align: center;
138
+ }
139
+ .play-pause-button {
140
+ position: absolute;
141
+ top: 50%;
142
+ left: 50%;
143
+ transform: translate(-50%, -50%);
144
+ cursor: pointer;
145
+ font-size: 2rem;
146
+ color: #fff;
147
+ background: rgba(0, 0, 0, 0.6);
148
+ border-radius: 50%;
149
+ padding: 10px;
150
+ transition: background 0.3s;
151
+ }
152
+ .play-pause-button:hover {
153
+ background: rgba(0, 0, 0, 0.8);
154
+ }
155
+
135
156
  #audio {
136
157
  position: absolute;
137
158
  right: 10px;
@@ -289,28 +310,7 @@ body, html {
289
310
  vertical-align: top;
290
311
  }
291
312
 
292
- .uni-video-component {
293
- position: relative;
294
- text-align: center;
295
- }
296
- .play-pause-button {
297
- position: absolute;
298
- top: 50%;
299
- left: 50%;
300
- transform: translate(-50%, -50%);
301
- cursor: pointer;
302
- font-size: 2rem;
303
- color: #fff;
304
- background: rgba(0, 0, 0, 0.6);
305
- border-radius: 50%;
306
- padding: 10px;
307
- transition: background 0.3s;
308
- }
309
- .play-pause-button:hover {
310
- background: rgba(0, 0, 0, 0.8);
311
- }
312
-
313
- .swiper-component {
313
+ .swiper-warp {
314
314
  width: 100%;
315
315
  height: 100%;
316
316
  }
@@ -871,6 +871,193 @@ button.swiper-pagination-bullet {
871
871
  backface-visibility: hidden;
872
872
  }
873
873
 
874
+
875
+ .no-animation__card {
876
+ font-weight: 500;
877
+ font-size: var(--countdown-size, 2rem);
878
+ line-height: 1.5;
879
+ display: block;
880
+ color: var(--main-color, #EC685C);
881
+ }
882
+
883
+ .flip-clock {
884
+ text-align: center;
885
+ perspective: 600px;
886
+ margin: 0 auto;
887
+ }
888
+
889
+ .flip-clock *,
890
+ .flip-clock *:before,
891
+ .flip-clock *:after {
892
+ box-sizing: border-box;
893
+ }
894
+
895
+ .flip-clock__piece {
896
+ display: inline-block;
897
+ margin: 0 0.2vw;
898
+ }
899
+
900
+ @media (min-width: 1000px) {
901
+ .flip-clock__piece {
902
+ margin: 0 5px;
903
+ }
904
+ }
905
+
906
+ .flip-clock__slot {
907
+ font-size: var(--label-size, 1rem);
908
+ line-height: 1.5;
909
+ display: block;
910
+ color: var(--label-color, #222222);
911
+ }
912
+
913
+ .flip-card {
914
+ display: block;
915
+ position: relative;
916
+ padding-bottom: 0.72em; /* halfHeight */
917
+ font-size: var(--countdown-size, 2.25rem);
918
+ line-height: 0.95;
919
+ }
920
+
921
+ @media (min-width: 1000px) {
922
+ .flip-clock__slot {
923
+ font-size: 1.2rem;
924
+ }
925
+
926
+ .flip-card {
927
+ font-size: 3rem;
928
+ }
929
+ }
930
+
931
+ .flip-card__top,
932
+ .flip-card__bottom,
933
+ .flip-card__back-bottom,
934
+ .flip-card__back::before,
935
+ .flip-card__back::after{
936
+ display: block;
937
+ height: 0.72em; /* halfHeight */
938
+ color: var(--main-color, #EC685C);
939
+ background: var(--main-flip-background-color, #222222);
940
+ padding: 0.23em 0.15em 0.4em;
941
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
942
+ backface-visibility: hidden;
943
+ -webkit-backface-visibility: hidden;
944
+ transform-style: preserve-3d;
945
+ width: 2.1em;
946
+ }
947
+
948
+ .flip-card__top-4digits,
949
+ .flip-card__bottom-4digits,
950
+ .flip-card__back-bottom-4digits,
951
+ .flip-card__back-4digits::before,
952
+ .flip-card__back-4digits::after {
953
+ display: block;
954
+ height: 0.72em; /* halfHeight */
955
+ color: var(--main-color, #EC685C);
956
+ background: var(--main-flip-background-color, #222222);
957
+ padding: 0.23em 0.15em 0.4em;
958
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
959
+ backface-visibility: hidden;
960
+ -webkit-backface-visibility: hidden;
961
+ transform-style: preserve-3d;
962
+ width: 2.65em;
963
+ }
964
+
965
+ .flip-card__bottom,
966
+ .flip-card__back-bottom,
967
+ .flip-card__bottom-4digits,
968
+ .flip-card__back-bottom-4digits {
969
+ color: var(--second-flip-color, #EC685C);
970
+ position: absolute;
971
+ top: 50%;
972
+ left: 0;
973
+ border-top: solid 1px var(--second-flip-background-color, #000);
974
+ background: var(--second-flip-background-color, #393939);
975
+ border-radius: 0 0 0.15em 0.15em; /* borderRadius */
976
+ pointer-events: none;
977
+ overflow: hidden;
978
+ z-index: 2;
979
+ }
980
+
981
+ .flip-card__back-bottom,
982
+ .flip-card__back-bottom-4digits {
983
+ z-index: 1;
984
+ }
985
+
986
+ .flip-card__bottom::after,
987
+ .flip-card__back-bottom::after,
988
+ .flip-card__bottom-4digits::after,
989
+ .flip-card__back-bottom-4digits::after {
990
+ display: block;
991
+ margin-top: -0.72em; /* Negative halfHeight */
992
+ }
993
+ .flip-card__back::before,
994
+ .flip-card__bottom::after,
995
+ .flip-card__back-bottom::after,
996
+ .flip-card__back-4digits::before,
997
+ .flip-card__bottom-4digits::after,
998
+ .flip-card__back-bottom-4digits::after {
999
+ content: attr(data-value);
1000
+ }
1001
+
1002
+ .flip-card__back,
1003
+ .flip-card__back-4digits {
1004
+ position: absolute;
1005
+ top: 0;
1006
+ height: 100%;
1007
+ left: 0%;
1008
+ pointer-events: none;
1009
+ }
1010
+ .flip-card__back::before,
1011
+ .flip-card__back-4digits::before {
1012
+ position: relative;
1013
+ overflow: hidden;
1014
+ z-index: -1;
1015
+ }
1016
+
1017
+ .flip .flip-card__back::before,
1018
+ .flip .flip-card__back-4digits::before {
1019
+ z-index: 1;
1020
+ animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
1021
+ animation-fill-mode: both;
1022
+ transform-origin: center bottom;
1023
+ }
1024
+
1025
+ .flip .flip-card__bottom,
1026
+ .flip .flip-card__bottom-4digits {
1027
+ transform-origin: center top;
1028
+ animation-fill-mode: both;
1029
+ animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
1030
+ }
1031
+ @keyframes flipTop {
1032
+ 0% {
1033
+ transform: rotateX(0deg);
1034
+ z-index: 2;
1035
+ }
1036
+ 0%, 99% {
1037
+ opacity: 1;
1038
+ }
1039
+ 100% {
1040
+ transform: rotateX(-90deg);
1041
+ opacity: 0;
1042
+ }
1043
+ }
1044
+
1045
+ @keyframes flipBottom {
1046
+ 0%, 50% {
1047
+ z-index: -1;
1048
+ transform: rotateX(90deg);
1049
+ opacity: 0;
1050
+ }
1051
+ 51% {
1052
+ opacity: 1;
1053
+ }
1054
+ 100% {
1055
+ opacity: 1;
1056
+ transform: rotateX(0deg);
1057
+ z-index: 5;
1058
+ }
1059
+ }
1060
+
874
1061
  .unika-calendar-title {
875
1062
  font-size: 25px;
876
1063
  padding-bottom: 4px;
@@ -1122,190 +1309,3 @@ button.swiper-pagination-bullet {
1122
1309
  padding: 0 0px;
1123
1310
  border-bottom: 1px solid
1124
1311
  }
1125
-
1126
-
1127
- .no-animation__card {
1128
- font-weight: 500;
1129
- font-size: var(--countdown-size, 2rem);
1130
- line-height: 1.5;
1131
- display: block;
1132
- color: var(--main-color, #EC685C);
1133
- }
1134
-
1135
- .flip-clock {
1136
- text-align: center;
1137
- perspective: 600px;
1138
- margin: 0 auto;
1139
- }
1140
-
1141
- .flip-clock *,
1142
- .flip-clock *:before,
1143
- .flip-clock *:after {
1144
- box-sizing: border-box;
1145
- }
1146
-
1147
- .flip-clock__piece {
1148
- display: inline-block;
1149
- margin: 0 0.2vw;
1150
- }
1151
-
1152
- @media (min-width: 1000px) {
1153
- .flip-clock__piece {
1154
- margin: 0 5px;
1155
- }
1156
- }
1157
-
1158
- .flip-clock__slot {
1159
- font-size: var(--label-size, 1rem);
1160
- line-height: 1.5;
1161
- display: block;
1162
- color: var(--label-color, #222222);
1163
- }
1164
-
1165
- .flip-card {
1166
- display: block;
1167
- position: relative;
1168
- padding-bottom: 0.72em; /* halfHeight */
1169
- font-size: var(--countdown-size, 2.25rem);
1170
- line-height: 0.95;
1171
- }
1172
-
1173
- @media (min-width: 1000px) {
1174
- .flip-clock__slot {
1175
- font-size: 1.2rem;
1176
- }
1177
-
1178
- .flip-card {
1179
- font-size: 3rem;
1180
- }
1181
- }
1182
-
1183
- .flip-card__top,
1184
- .flip-card__bottom,
1185
- .flip-card__back-bottom,
1186
- .flip-card__back::before,
1187
- .flip-card__back::after{
1188
- display: block;
1189
- height: 0.72em; /* halfHeight */
1190
- color: var(--main-color, #EC685C);
1191
- background: var(--main-flip-background-color, #222222);
1192
- padding: 0.23em 0.15em 0.4em;
1193
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1194
- backface-visibility: hidden;
1195
- -webkit-backface-visibility: hidden;
1196
- transform-style: preserve-3d;
1197
- width: 2.1em;
1198
- }
1199
-
1200
- .flip-card__top-4digits,
1201
- .flip-card__bottom-4digits,
1202
- .flip-card__back-bottom-4digits,
1203
- .flip-card__back-4digits::before,
1204
- .flip-card__back-4digits::after {
1205
- display: block;
1206
- height: 0.72em; /* halfHeight */
1207
- color: var(--main-color, #EC685C);
1208
- background: var(--main-flip-background-color, #222222);
1209
- padding: 0.23em 0.15em 0.4em;
1210
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1211
- backface-visibility: hidden;
1212
- -webkit-backface-visibility: hidden;
1213
- transform-style: preserve-3d;
1214
- width: 2.65em;
1215
- }
1216
-
1217
- .flip-card__bottom,
1218
- .flip-card__back-bottom,
1219
- .flip-card__bottom-4digits,
1220
- .flip-card__back-bottom-4digits {
1221
- color: var(--second-flip-color, #EC685C);
1222
- position: absolute;
1223
- top: 50%;
1224
- left: 0;
1225
- border-top: solid 1px var(--second-flip-background-color, #000);
1226
- background: var(--second-flip-background-color, #393939);
1227
- border-radius: 0 0 0.15em 0.15em; /* borderRadius */
1228
- pointer-events: none;
1229
- overflow: hidden;
1230
- z-index: 2;
1231
- }
1232
-
1233
- .flip-card__back-bottom,
1234
- .flip-card__back-bottom-4digits {
1235
- z-index: 1;
1236
- }
1237
-
1238
- .flip-card__bottom::after,
1239
- .flip-card__back-bottom::after,
1240
- .flip-card__bottom-4digits::after,
1241
- .flip-card__back-bottom-4digits::after {
1242
- display: block;
1243
- margin-top: -0.72em; /* Negative halfHeight */
1244
- }
1245
- .flip-card__back::before,
1246
- .flip-card__bottom::after,
1247
- .flip-card__back-bottom::after,
1248
- .flip-card__back-4digits::before,
1249
- .flip-card__bottom-4digits::after,
1250
- .flip-card__back-bottom-4digits::after {
1251
- content: attr(data-value);
1252
- }
1253
-
1254
- .flip-card__back,
1255
- .flip-card__back-4digits {
1256
- position: absolute;
1257
- top: 0;
1258
- height: 100%;
1259
- left: 0%;
1260
- pointer-events: none;
1261
- }
1262
- .flip-card__back::before,
1263
- .flip-card__back-4digits::before {
1264
- position: relative;
1265
- overflow: hidden;
1266
- z-index: -1;
1267
- }
1268
-
1269
- .flip .flip-card__back::before,
1270
- .flip .flip-card__back-4digits::before {
1271
- z-index: 1;
1272
- animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
1273
- animation-fill-mode: both;
1274
- transform-origin: center bottom;
1275
- }
1276
-
1277
- .flip .flip-card__bottom,
1278
- .flip .flip-card__bottom-4digits {
1279
- transform-origin: center top;
1280
- animation-fill-mode: both;
1281
- animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
1282
- }
1283
- @keyframes flipTop {
1284
- 0% {
1285
- transform: rotateX(0deg);
1286
- z-index: 2;
1287
- }
1288
- 0%, 99% {
1289
- opacity: 1;
1290
- }
1291
- 100% {
1292
- transform: rotateX(-90deg);
1293
- opacity: 0;
1294
- }
1295
- }
1296
-
1297
- @keyframes flipBottom {
1298
- 0%, 50% {
1299
- z-index: -1;
1300
- transform: rotateX(90deg);
1301
- opacity: 0;
1302
- }
1303
- 51% {
1304
- opacity: 1;
1305
- }
1306
- 100% {
1307
- opacity: 1;
1308
- transform: rotateX(0deg);
1309
- z-index: 5;
1310
- }
1311
- }
@@ -5160,7 +5160,16 @@ const lottiesDefaultProps = {
5160
5160
  pauseAnimation: false
5161
5161
  };
5162
5162
  const swiperDefaultProps = {
5163
- ...commonDefaultProps
5163
+ left: '57px',
5164
+ top: '147px',
5165
+ width: '200px',
5166
+ transform: 'rotate(0deg)',
5167
+ backgroundColor: 'rgb(33, 147, 255)',
5168
+ height: '300px',
5169
+ slides: [
5170
+ { image: 'https://img1.maka.im/materialStore/beijingshejia/tupianbeijinga/9/M_8DZHHVC2/M_8DZHHVC2_v1.png?x-oss-process=image/resize,w_564' },
5171
+ { image: 'https://img1.maka.im/materialStore/beijingshejia/tupianbeijinga/9/M_61VRKZNU/M_61VRKZNU_v1.jpg?x-oss-process=image/resize,w_564' }
5172
+ ]
5164
5173
  };
5165
5174
  // this contains all default props for all the components
5166
5175
  // useful for inserting new component into the store
@@ -6921,7 +6930,7 @@ var Resize = {
6921
6930
  }
6922
6931
  };
6923
6932
 
6924
- function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
6933
+ function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
6925
6934
  var Observer = {
6926
6935
  attach: function attach(target, options) {
6927
6936
  if (options === void 0) {
@@ -6996,7 +7005,7 @@ var Observer$1 = {
6996
7005
  create: function create() {
6997
7006
  var swiper = this;
6998
7007
  bindModuleMethods(swiper, {
6999
- observer: _extends$7({}, Observer, {
7008
+ observer: _extends$8({}, Observer, {
7000
7009
  observers: []
7001
7010
  })
7002
7011
  });
@@ -10779,7 +10788,7 @@ Object.keys(prototypes).forEach(function (prototypeGroup) {
10779
10788
  Swiper$1.use([Resize, Observer$1]);
10780
10789
  var SwiperCore = Swiper$1;
10781
10790
 
10782
- function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
10791
+ function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
10783
10792
  var Navigation = {
10784
10793
  toggleEl: function toggleEl($el, disabled) {
10785
10794
  $el[disabled ? 'addClass' : 'removeClass'](this.params.navigation.disabledClass);
@@ -10910,7 +10919,7 @@ var Navigation$1 = {
10910
10919
  create: function create() {
10911
10920
  var swiper = this;
10912
10921
  bindModuleMethods(swiper, {
10913
- navigation: _extends$6({}, Navigation)
10922
+ navigation: _extends$7({}, Navigation)
10914
10923
  });
10915
10924
  },
10916
10925
  on: {
@@ -10974,7 +10983,7 @@ var Navigation$1 = {
10974
10983
  }
10975
10984
  };
10976
10985
 
10977
- function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
10986
+ function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
10978
10987
  var Pagination = {
10979
10988
  update: function update() {
10980
10989
  // Render || Update Pagination bullets/items
@@ -11288,7 +11297,7 @@ var Pagination$1 = {
11288
11297
  create: function create() {
11289
11298
  var swiper = this;
11290
11299
  bindModuleMethods(swiper, {
11291
- pagination: _extends$5({
11300
+ pagination: _extends$6({
11292
11301
  dynamicBulletIndex: 0
11293
11302
  }, Pagination)
11294
11303
  });
@@ -11352,6 +11361,225 @@ var Pagination$1 = {
11352
11361
  }
11353
11362
  };
11354
11363
 
11364
+ function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
11365
+ var Autoplay = {
11366
+ run: function run() {
11367
+ var swiper = this;
11368
+ var $activeSlideEl = swiper.slides.eq(swiper.activeIndex);
11369
+ var delay = swiper.params.autoplay.delay;
11370
+
11371
+ if ($activeSlideEl.attr('data-swiper-autoplay')) {
11372
+ delay = $activeSlideEl.attr('data-swiper-autoplay') || swiper.params.autoplay.delay;
11373
+ }
11374
+
11375
+ clearTimeout(swiper.autoplay.timeout);
11376
+ swiper.autoplay.timeout = nextTick(function () {
11377
+ var autoplayResult;
11378
+
11379
+ if (swiper.params.autoplay.reverseDirection) {
11380
+ if (swiper.params.loop) {
11381
+ swiper.loopFix();
11382
+ autoplayResult = swiper.slidePrev(swiper.params.speed, true, true);
11383
+ swiper.emit('autoplay');
11384
+ } else if (!swiper.isBeginning) {
11385
+ autoplayResult = swiper.slidePrev(swiper.params.speed, true, true);
11386
+ swiper.emit('autoplay');
11387
+ } else if (!swiper.params.autoplay.stopOnLastSlide) {
11388
+ autoplayResult = swiper.slideTo(swiper.slides.length - 1, swiper.params.speed, true, true);
11389
+ swiper.emit('autoplay');
11390
+ } else {
11391
+ swiper.autoplay.stop();
11392
+ }
11393
+ } else if (swiper.params.loop) {
11394
+ swiper.loopFix();
11395
+ autoplayResult = swiper.slideNext(swiper.params.speed, true, true);
11396
+ swiper.emit('autoplay');
11397
+ } else if (!swiper.isEnd) {
11398
+ autoplayResult = swiper.slideNext(swiper.params.speed, true, true);
11399
+ swiper.emit('autoplay');
11400
+ } else if (!swiper.params.autoplay.stopOnLastSlide) {
11401
+ autoplayResult = swiper.slideTo(0, swiper.params.speed, true, true);
11402
+ swiper.emit('autoplay');
11403
+ } else {
11404
+ swiper.autoplay.stop();
11405
+ }
11406
+
11407
+ if (swiper.params.cssMode && swiper.autoplay.running) swiper.autoplay.run();else if (autoplayResult === false) {
11408
+ swiper.autoplay.run();
11409
+ }
11410
+ }, delay);
11411
+ },
11412
+ start: function start() {
11413
+ var swiper = this;
11414
+ if (typeof swiper.autoplay.timeout !== 'undefined') return false;
11415
+ if (swiper.autoplay.running) return false;
11416
+ swiper.autoplay.running = true;
11417
+ swiper.emit('autoplayStart');
11418
+ swiper.autoplay.run();
11419
+ return true;
11420
+ },
11421
+ stop: function stop() {
11422
+ var swiper = this;
11423
+ if (!swiper.autoplay.running) return false;
11424
+ if (typeof swiper.autoplay.timeout === 'undefined') return false;
11425
+
11426
+ if (swiper.autoplay.timeout) {
11427
+ clearTimeout(swiper.autoplay.timeout);
11428
+ swiper.autoplay.timeout = undefined;
11429
+ }
11430
+
11431
+ swiper.autoplay.running = false;
11432
+ swiper.emit('autoplayStop');
11433
+ return true;
11434
+ },
11435
+ pause: function pause(speed) {
11436
+ var swiper = this;
11437
+ if (!swiper.autoplay.running) return;
11438
+ if (swiper.autoplay.paused) return;
11439
+ if (swiper.autoplay.timeout) clearTimeout(swiper.autoplay.timeout);
11440
+ swiper.autoplay.paused = true;
11441
+
11442
+ if (speed === 0 || !swiper.params.autoplay.waitForTransition) {
11443
+ swiper.autoplay.paused = false;
11444
+ swiper.autoplay.run();
11445
+ } else {
11446
+ ['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
11447
+ swiper.$wrapperEl[0].addEventListener(event, swiper.autoplay.onTransitionEnd);
11448
+ });
11449
+ }
11450
+ },
11451
+ onVisibilityChange: function onVisibilityChange() {
11452
+ var swiper = this;
11453
+ var document = getDocument$1();
11454
+
11455
+ if (document.visibilityState === 'hidden' && swiper.autoplay.running) {
11456
+ swiper.autoplay.pause();
11457
+ }
11458
+
11459
+ if (document.visibilityState === 'visible' && swiper.autoplay.paused) {
11460
+ swiper.autoplay.run();
11461
+ swiper.autoplay.paused = false;
11462
+ }
11463
+ },
11464
+ onTransitionEnd: function onTransitionEnd(e) {
11465
+ var swiper = this;
11466
+ if (!swiper || swiper.destroyed || !swiper.$wrapperEl) return;
11467
+ if (e.target !== swiper.$wrapperEl[0]) return;
11468
+ ['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
11469
+ swiper.$wrapperEl[0].removeEventListener(event, swiper.autoplay.onTransitionEnd);
11470
+ });
11471
+ swiper.autoplay.paused = false;
11472
+
11473
+ if (!swiper.autoplay.running) {
11474
+ swiper.autoplay.stop();
11475
+ } else {
11476
+ swiper.autoplay.run();
11477
+ }
11478
+ },
11479
+ onMouseEnter: function onMouseEnter() {
11480
+ var swiper = this;
11481
+
11482
+ if (swiper.params.autoplay.disableOnInteraction) {
11483
+ swiper.autoplay.stop();
11484
+ } else {
11485
+ swiper.autoplay.pause();
11486
+ }
11487
+
11488
+ ['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
11489
+ swiper.$wrapperEl[0].removeEventListener(event, swiper.autoplay.onTransitionEnd);
11490
+ });
11491
+ },
11492
+ onMouseLeave: function onMouseLeave() {
11493
+ var swiper = this;
11494
+
11495
+ if (swiper.params.autoplay.disableOnInteraction) {
11496
+ return;
11497
+ }
11498
+
11499
+ swiper.autoplay.paused = false;
11500
+ swiper.autoplay.run();
11501
+ },
11502
+ attachMouseEvents: function attachMouseEvents() {
11503
+ var swiper = this;
11504
+
11505
+ if (swiper.params.autoplay.pauseOnMouseEnter) {
11506
+ swiper.$el.on('mouseenter', swiper.autoplay.onMouseEnter);
11507
+ swiper.$el.on('mouseleave', swiper.autoplay.onMouseLeave);
11508
+ }
11509
+ },
11510
+ detachMouseEvents: function detachMouseEvents() {
11511
+ var swiper = this;
11512
+ swiper.$el.off('mouseenter', swiper.autoplay.onMouseEnter);
11513
+ swiper.$el.off('mouseleave', swiper.autoplay.onMouseLeave);
11514
+ }
11515
+ };
11516
+ var Autoplay$1 = {
11517
+ name: 'autoplay',
11518
+ params: {
11519
+ autoplay: {
11520
+ enabled: false,
11521
+ delay: 3000,
11522
+ waitForTransition: true,
11523
+ disableOnInteraction: true,
11524
+ stopOnLastSlide: false,
11525
+ reverseDirection: false,
11526
+ pauseOnMouseEnter: false
11527
+ }
11528
+ },
11529
+ create: function create() {
11530
+ var swiper = this;
11531
+ bindModuleMethods(swiper, {
11532
+ autoplay: _extends$5({}, Autoplay, {
11533
+ running: false,
11534
+ paused: false
11535
+ })
11536
+ });
11537
+ },
11538
+ on: {
11539
+ init: function init(swiper) {
11540
+ if (swiper.params.autoplay.enabled) {
11541
+ swiper.autoplay.start();
11542
+ var document = getDocument$1();
11543
+ document.addEventListener('visibilitychange', swiper.autoplay.onVisibilityChange);
11544
+ swiper.autoplay.attachMouseEvents();
11545
+ }
11546
+ },
11547
+ beforeTransitionStart: function beforeTransitionStart(swiper, speed, internal) {
11548
+ if (swiper.autoplay.running) {
11549
+ if (internal || !swiper.params.autoplay.disableOnInteraction) {
11550
+ swiper.autoplay.pause(speed);
11551
+ } else {
11552
+ swiper.autoplay.stop();
11553
+ }
11554
+ }
11555
+ },
11556
+ sliderFirstMove: function sliderFirstMove(swiper) {
11557
+ if (swiper.autoplay.running) {
11558
+ if (swiper.params.autoplay.disableOnInteraction) {
11559
+ swiper.autoplay.stop();
11560
+ } else {
11561
+ swiper.autoplay.pause();
11562
+ }
11563
+ }
11564
+ },
11565
+ touchEnd: function touchEnd(swiper) {
11566
+ if (swiper.params.cssMode && swiper.autoplay.paused && !swiper.params.autoplay.disableOnInteraction) {
11567
+ swiper.autoplay.run();
11568
+ }
11569
+ },
11570
+ destroy: function destroy(swiper) {
11571
+ swiper.autoplay.detachMouseEvents();
11572
+
11573
+ if (swiper.autoplay.running) {
11574
+ swiper.autoplay.stop();
11575
+ }
11576
+
11577
+ var document = getDocument$1();
11578
+ document.removeEventListener('visibilitychange', swiper.autoplay.onVisibilityChange);
11579
+ }
11580
+ }
11581
+ };
11582
+
11355
11583
  function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
11356
11584
  var Fade = {
11357
11585
  setTranslate: function setTranslate() {
@@ -75305,7 +75533,7 @@ script$2.install = (app) => {
75305
75533
  };
75306
75534
 
75307
75535
  const defaultProps$1 = transformToComponentProps(componentsDefaultProps['uni-swiper'].props, isEditingProp);
75308
- SwiperCore.use([Pagination$1, Navigation$1]);
75536
+ SwiperCore.use([Pagination$1, Navigation$1, Autoplay$1]);
75309
75537
  // array that contains style props
75310
75538
  var script$1 = defineComponent({
75311
75539
  name: 'uni-swiper',
@@ -75320,32 +75548,18 @@ var script$1 = defineComponent({
75320
75548
  ]
75321
75549
  }
75322
75550
  },
75323
- components: {},
75551
+ components: {
75552
+ Swiper,
75553
+ SwiperSlide
75554
+ },
75324
75555
  setup(props) {
75325
75556
  // 重用并且简化
75326
75557
  // 抽离并且获得 styleProps
75327
75558
  const styleProps = useStylePick(props);
75328
75559
  const handleClick = useComponentClick(props);
75329
- const swiperOptions = ref({
75330
- navigation: true,
75331
- pagination: {
75332
- el: '.swiper-pagination',
75333
- clickable: true
75334
- },
75335
- autoplay: {
75336
- delay: 5000
75337
- },
75338
- effect: 'fade'
75339
- });
75340
- const direction = 'horizontal';
75341
- const effect = 'fade';
75342
75560
  return {
75343
75561
  styleProps,
75344
- handleClick,
75345
- swiperOptions,
75346
- direction,
75347
- modules: [Navigation$1],
75348
- effect
75562
+ handleClick
75349
75563
  };
75350
75564
  }
75351
75565
  });
@@ -75361,10 +75575,13 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
75361
75575
  class: "uni-swiper-component"
75362
75576
  }, [
75363
75577
  createVNode(_component_swiper, {
75364
- class: "swiper-component",
75365
- modules: _ctx.modules,
75366
- effect: _ctx.effect,
75367
- direction: _ctx.direction
75578
+ class: "swiper-warp",
75579
+ autoplay: {
75580
+ "delay": 2000,
75581
+ "disableOnInteraction": false
75582
+ },
75583
+ direction: 'horizontal',
75584
+ pagination: { "clickable": true }
75368
75585
  }, {
75369
75586
  default: withCtx(() => [
75370
75587
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.slides, (slide, index) => {
@@ -75383,7 +75600,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
75383
75600
  }), 128 /* KEYED_FRAGMENT */))
75384
75601
  ]),
75385
75602
  _: 1 /* STABLE */
75386
- }, 8 /* PROPS */, ["modules", "effect", "direction"])
75603
+ })
75387
75604
  ], 4 /* STYLE */))
75388
75605
  }
75389
75606
 
@@ -5167,7 +5167,16 @@
5167
5167
  pauseAnimation: false
5168
5168
  };
5169
5169
  const swiperDefaultProps = {
5170
- ...commonDefaultProps
5170
+ left: '57px',
5171
+ top: '147px',
5172
+ width: '200px',
5173
+ transform: 'rotate(0deg)',
5174
+ backgroundColor: 'rgb(33, 147, 255)',
5175
+ height: '300px',
5176
+ slides: [
5177
+ { image: 'https://img1.maka.im/materialStore/beijingshejia/tupianbeijinga/9/M_8DZHHVC2/M_8DZHHVC2_v1.png?x-oss-process=image/resize,w_564' },
5178
+ { image: 'https://img1.maka.im/materialStore/beijingshejia/tupianbeijinga/9/M_61VRKZNU/M_61VRKZNU_v1.jpg?x-oss-process=image/resize,w_564' }
5179
+ ]
5171
5180
  };
5172
5181
  // this contains all default props for all the components
5173
5182
  // useful for inserting new component into the store
@@ -6928,7 +6937,7 @@
6928
6937
  }
6929
6938
  };
6930
6939
 
6931
- function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
6940
+ function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
6932
6941
  var Observer = {
6933
6942
  attach: function attach(target, options) {
6934
6943
  if (options === void 0) {
@@ -7003,7 +7012,7 @@
7003
7012
  create: function create() {
7004
7013
  var swiper = this;
7005
7014
  bindModuleMethods(swiper, {
7006
- observer: _extends$7({}, Observer, {
7015
+ observer: _extends$8({}, Observer, {
7007
7016
  observers: []
7008
7017
  })
7009
7018
  });
@@ -10786,7 +10795,7 @@
10786
10795
  Swiper$1.use([Resize, Observer$1]);
10787
10796
  var SwiperCore = Swiper$1;
10788
10797
 
10789
- function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
10798
+ function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
10790
10799
  var Navigation = {
10791
10800
  toggleEl: function toggleEl($el, disabled) {
10792
10801
  $el[disabled ? 'addClass' : 'removeClass'](this.params.navigation.disabledClass);
@@ -10917,7 +10926,7 @@
10917
10926
  create: function create() {
10918
10927
  var swiper = this;
10919
10928
  bindModuleMethods(swiper, {
10920
- navigation: _extends$6({}, Navigation)
10929
+ navigation: _extends$7({}, Navigation)
10921
10930
  });
10922
10931
  },
10923
10932
  on: {
@@ -10981,7 +10990,7 @@
10981
10990
  }
10982
10991
  };
10983
10992
 
10984
- function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
10993
+ function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
10985
10994
  var Pagination = {
10986
10995
  update: function update() {
10987
10996
  // Render || Update Pagination bullets/items
@@ -11295,7 +11304,7 @@
11295
11304
  create: function create() {
11296
11305
  var swiper = this;
11297
11306
  bindModuleMethods(swiper, {
11298
- pagination: _extends$5({
11307
+ pagination: _extends$6({
11299
11308
  dynamicBulletIndex: 0
11300
11309
  }, Pagination)
11301
11310
  });
@@ -11359,6 +11368,225 @@
11359
11368
  }
11360
11369
  };
11361
11370
 
11371
+ function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
11372
+ var Autoplay = {
11373
+ run: function run() {
11374
+ var swiper = this;
11375
+ var $activeSlideEl = swiper.slides.eq(swiper.activeIndex);
11376
+ var delay = swiper.params.autoplay.delay;
11377
+
11378
+ if ($activeSlideEl.attr('data-swiper-autoplay')) {
11379
+ delay = $activeSlideEl.attr('data-swiper-autoplay') || swiper.params.autoplay.delay;
11380
+ }
11381
+
11382
+ clearTimeout(swiper.autoplay.timeout);
11383
+ swiper.autoplay.timeout = nextTick(function () {
11384
+ var autoplayResult;
11385
+
11386
+ if (swiper.params.autoplay.reverseDirection) {
11387
+ if (swiper.params.loop) {
11388
+ swiper.loopFix();
11389
+ autoplayResult = swiper.slidePrev(swiper.params.speed, true, true);
11390
+ swiper.emit('autoplay');
11391
+ } else if (!swiper.isBeginning) {
11392
+ autoplayResult = swiper.slidePrev(swiper.params.speed, true, true);
11393
+ swiper.emit('autoplay');
11394
+ } else if (!swiper.params.autoplay.stopOnLastSlide) {
11395
+ autoplayResult = swiper.slideTo(swiper.slides.length - 1, swiper.params.speed, true, true);
11396
+ swiper.emit('autoplay');
11397
+ } else {
11398
+ swiper.autoplay.stop();
11399
+ }
11400
+ } else if (swiper.params.loop) {
11401
+ swiper.loopFix();
11402
+ autoplayResult = swiper.slideNext(swiper.params.speed, true, true);
11403
+ swiper.emit('autoplay');
11404
+ } else if (!swiper.isEnd) {
11405
+ autoplayResult = swiper.slideNext(swiper.params.speed, true, true);
11406
+ swiper.emit('autoplay');
11407
+ } else if (!swiper.params.autoplay.stopOnLastSlide) {
11408
+ autoplayResult = swiper.slideTo(0, swiper.params.speed, true, true);
11409
+ swiper.emit('autoplay');
11410
+ } else {
11411
+ swiper.autoplay.stop();
11412
+ }
11413
+
11414
+ if (swiper.params.cssMode && swiper.autoplay.running) swiper.autoplay.run();else if (autoplayResult === false) {
11415
+ swiper.autoplay.run();
11416
+ }
11417
+ }, delay);
11418
+ },
11419
+ start: function start() {
11420
+ var swiper = this;
11421
+ if (typeof swiper.autoplay.timeout !== 'undefined') return false;
11422
+ if (swiper.autoplay.running) return false;
11423
+ swiper.autoplay.running = true;
11424
+ swiper.emit('autoplayStart');
11425
+ swiper.autoplay.run();
11426
+ return true;
11427
+ },
11428
+ stop: function stop() {
11429
+ var swiper = this;
11430
+ if (!swiper.autoplay.running) return false;
11431
+ if (typeof swiper.autoplay.timeout === 'undefined') return false;
11432
+
11433
+ if (swiper.autoplay.timeout) {
11434
+ clearTimeout(swiper.autoplay.timeout);
11435
+ swiper.autoplay.timeout = undefined;
11436
+ }
11437
+
11438
+ swiper.autoplay.running = false;
11439
+ swiper.emit('autoplayStop');
11440
+ return true;
11441
+ },
11442
+ pause: function pause(speed) {
11443
+ var swiper = this;
11444
+ if (!swiper.autoplay.running) return;
11445
+ if (swiper.autoplay.paused) return;
11446
+ if (swiper.autoplay.timeout) clearTimeout(swiper.autoplay.timeout);
11447
+ swiper.autoplay.paused = true;
11448
+
11449
+ if (speed === 0 || !swiper.params.autoplay.waitForTransition) {
11450
+ swiper.autoplay.paused = false;
11451
+ swiper.autoplay.run();
11452
+ } else {
11453
+ ['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
11454
+ swiper.$wrapperEl[0].addEventListener(event, swiper.autoplay.onTransitionEnd);
11455
+ });
11456
+ }
11457
+ },
11458
+ onVisibilityChange: function onVisibilityChange() {
11459
+ var swiper = this;
11460
+ var document = getDocument$1();
11461
+
11462
+ if (document.visibilityState === 'hidden' && swiper.autoplay.running) {
11463
+ swiper.autoplay.pause();
11464
+ }
11465
+
11466
+ if (document.visibilityState === 'visible' && swiper.autoplay.paused) {
11467
+ swiper.autoplay.run();
11468
+ swiper.autoplay.paused = false;
11469
+ }
11470
+ },
11471
+ onTransitionEnd: function onTransitionEnd(e) {
11472
+ var swiper = this;
11473
+ if (!swiper || swiper.destroyed || !swiper.$wrapperEl) return;
11474
+ if (e.target !== swiper.$wrapperEl[0]) return;
11475
+ ['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
11476
+ swiper.$wrapperEl[0].removeEventListener(event, swiper.autoplay.onTransitionEnd);
11477
+ });
11478
+ swiper.autoplay.paused = false;
11479
+
11480
+ if (!swiper.autoplay.running) {
11481
+ swiper.autoplay.stop();
11482
+ } else {
11483
+ swiper.autoplay.run();
11484
+ }
11485
+ },
11486
+ onMouseEnter: function onMouseEnter() {
11487
+ var swiper = this;
11488
+
11489
+ if (swiper.params.autoplay.disableOnInteraction) {
11490
+ swiper.autoplay.stop();
11491
+ } else {
11492
+ swiper.autoplay.pause();
11493
+ }
11494
+
11495
+ ['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
11496
+ swiper.$wrapperEl[0].removeEventListener(event, swiper.autoplay.onTransitionEnd);
11497
+ });
11498
+ },
11499
+ onMouseLeave: function onMouseLeave() {
11500
+ var swiper = this;
11501
+
11502
+ if (swiper.params.autoplay.disableOnInteraction) {
11503
+ return;
11504
+ }
11505
+
11506
+ swiper.autoplay.paused = false;
11507
+ swiper.autoplay.run();
11508
+ },
11509
+ attachMouseEvents: function attachMouseEvents() {
11510
+ var swiper = this;
11511
+
11512
+ if (swiper.params.autoplay.pauseOnMouseEnter) {
11513
+ swiper.$el.on('mouseenter', swiper.autoplay.onMouseEnter);
11514
+ swiper.$el.on('mouseleave', swiper.autoplay.onMouseLeave);
11515
+ }
11516
+ },
11517
+ detachMouseEvents: function detachMouseEvents() {
11518
+ var swiper = this;
11519
+ swiper.$el.off('mouseenter', swiper.autoplay.onMouseEnter);
11520
+ swiper.$el.off('mouseleave', swiper.autoplay.onMouseLeave);
11521
+ }
11522
+ };
11523
+ var Autoplay$1 = {
11524
+ name: 'autoplay',
11525
+ params: {
11526
+ autoplay: {
11527
+ enabled: false,
11528
+ delay: 3000,
11529
+ waitForTransition: true,
11530
+ disableOnInteraction: true,
11531
+ stopOnLastSlide: false,
11532
+ reverseDirection: false,
11533
+ pauseOnMouseEnter: false
11534
+ }
11535
+ },
11536
+ create: function create() {
11537
+ var swiper = this;
11538
+ bindModuleMethods(swiper, {
11539
+ autoplay: _extends$5({}, Autoplay, {
11540
+ running: false,
11541
+ paused: false
11542
+ })
11543
+ });
11544
+ },
11545
+ on: {
11546
+ init: function init(swiper) {
11547
+ if (swiper.params.autoplay.enabled) {
11548
+ swiper.autoplay.start();
11549
+ var document = getDocument$1();
11550
+ document.addEventListener('visibilitychange', swiper.autoplay.onVisibilityChange);
11551
+ swiper.autoplay.attachMouseEvents();
11552
+ }
11553
+ },
11554
+ beforeTransitionStart: function beforeTransitionStart(swiper, speed, internal) {
11555
+ if (swiper.autoplay.running) {
11556
+ if (internal || !swiper.params.autoplay.disableOnInteraction) {
11557
+ swiper.autoplay.pause(speed);
11558
+ } else {
11559
+ swiper.autoplay.stop();
11560
+ }
11561
+ }
11562
+ },
11563
+ sliderFirstMove: function sliderFirstMove(swiper) {
11564
+ if (swiper.autoplay.running) {
11565
+ if (swiper.params.autoplay.disableOnInteraction) {
11566
+ swiper.autoplay.stop();
11567
+ } else {
11568
+ swiper.autoplay.pause();
11569
+ }
11570
+ }
11571
+ },
11572
+ touchEnd: function touchEnd(swiper) {
11573
+ if (swiper.params.cssMode && swiper.autoplay.paused && !swiper.params.autoplay.disableOnInteraction) {
11574
+ swiper.autoplay.run();
11575
+ }
11576
+ },
11577
+ destroy: function destroy(swiper) {
11578
+ swiper.autoplay.detachMouseEvents();
11579
+
11580
+ if (swiper.autoplay.running) {
11581
+ swiper.autoplay.stop();
11582
+ }
11583
+
11584
+ var document = getDocument$1();
11585
+ document.removeEventListener('visibilitychange', swiper.autoplay.onVisibilityChange);
11586
+ }
11587
+ }
11588
+ };
11589
+
11362
11590
  function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
11363
11591
  var Fade = {
11364
11592
  setTranslate: function setTranslate() {
@@ -75312,7 +75540,7 @@ summary tabindex target title type usemap value width wmode wrap`;
75312
75540
  };
75313
75541
 
75314
75542
  const defaultProps$1 = transformToComponentProps(componentsDefaultProps['uni-swiper'].props, isEditingProp);
75315
- SwiperCore.use([Pagination$1, Navigation$1]);
75543
+ SwiperCore.use([Pagination$1, Navigation$1, Autoplay$1]);
75316
75544
  // array that contains style props
75317
75545
  var script$1 = vue.defineComponent({
75318
75546
  name: 'uni-swiper',
@@ -75327,32 +75555,18 @@ summary tabindex target title type usemap value width wmode wrap`;
75327
75555
  ]
75328
75556
  }
75329
75557
  },
75330
- components: {},
75558
+ components: {
75559
+ Swiper,
75560
+ SwiperSlide
75561
+ },
75331
75562
  setup(props) {
75332
75563
  // 重用并且简化
75333
75564
  // 抽离并且获得 styleProps
75334
75565
  const styleProps = useStylePick(props);
75335
75566
  const handleClick = useComponentClick(props);
75336
- const swiperOptions = vue.ref({
75337
- navigation: true,
75338
- pagination: {
75339
- el: '.swiper-pagination',
75340
- clickable: true
75341
- },
75342
- autoplay: {
75343
- delay: 5000
75344
- },
75345
- effect: 'fade'
75346
- });
75347
- const direction = 'horizontal';
75348
- const effect = 'fade';
75349
75567
  return {
75350
75568
  styleProps,
75351
- handleClick,
75352
- swiperOptions,
75353
- direction,
75354
- modules: [Navigation$1],
75355
- effect
75569
+ handleClick
75356
75570
  };
75357
75571
  }
75358
75572
  });
@@ -75368,10 +75582,13 @@ summary tabindex target title type usemap value width wmode wrap`;
75368
75582
  class: "uni-swiper-component"
75369
75583
  }, [
75370
75584
  vue.createVNode(_component_swiper, {
75371
- class: "swiper-component",
75372
- modules: _ctx.modules,
75373
- effect: _ctx.effect,
75374
- direction: _ctx.direction
75585
+ class: "swiper-warp",
75586
+ autoplay: {
75587
+ "delay": 2000,
75588
+ "disableOnInteraction": false
75589
+ },
75590
+ direction: 'horizontal',
75591
+ pagination: { "clickable": true }
75375
75592
  }, {
75376
75593
  default: vue.withCtx(() => [
75377
75594
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.slides, (slide, index) => {
@@ -75390,7 +75607,7 @@ summary tabindex target title type usemap value width wmode wrap`;
75390
75607
  }), 128 /* KEYED_FRAGMENT */))
75391
75608
  ]),
75392
75609
  _: 1 /* STABLE */
75393
- }, 8 /* PROPS */, ["modules", "effect", "direction"])
75610
+ })
75394
75611
  ], 4 /* STYLE */))
75395
75612
  }
75396
75613
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",