zz-shopify-components 0.16.3-beta.3 → 0.16.3-beta.5
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.
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
<div
|
|
209
209
|
class='zz-normal-swiper swiper zz-normal-swiper-{{ block.id }}'
|
|
210
210
|
>
|
|
211
|
-
<div class='zz-swiper-wrapper swiper-wrapper'>
|
|
211
|
+
<div class='zz-swiper-wrapper swiper-wrapper tw-invisible'>
|
|
212
212
|
{% for block in block.blocks %}
|
|
213
213
|
<div class='swiper-slide'>
|
|
214
214
|
{% render block %}
|
|
@@ -291,6 +291,7 @@
|
|
|
291
291
|
if (initialized) return;
|
|
292
292
|
initialized = true;
|
|
293
293
|
instance = new Swiper(swiperSelector, options);
|
|
294
|
+
if (swiperWrapper) swiperWrapper.classList.remove('tw-invisible');
|
|
294
295
|
}
|
|
295
296
|
|
|
296
297
|
const root = block.querySelector(swiperSelector);
|
|
@@ -80,6 +80,8 @@
|
|
|
80
80
|
@media screen and (max-width: 1023px) {
|
|
81
81
|
#shopify-block-{{block.id}} .zz-video-swiper-preview {
|
|
82
82
|
padding-bottom: 68px;
|
|
83
|
+
padding-left: 20px;
|
|
84
|
+
padding-right: 20px;
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
#shopify-block-{{block.id}} .zz-video-swiper-preview .swiper-slide .banner-item::after {
|
|
@@ -217,12 +219,9 @@
|
|
|
217
219
|
let progressTimer = null;
|
|
218
220
|
|
|
219
221
|
const prevSwiper = new Swiper(swiperClassName, {
|
|
220
|
-
{% if block.settings.if_loop == true %}
|
|
221
|
-
loop: true,
|
|
222
|
-
{% endif %}
|
|
223
222
|
slidesPerView: 'auto',
|
|
224
223
|
initialSlide: isDesktop ? 1 : 0,
|
|
225
|
-
centeredSlides: true,
|
|
224
|
+
centeredSlides: isDesktop ? true : false,
|
|
226
225
|
spaceBetween: isDesktop ? 24 : 12,
|
|
227
226
|
navigation: {
|
|
228
227
|
nextEl: '.swiper-button-next',
|
|
@@ -442,12 +441,6 @@
|
|
|
442
441
|
"default": "#000000",
|
|
443
442
|
"label": "移动端轮播导航圆圈颜色"
|
|
444
443
|
},
|
|
445
|
-
{
|
|
446
|
-
"type": "checkbox",
|
|
447
|
-
"id": "if_loop",
|
|
448
|
-
"label": "是否循环播放",
|
|
449
|
-
"default": false
|
|
450
|
-
},
|
|
451
444
|
{
|
|
452
445
|
"type": "checkbox",
|
|
453
446
|
"id": "if_autoplay",
|