zz-shopify-components 0.16.3-beta.8 → 0.16.3-beta.9

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.
@@ -192,7 +192,9 @@
192
192
  {% endif %}
193
193
 
194
194
  {% if block.settings.pagination_type != 'none' %}
195
- <div class='swiper-pagination {% if block.settings.pagination_type == "segments" %} zz-pagination-segments {% endif %}'></div>
195
+ <div
196
+ class='swiper-pagination {% if block.settings.pagination_type == "segments" %} zz-pagination-segments {% endif %}'
197
+ ></div>
196
198
  {% endif %}
197
199
  </div>
198
200
 
@@ -235,6 +237,7 @@
235
237
  pauseOnMouseEnter: true,
236
238
  },
237
239
  {% endif %}
240
+ initialSlide: {{ block.settings.pre_show_index | default: 0 }},
238
241
  breakpoints: {
239
242
  0: {
240
243
  slidesPerView: {{ block.settings.slides_per_view_mb | default: 1 }},
@@ -310,6 +313,13 @@
310
313
  "label": "居中显示",
311
314
  "default": false
312
315
  },
316
+ {
317
+ "type": "number",
318
+ "id": "pre_show_index",
319
+ "label": "预先展示的内容序号(0开始)",
320
+ "default": 0,
321
+ "info": "0表示预先展示第一张,1表示预先展示第二张,以此类推"
322
+ },
313
323
  {
314
324
  "type": "checkbox",
315
325
  "id": "auto_height",
@@ -337,8 +347,6 @@
337
347
  "visible_if": "{{ block.settings.right_to_edge == true }}"
338
348
  },
339
349
 
340
-
341
-
342
350
  {
343
351
  "type": "checkbox",
344
352
  "id": "autoplay",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zz-shopify-components",
3
- "version": "0.16.3-beta.8",
3
+ "version": "0.16.3-beta.9",
4
4
  "description": "Reusable Shopify components for theme projects",
5
5
  "keywords": [
6
6
  "shopify",