zz-shopify-components 0.0.27 → 0.0.28-beta.2

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.
Files changed (83) hide show
  1. package/CHANGELOG.md +21 -21
  2. package/README.md +70 -56
  3. package/assets/ScrollTrigger.min.js +11 -11
  4. package/assets/gsap.min.js +11 -11
  5. package/assets/jquery.js +2 -2
  6. package/assets/lazy-video.js +2 -2
  7. package/assets/lazyload.min.js +1 -1
  8. package/assets/lozad.js +10 -10
  9. package/assets/site-jump.js +52 -52
  10. package/assets/site-jumpV2.js +35 -35
  11. package/assets/swiper-bundle.min.css +12 -12
  12. package/assets/swiper-bundle.min.js +13 -13
  13. package/assets/swiper.css +330 -330
  14. package/assets/zz-components.css +322 -322
  15. package/assets/zz-components.js +166 -166
  16. package/assets/zz-fade-in-content.js +169 -169
  17. package/assets/zz-http-request.js +73 -73
  18. package/assets/zz-world-video-comments-dialog.js +240 -240
  19. package/assets/zz-world-video-dialog.js +190 -190
  20. package/assets/zz-world-video-list.js +317 -317
  21. package/assets/zz-world-video.js +270 -270
  22. package/blocks/zz-accessories-item.liquid +188 -188
  23. package/blocks/zz-accessories-swiper.liquid +223 -223
  24. package/blocks/zz-button.liquid +216 -216
  25. package/blocks/zz-content-description-html.liquid +201 -201
  26. package/blocks/zz-content-description.liquid +209 -209
  27. package/blocks/zz-flex-layout-bg-block.liquid +524 -524
  28. package/blocks/zz-flex-layout-block.liquid +549 -549
  29. package/blocks/zz-flex-layout-widget.liquid +321 -321
  30. package/blocks/zz-full-screen-swiper.liquid +443 -443
  31. package/blocks/zz-icon.liquid +46 -46
  32. package/blocks/zz-mail.liquid +135 -135
  33. package/blocks/zz-mb-swiper-pc-flex.liquid +273 -273
  34. package/blocks/zz-price-tag-mini.liquid +106 -106
  35. package/blocks/zz-price-tag.liquid +41 -41
  36. package/blocks/zz-ratio-image.liquid +181 -181
  37. package/blocks/zz-ratio-video.liquid +115 -115
  38. package/blocks/zz-responsive-width-image.liquid +222 -222
  39. package/blocks/zz-responsive-width-video.liquid +166 -166
  40. package/blocks/zz-scroll-animate-bg-text.liquid +268 -268
  41. package/blocks/zz-scroll-cover.liquid +67 -67
  42. package/blocks/zz-tag.liquid +50 -50
  43. package/blocks/zz-text.liquid +227 -227
  44. package/blocks/zz-title.liquid +287 -287
  45. package/blocks/zz-video-button.liquid +84 -84
  46. package/blocks/zz-video-img-item.liquid +203 -203
  47. package/blocks/zz-video-img-list.liquid +166 -166
  48. package/blocks/zz-video-swiper-perview-item.liquid +221 -221
  49. package/blocks/zz-video-swiper-perview.liquid +585 -585
  50. package/blocks/zz-world-video.liquid +639 -639
  51. package/component.config.json +7 -7
  52. package/package.json +1 -1
  53. package/scripts/postinstall-v1.js +39 -39
  54. package/scripts/postinstall-v2.js +47 -47
  55. package/scripts/postinstall-v3.js +51 -51
  56. package/scripts/publish-npm.js +43 -43
  57. package/sections/zz-flex-layout-section.liquid +269 -269
  58. package/sections/zz-navigation-tab-v3.liquid +409 -409
  59. package/sections/zz-navigation-tab.liquid +411 -411
  60. package/sections/zz-shopping-card-list.liquid +399 -399
  61. package/sections/zz-video-collapse-swiper.liquid +522 -522
  62. package/sections/zz-video-tab-swiper.liquid +748 -748
  63. package/snippets/zz-button.liquid +70 -70
  64. package/snippets/zz-content-h3.liquid +15 -15
  65. package/snippets/zz-content-text.liquid +56 -56
  66. package/snippets/zz-h2.liquid +31 -31
  67. package/snippets/zz-h3.liquid +31 -31
  68. package/snippets/zz-h4.liquid +30 -30
  69. package/snippets/zz-h5.liquid +39 -39
  70. package/snippets/zz-h6.liquid +39 -39
  71. package/snippets/zz-icon-next.liquid +17 -17
  72. package/snippets/zz-icon-prev.liquid +17 -17
  73. package/snippets/zz-icon.liquid +74 -74
  74. package/snippets/zz-img-md.liquid +44 -44
  75. package/snippets/zz-img.liquid +44 -44
  76. package/snippets/zz-prev-next-blur-icon.liquid +36 -36
  77. package/snippets/zz-prev-next-btn.liquid +62 -62
  78. package/snippets/zz-price-tag.liquid +22 -22
  79. package/snippets/zz-spoke.liquid +142 -142
  80. package/snippets/zz-tag.liquid +22 -22
  81. package/snippets/zz-video-button.liquid +54 -54
  82. package/snippets/zz-video-md.liquid +117 -117
  83. package/snippets/zz-video.liquid +117 -117
@@ -1,549 +1,549 @@
1
- {% schema %}
2
- {
3
- "name": "ZZ Flex Layout Block",
4
- "class": "flex-layout-block",
5
- "settings": [
6
- {
7
- "type": "color_background",
8
- "id": "background_color",
9
- "label": "背景颜色",
10
- "default": "rgba(0,0,0,0)"
11
- },
12
- {
13
- "type": "header",
14
- "content": "💻 PC端布局设置"
15
- },
16
- {
17
- "type": "select",
18
- "id": "pc_direction",
19
- "label": "PC方向 (Direction)",
20
- "options": [
21
- { "value": "row", "label": "横向 (Horizontal)" },
22
- { "value": "column", "label": "纵向 (Vertical)" },
23
- { "value": "row-reverse", "label": "横向反向 (Horizontal Reverse)" },
24
- { "value": "column-reverse", "label": "纵向反向 (Vertical Reverse)" }
25
- ],
26
- "default": "row"
27
- },
28
- {
29
- "type": "number",
30
- "id": "pc_gap",
31
- "label": "区块间距 (Gap)",
32
- "default": 40
33
- },
34
-
35
- {
36
- "type": "select",
37
- "id": "pc_justify",
38
- "label": "PC主轴对齐 (Justify Content)",
39
- "options": [
40
- { "value": "flex-start", "label": "起始对齐 (Flex Start)" },
41
- { "value": "center", "label": "居中对齐 (Center)" },
42
- { "value": "flex-end", "label": "末尾对齐 (Flex End)" },
43
- { "value": "space-between", "label": "两端对齐 (Space Between)" },
44
- { "value": "space-around", "label": "平均间距 (Space Around)" }
45
- ],
46
- "default": "flex-start"
47
- },
48
- {
49
- "type": "select",
50
- "id": "pc_align",
51
- "label": "PC交叉轴对齐 (Align Items)",
52
- "options": [
53
- { "value": "flex-start", "label": "起始对齐 (Flex Start)" },
54
- { "value": "center", "label": "居中对齐 (Center)" },
55
- { "value": "flex-end", "label": "末尾对齐 (Flex End)" },
56
- { "value": "stretch", "label": "拉伸对齐 (Stretch)" }
57
- ],
58
- "default": "center"
59
- },
60
- {
61
- "type": "number",
62
- "id": "pc_padding_x",
63
- "label": "PC端左右内边距",
64
- "default": 0,
65
- "info": "单位:px"
66
- },
67
- {
68
- "type": "number",
69
- "id": "pc_padding_top",
70
- "label": "PC端顶部内边距 (px)",
71
- "default": 0
72
- },
73
- {
74
- "type": "number",
75
- "id": "pc_padding_bottom",
76
- "label": "PC端底部内边距 (px)",
77
- "default": 0
78
- },
79
- {
80
- "type": "number",
81
- "id": "pc_border_radius",
82
- "label": "PC端圆角 (px)",
83
- "default": 0
84
- },
85
- {
86
- "type": "checkbox",
87
- "id": "pc_full_width",
88
- "label": "是否全屏展示",
89
- "default": true
90
- },
91
- {
92
- "type": "number",
93
- "id": "pc_xl_width",
94
- "label": "XL屏幕内容区域宽度 (px)",
95
- "default": 1200,
96
- "visible_if": "{{ block.settings.pc_full_width == false }}",
97
- "info": "非全屏展示时有效"
98
- },
99
- {
100
- "type": "number",
101
- "id": "pc_lg_width",
102
- "label": "LG屏幕内容区域宽度 (vw)",
103
- "default": 90,
104
- "visible_if": "{{ block.settings.pc_full_width == false }}",
105
- "info": "非全屏展示时有效"
106
- },
107
- {
108
- "type": "header",
109
- "content": "📱 移动端布局设置"
110
- },
111
- {
112
- "type": "select",
113
- "id": "mobile_direction",
114
- "label": "移动方向 (Direction)",
115
- "options": [
116
- { "value": "row", "label": "横向 (Horizontal)" },
117
- { "value": "column", "label": "纵向 (Vertical)" },
118
- { "value": "row-reverse", "label": "横向反向 (Horizontal Reverse)" },
119
- { "value": "column-reverse", "label": "纵向反向 (Vertical Reverse)" }
120
- ],
121
- "default": "column"
122
- },
123
- {
124
- "type": "number",
125
- "id": "mobile_gap",
126
- "label": "移动区块间距 (Gap)",
127
- "default": 20
128
- },
129
- {
130
- "type": "select",
131
- "id": "mobile_justify",
132
- "label": "移动主轴对齐 (Justify Content)",
133
- "options": [
134
- { "value": "flex-start", "label": "起始对齐 (Flex Start)" },
135
- { "value": "center", "label": "居中对齐 (Center)" },
136
- { "value": "flex-end", "label": "末尾对齐 (Flex End)" },
137
- { "value": "space-between", "label": "两端对齐 (Space Between)" },
138
- { "value": "space-around", "label": "平均间距 (Space Around)" }
139
- ],
140
- "default": "flex-start"
141
- },
142
- {
143
- "type": "select",
144
- "id": "mobile_align",
145
- "label": "移动交叉轴对齐 (Align Items)",
146
- "options": [
147
- { "value": "flex-start", "label": "起始对齐 (Flex Start)" },
148
- { "value": "center", "label": "居中对齐 (Center)" },
149
- { "value": "flex-end", "label": "末尾对齐 (Flex End)" },
150
- { "value": "stretch", "label": "拉伸对齐 (Stretch)" }
151
- ],
152
- "default": "center"
153
- },
154
- {
155
- "type": "number",
156
- "id": "mobile_padding_x",
157
- "label": "移动端左右内边距",
158
- "default": 0,
159
- "info": "单位:px"
160
- },
161
- {
162
- "type": "number",
163
- "id": "mobile_padding_top",
164
- "label": "移动端顶部内边距 (px)",
165
- "default": 0
166
- },
167
- {
168
- "type": "number",
169
- "id": "mobile_padding_bottom",
170
- "label": "移动端底部内边距 (px)",
171
- "default": 0
172
- },
173
- {
174
- "type": "number",
175
- "id": "mobile_border_radius",
176
- "label": "移动端圆角 (px)",
177
- "default": 0
178
- },
179
- {
180
- "type": "header",
181
- "content": "动画设置"
182
- },
183
- {
184
- "type": "select",
185
- "id": "child_animation",
186
- "label": "子元素动画",
187
- "options": [
188
- { "value": "none-animation", "label": "无动画" },
189
- { "value": "fade-in-box", "label": "按序从下往上显示" },
190
- { "value": "fade-in-from-left", "label": "按序从左进入显示" },
191
- { "value": "fade-in-from-right", "label": "按序从右进入显示" },
192
- { "value": "slow-reveal", "label": "跟随页面滚动缓慢显示" }
193
- ],
194
- "default": "none-animation"
195
- },
196
- {
197
- "type": "select",
198
- "id": "self_animation",
199
- "label": "自身动画",
200
- "options": [
201
- { "value": "none-animation", "label": "无动画" },
202
- { "value": "fade-in-content", "label": "从下往上显示" },
203
- { "value": "fade-in-from-left-content", "label": "从左往右显示" },
204
- { "value": "fade-in-from-right-content", "label": "从右往左显示" },
205
- { "value": "slow-reveal-content", "label": "跟随页面滚动缓慢显示" }
206
- ],
207
- "default": "none-animation"
208
- },
209
-
210
- ],
211
- "blocks": [
212
- {
213
- "type": "@theme",
214
- }
215
- ],
216
- "presets": [
217
- {
218
- "name": "弹性布局",
219
- },
220
- {
221
- "name": "ZZ Flex Layout Block"
222
- },
223
- {
224
- "name": "左右布局图文,手机端上下结构",
225
- "settings": {
226
- "pc_direction": "row",
227
- "pc_gap": 40,
228
- "pc_justify": "flex-start",
229
- "pc_align": "center",
230
- "pc_padding_top": 0,
231
- "pc_padding_bottom": 0,
232
- "pc_full_width": true,
233
- "mobile_direction": "column",
234
- "mobile_gap": 20,
235
- "mobile_justify": "flex-start",
236
- "mobile_align": "center",
237
- "mobile_padding_x": 0,
238
- "mobile_padding_top": 0,
239
- "mobile_padding_bottom": 0,
240
- },
241
- "blocks": [
242
- {
243
- "type": "zz-responsive-width-image",
244
- "settings": {
245
- "desktop_image": "shopify://shop_images/preset_pc_picture_info_pic.png",
246
- "desktop_width_xl": 698,
247
- "desktop_width_lg": 600,
248
- "desktop_border_radius": 16,
249
- "mobile_image": "shopify://shop_images/preset_mob_picture_info_pic.png",
250
- "mobile_padding_x": 0,
251
- "mobile_width": 100,
252
- "mobile_border_radius": 10,
253
- "alt": "image loading"
254
-
255
- }
256
- },
257
- {
258
- "type": "zz-flex-layout-widget",
259
- "settings": {
260
- "pc_width": 0,
261
- "pc_direction": "column",
262
- "pc_gap": 40,
263
- "pc_justify": "flex-start",
264
- "pc_align": "flex-start",
265
- "mobile_direction": "column",
266
- "mobile_gap": 20,
267
- "mobile_justify": "flex-start",
268
- "mobile_align": "flex-start",
269
- "child_animation": "fade-in-from-right",
270
-
271
- },
272
- "blocks": [
273
- {
274
- "type": "zz-title",
275
- "settings": {
276
- "pc_title": "<p>title is here</p>",
277
- "mb_title": "<p>title is here</p>",
278
- "tag": "h3",
279
- "text_color": "#000000",
280
- }
281
- },
282
- {
283
- "type": "zz-content-description-html",
284
- "settings": {
285
- "text_color": "#333333",
286
- "highlight_color": "#000000",
287
- "pc_content": "<p>normal content is here and <strong> highlight the key features </strong></p>",
288
- "mobile_content": "<p>normal content is here and <strong> highlight the key features </strong></p>",
289
-
290
- }
291
- }
292
- ]
293
- }
294
-
295
- ]
296
-
297
-
298
- },
299
- {
300
- "name": "左右对称卡片布局,手机端上下",
301
- "settings": {
302
- "pc_direction": "row",
303
- "pc_gap": 32,
304
- "pc_justify": "flex-start",
305
- "pc_align": "center",
306
- "pc_full_width": true,
307
- "mobile_direction": "column",
308
- "mobile_gap": 20,
309
- "mobile_justify": "flex-start",
310
- "mobile_align": "center",
311
- },
312
- "blocks": [
313
- {
314
- "type": "zz-flex-layout-widget",
315
- "settings": {
316
- "pc_direction": "column",
317
- "pc_gap": 0,
318
- "pc_justify": "flex-start",
319
- "pc_align": "flex-start",
320
- "mobile_direction": "column",
321
- "mobile_gap": 0,
322
- "mobile_justify": "flex-start",
323
- "mobile_align": "flex-start",
324
- },
325
- "blocks": [
326
- {
327
- "type": "zz-ratio-image",
328
- "settings": {
329
- "desktop_image": "shopify://shop_images/preset_pc_middle_pic.png",
330
- "pc_width": 100,
331
- "desktop_border_radius": 16,
332
- "mobile_image": "shopify://shop_images/preset_mobile_middle_pic.png",
333
- "mobile_width": 100,
334
- "mobile_border_radius": 10,
335
- "alt": "image loading",
336
- "has_link": false,
337
- "function_type": "link",
338
- "url": "",
339
- "links": ""
340
- },
341
- },
342
- {
343
- "type": "zz-title",
344
- "name": "标题 h2-h4",
345
- "settings": {
346
- "pc_title": "<p>这里是标题</p>",
347
- "mb_title": "<p>这里是标题</p>",
348
- "tag": "h4",
349
- "italic": true,
350
- "text_color": "#000000",
351
- "text_gradient": "",
352
- "pc_align": "left",
353
- "pc_margin_top": 30,
354
- "pc_margin_bottom": 20,
355
- "mobile_align": "left",
356
- "mobile_margin_top": 20,
357
- "mobile_margin_bottom": 12,
358
- },
359
- },
360
- {
361
- "type": "zz-content-description-html",
362
- "name": "内容描述 html",
363
- "settings": {
364
- "text_color": "#333333",
365
- "pc_content": "Ideal for tight trails or mountain roads. The camera mirrors your movement, reducing the chance of collisions.",
366
- "pc_text_align": "left",
367
- "mobile_content": "<p>This is a detailed product description <strong> highlights the key features. </strong></p>",
368
- "mobile_text_align": "left",
369
- },
370
- }
371
-
372
- ]
373
- },
374
- {
375
- "type": "zz-flex-layout-widget",
376
- "settings": {
377
- "pc_direction": "column",
378
- "pc_gap": 0,
379
- "pc_justify": "flex-start",
380
- "pc_align": "flex-start",
381
- "mobile_direction": "column",
382
- "mobile_gap": 0,
383
- "mobile_justify": "flex-start",
384
- "mobile_align": "flex-start",
385
- },
386
- "blocks": [
387
- {
388
- "type": "zz-ratio-image",
389
- "settings": {
390
- "desktop_image": "shopify://shop_images/preset_pc_middle_pic.png",
391
- "pc_width": 100,
392
- "desktop_border_radius": 16,
393
- "mobile_image": "shopify://shop_images/preset_mobile_middle_pic.png",
394
- "mobile_width": 100,
395
- "mobile_border_radius": 10,
396
- "alt": "image loading",
397
- "has_link": false,
398
- "function_type": "link",
399
- "url": "",
400
- "links": ""
401
- },
402
- },
403
- {
404
- "type": "zz-title",
405
- "name": "标题 h2-h4",
406
- "settings": {
407
- "pc_title": "<p>这里是标题</p>",
408
- "mb_title": "<p>这里是标题</p>",
409
- "tag": "h4",
410
- "italic": true,
411
- "text_color": "#000000",
412
- "text_gradient": "",
413
- "pc_align": "left",
414
- "pc_margin_top": 30,
415
- "pc_margin_bottom": 20,
416
- "mobile_align": "left",
417
- "mobile_margin_top": 20,
418
- "mobile_margin_bottom": 12,
419
- },
420
- },
421
- {
422
- "type": "zz-content-description-html",
423
- "name": "内容描述 html",
424
- "settings": {
425
- "text_color": "#333333",
426
- "pc_content": "Ideal for tight trails or mountain roads. The camera mirrors your movement, reducing the chance of collisions.",
427
- "pc_text_align": "left",
428
- "mobile_content": "<p>This is a detailed product description <strong> highlights the key features. </strong></p>",
429
- "mobile_text_align": "left",
430
- },
431
- }
432
-
433
- ]
434
- }
435
-
436
- ]
437
- },
438
- {
439
- "name": "上下结构布局",
440
- "settings": {
441
- "background_color": "rgba(0,0,0,0)",
442
- "pc_direction": "column",
443
- "pc_justify": "flex-start",
444
- "pc_align": "center",
445
- "mobile_direction": "column",
446
- "mobile_justify": "flex-start",
447
- "mobile_align": "center",
448
- },
449
- "blocks": [
450
- {
451
- "type": "zz-title",
452
- "settings": {
453
- "pc_title": "<p>上下结构布局</p>",
454
- "mb_title": "<p>上下结构布局</p>",
455
- "text_color": "#000000",
456
- "pc_align": "center",
457
- "mobile_align": "center",
458
- },
459
- },
460
- {
461
- "type": "zz-ratio-image",
462
- "name": "宽度比例图片",
463
- "settings": {
464
- "desktop_image": "shopify://shop_images/preset_pc_swiper_video_poster_1.png",
465
- "pc_width": 100,
466
- "mobile_image": "shopify://shop_images/preset_mobile_swiper_video_poster_1.png",
467
- "mobile_width": 100,
468
- },
469
- },
470
- {
471
- "type": "zz-content-description",
472
- "settings": {
473
- "text_color": "#000000",
474
- "pc_content": "<p>Find new lines with the HOVERAir X1 PRO and PROMAX. Talk about chemistry. Challenge everyone in your crew to a game of “How close can you get?” Good times are guaranteed, and you’ll have the footage to prove it.</p>",
475
- "pc_text_align": "center",
476
- "mobile_content": "<p>Find new lines with the HOVERAir X1 PRO and PROMAX. Talk about chemistry. Challenge everyone in your crew to a game of “How close can you get?” Good times are guaranteed, and you’ll have the footage to prove it.</p>",
477
- "mobile_text_align": "left",
478
- },
479
- }
480
-
481
- ]
482
- }
483
- ]
484
- }
485
- {% endschema %}
486
-
487
- <style>
488
- #shopify-block-{{ block.id }} {
489
- width: 100%;
490
- overflow-x: hidden;
491
- }
492
-
493
- #shopify-block-{{ block.id }}.flex-layout-block{
494
- display: flex;
495
- }
496
-
497
- #shopify-block-{{ block.id }} .flex-layout-block-container {
498
- box-sizing: border-box;
499
- width: 100%;
500
- display: flex;
501
- flex-direction: {{ block.settings.mobile_direction }};
502
- justify-content: {{ block.settings.mobile_justify }};
503
- align-items: {{ block.settings.mobile_align }};
504
- gap: {{ block.settings.mobile_gap }}px;
505
- background-color: {{ block.settings.background_color }};
506
- padding-top: {{ block.settings.mobile_padding_top }}px;
507
- padding-bottom: {{ block.settings.mobile_padding_bottom }}px;
508
- padding-left: {{ block.settings.mobile_padding_x }}px;
509
- padding-right: {{ block.settings.mobile_padding_x }}px;
510
- border-radius: {{ block.settings.mobile_border_radius }}px;
511
- }
512
-
513
- @media (min-width: 1024px) {
514
- #shopify-block-{{ block.id }} .flex-layout-block-container {
515
- flex-direction: {{ block.settings.pc_direction }};
516
- justify-content: {{ block.settings.pc_justify }};
517
- align-items: {{ block.settings.pc_align }};
518
- gap: {{ block.settings.pc_gap }}px;
519
- padding-top: {{ block.settings.pc_padding_top }}px;
520
- padding-bottom: {{ block.settings.pc_padding_bottom }}px;
521
- padding-left: {{ block.settings.pc_padding_x }}px;
522
- padding-right: {{ block.settings.pc_padding_x }}px;
523
- border-radius: {{ block.settings.pc_border_radius }}px;
524
-
525
- {% if block.settings.pc_full_width %}
526
- width: 100%;
527
- {% else %}
528
- width: {{ block.settings.pc_lg_width }}vw;
529
- margin: 0 auto;
530
- {% endif %}
531
- }
532
- }
533
-
534
- @media (min-width: 1280px) {
535
- #shopify-block-{{ block.id }} .flex-layout-block-container {
536
- {% if block.settings.pc_full_width %}
537
- width: 100%;
538
- {% else %}
539
- width: {{ block.settings.pc_xl_width }}px;
540
- margin: 0 auto;
541
- {% endif %}
542
- }
543
- }
544
- </style>
545
-
546
- <div class="flex-layout-block-container {{ block.settings.self_animation }} {{ block.settings.child_animation }}">
547
- {% content_for 'blocks' %}
548
- </div>
549
-
1
+ {% schema %}
2
+ {
3
+ "name": "ZZ Flex Layout Block",
4
+ "class": "flex-layout-block",
5
+ "settings": [
6
+ {
7
+ "type": "color_background",
8
+ "id": "background_color",
9
+ "label": "背景颜色",
10
+ "default": "rgba(0,0,0,0)"
11
+ },
12
+ {
13
+ "type": "header",
14
+ "content": "💻 PC端布局设置"
15
+ },
16
+ {
17
+ "type": "select",
18
+ "id": "pc_direction",
19
+ "label": "PC方向 (Direction)",
20
+ "options": [
21
+ { "value": "row", "label": "横向 (Horizontal)" },
22
+ { "value": "column", "label": "纵向 (Vertical)" },
23
+ { "value": "row-reverse", "label": "横向反向 (Horizontal Reverse)" },
24
+ { "value": "column-reverse", "label": "纵向反向 (Vertical Reverse)" }
25
+ ],
26
+ "default": "row"
27
+ },
28
+ {
29
+ "type": "number",
30
+ "id": "pc_gap",
31
+ "label": "区块间距 (Gap)",
32
+ "default": 40
33
+ },
34
+
35
+ {
36
+ "type": "select",
37
+ "id": "pc_justify",
38
+ "label": "PC主轴对齐 (Justify Content)",
39
+ "options": [
40
+ { "value": "flex-start", "label": "起始对齐 (Flex Start)" },
41
+ { "value": "center", "label": "居中对齐 (Center)" },
42
+ { "value": "flex-end", "label": "末尾对齐 (Flex End)" },
43
+ { "value": "space-between", "label": "两端对齐 (Space Between)" },
44
+ { "value": "space-around", "label": "平均间距 (Space Around)" }
45
+ ],
46
+ "default": "flex-start"
47
+ },
48
+ {
49
+ "type": "select",
50
+ "id": "pc_align",
51
+ "label": "PC交叉轴对齐 (Align Items)",
52
+ "options": [
53
+ { "value": "flex-start", "label": "起始对齐 (Flex Start)" },
54
+ { "value": "center", "label": "居中对齐 (Center)" },
55
+ { "value": "flex-end", "label": "末尾对齐 (Flex End)" },
56
+ { "value": "stretch", "label": "拉伸对齐 (Stretch)" }
57
+ ],
58
+ "default": "center"
59
+ },
60
+ {
61
+ "type": "number",
62
+ "id": "pc_padding_x",
63
+ "label": "PC端左右内边距",
64
+ "default": 0,
65
+ "info": "单位:px"
66
+ },
67
+ {
68
+ "type": "number",
69
+ "id": "pc_padding_top",
70
+ "label": "PC端顶部内边距 (px)",
71
+ "default": 0
72
+ },
73
+ {
74
+ "type": "number",
75
+ "id": "pc_padding_bottom",
76
+ "label": "PC端底部内边距 (px)",
77
+ "default": 0
78
+ },
79
+ {
80
+ "type": "number",
81
+ "id": "pc_border_radius",
82
+ "label": "PC端圆角 (px)",
83
+ "default": 0
84
+ },
85
+ {
86
+ "type": "checkbox",
87
+ "id": "pc_full_width",
88
+ "label": "是否全屏展示",
89
+ "default": true
90
+ },
91
+ {
92
+ "type": "number",
93
+ "id": "pc_xl_width",
94
+ "label": "XL屏幕内容区域宽度 (px)",
95
+ "default": 1200,
96
+ "visible_if": "{{ block.settings.pc_full_width == false }}",
97
+ "info": "非全屏展示时有效"
98
+ },
99
+ {
100
+ "type": "number",
101
+ "id": "pc_lg_width",
102
+ "label": "LG屏幕内容区域宽度 (vw)",
103
+ "default": 90,
104
+ "visible_if": "{{ block.settings.pc_full_width == false }}",
105
+ "info": "非全屏展示时有效"
106
+ },
107
+ {
108
+ "type": "header",
109
+ "content": "📱 移动端布局设置"
110
+ },
111
+ {
112
+ "type": "select",
113
+ "id": "mobile_direction",
114
+ "label": "移动方向 (Direction)",
115
+ "options": [
116
+ { "value": "row", "label": "横向 (Horizontal)" },
117
+ { "value": "column", "label": "纵向 (Vertical)" },
118
+ { "value": "row-reverse", "label": "横向反向 (Horizontal Reverse)" },
119
+ { "value": "column-reverse", "label": "纵向反向 (Vertical Reverse)" }
120
+ ],
121
+ "default": "column"
122
+ },
123
+ {
124
+ "type": "number",
125
+ "id": "mobile_gap",
126
+ "label": "移动区块间距 (Gap)",
127
+ "default": 20
128
+ },
129
+ {
130
+ "type": "select",
131
+ "id": "mobile_justify",
132
+ "label": "移动主轴对齐 (Justify Content)",
133
+ "options": [
134
+ { "value": "flex-start", "label": "起始对齐 (Flex Start)" },
135
+ { "value": "center", "label": "居中对齐 (Center)" },
136
+ { "value": "flex-end", "label": "末尾对齐 (Flex End)" },
137
+ { "value": "space-between", "label": "两端对齐 (Space Between)" },
138
+ { "value": "space-around", "label": "平均间距 (Space Around)" }
139
+ ],
140
+ "default": "flex-start"
141
+ },
142
+ {
143
+ "type": "select",
144
+ "id": "mobile_align",
145
+ "label": "移动交叉轴对齐 (Align Items)",
146
+ "options": [
147
+ { "value": "flex-start", "label": "起始对齐 (Flex Start)" },
148
+ { "value": "center", "label": "居中对齐 (Center)" },
149
+ { "value": "flex-end", "label": "末尾对齐 (Flex End)" },
150
+ { "value": "stretch", "label": "拉伸对齐 (Stretch)" }
151
+ ],
152
+ "default": "center"
153
+ },
154
+ {
155
+ "type": "number",
156
+ "id": "mobile_padding_x",
157
+ "label": "移动端左右内边距",
158
+ "default": 0,
159
+ "info": "单位:px"
160
+ },
161
+ {
162
+ "type": "number",
163
+ "id": "mobile_padding_top",
164
+ "label": "移动端顶部内边距 (px)",
165
+ "default": 0
166
+ },
167
+ {
168
+ "type": "number",
169
+ "id": "mobile_padding_bottom",
170
+ "label": "移动端底部内边距 (px)",
171
+ "default": 0
172
+ },
173
+ {
174
+ "type": "number",
175
+ "id": "mobile_border_radius",
176
+ "label": "移动端圆角 (px)",
177
+ "default": 0
178
+ },
179
+ {
180
+ "type": "header",
181
+ "content": "动画设置"
182
+ },
183
+ {
184
+ "type": "select",
185
+ "id": "child_animation",
186
+ "label": "子元素动画",
187
+ "options": [
188
+ { "value": "none-animation", "label": "无动画" },
189
+ { "value": "fade-in-box", "label": "按序从下往上显示" },
190
+ { "value": "fade-in-from-left", "label": "按序从左进入显示" },
191
+ { "value": "fade-in-from-right", "label": "按序从右进入显示" },
192
+ { "value": "slow-reveal", "label": "跟随页面滚动缓慢显示" }
193
+ ],
194
+ "default": "none-animation"
195
+ },
196
+ {
197
+ "type": "select",
198
+ "id": "self_animation",
199
+ "label": "自身动画",
200
+ "options": [
201
+ { "value": "none-animation", "label": "无动画" },
202
+ { "value": "fade-in-content", "label": "从下往上显示" },
203
+ { "value": "fade-in-from-left-content", "label": "从左往右显示" },
204
+ { "value": "fade-in-from-right-content", "label": "从右往左显示" },
205
+ { "value": "slow-reveal-content", "label": "跟随页面滚动缓慢显示" }
206
+ ],
207
+ "default": "none-animation"
208
+ },
209
+
210
+ ],
211
+ "blocks": [
212
+ {
213
+ "type": "@theme",
214
+ }
215
+ ],
216
+ "presets": [
217
+ {
218
+ "name": "弹性布局",
219
+ },
220
+ {
221
+ "name": "ZZ Flex Layout Block"
222
+ },
223
+ {
224
+ "name": "左右布局图文,手机端上下结构",
225
+ "settings": {
226
+ "pc_direction": "row",
227
+ "pc_gap": 40,
228
+ "pc_justify": "flex-start",
229
+ "pc_align": "center",
230
+ "pc_padding_top": 0,
231
+ "pc_padding_bottom": 0,
232
+ "pc_full_width": true,
233
+ "mobile_direction": "column",
234
+ "mobile_gap": 20,
235
+ "mobile_justify": "flex-start",
236
+ "mobile_align": "center",
237
+ "mobile_padding_x": 0,
238
+ "mobile_padding_top": 0,
239
+ "mobile_padding_bottom": 0,
240
+ },
241
+ "blocks": [
242
+ {
243
+ "type": "zz-responsive-width-image",
244
+ "settings": {
245
+ "desktop_image": "shopify://shop_images/preset_pc_picture_info_pic.png",
246
+ "desktop_width_xl": 698,
247
+ "desktop_width_lg": 600,
248
+ "desktop_border_radius": 16,
249
+ "mobile_image": "shopify://shop_images/preset_mob_picture_info_pic.png",
250
+ "mobile_padding_x": 0,
251
+ "mobile_width": 100,
252
+ "mobile_border_radius": 10,
253
+ "alt": "image loading"
254
+
255
+ }
256
+ },
257
+ {
258
+ "type": "zz-flex-layout-widget",
259
+ "settings": {
260
+ "pc_width": 0,
261
+ "pc_direction": "column",
262
+ "pc_gap": 40,
263
+ "pc_justify": "flex-start",
264
+ "pc_align": "flex-start",
265
+ "mobile_direction": "column",
266
+ "mobile_gap": 20,
267
+ "mobile_justify": "flex-start",
268
+ "mobile_align": "flex-start",
269
+ "child_animation": "fade-in-from-right",
270
+
271
+ },
272
+ "blocks": [
273
+ {
274
+ "type": "zz-title",
275
+ "settings": {
276
+ "pc_title": "<p>title is here</p>",
277
+ "mb_title": "<p>title is here</p>",
278
+ "tag": "h3",
279
+ "text_color": "#000000",
280
+ }
281
+ },
282
+ {
283
+ "type": "zz-content-description-html",
284
+ "settings": {
285
+ "text_color": "#333333",
286
+ "highlight_color": "#000000",
287
+ "pc_content": "<p>normal content is here and <strong> highlight the key features </strong></p>",
288
+ "mobile_content": "<p>normal content is here and <strong> highlight the key features </strong></p>",
289
+
290
+ }
291
+ }
292
+ ]
293
+ }
294
+
295
+ ]
296
+
297
+
298
+ },
299
+ {
300
+ "name": "左右对称卡片布局,手机端上下",
301
+ "settings": {
302
+ "pc_direction": "row",
303
+ "pc_gap": 32,
304
+ "pc_justify": "flex-start",
305
+ "pc_align": "center",
306
+ "pc_full_width": true,
307
+ "mobile_direction": "column",
308
+ "mobile_gap": 20,
309
+ "mobile_justify": "flex-start",
310
+ "mobile_align": "center",
311
+ },
312
+ "blocks": [
313
+ {
314
+ "type": "zz-flex-layout-widget",
315
+ "settings": {
316
+ "pc_direction": "column",
317
+ "pc_gap": 0,
318
+ "pc_justify": "flex-start",
319
+ "pc_align": "flex-start",
320
+ "mobile_direction": "column",
321
+ "mobile_gap": 0,
322
+ "mobile_justify": "flex-start",
323
+ "mobile_align": "flex-start",
324
+ },
325
+ "blocks": [
326
+ {
327
+ "type": "zz-ratio-image",
328
+ "settings": {
329
+ "desktop_image": "shopify://shop_images/preset_pc_middle_pic.png",
330
+ "pc_width": 100,
331
+ "desktop_border_radius": 16,
332
+ "mobile_image": "shopify://shop_images/preset_mobile_middle_pic.png",
333
+ "mobile_width": 100,
334
+ "mobile_border_radius": 10,
335
+ "alt": "image loading",
336
+ "has_link": false,
337
+ "function_type": "link",
338
+ "url": "",
339
+ "links": ""
340
+ },
341
+ },
342
+ {
343
+ "type": "zz-title",
344
+ "name": "标题 h2-h4",
345
+ "settings": {
346
+ "pc_title": "<p>这里是标题</p>",
347
+ "mb_title": "<p>这里是标题</p>",
348
+ "tag": "h4",
349
+ "italic": true,
350
+ "text_color": "#000000",
351
+ "text_gradient": "",
352
+ "pc_align": "left",
353
+ "pc_margin_top": 30,
354
+ "pc_margin_bottom": 20,
355
+ "mobile_align": "left",
356
+ "mobile_margin_top": 20,
357
+ "mobile_margin_bottom": 12,
358
+ },
359
+ },
360
+ {
361
+ "type": "zz-content-description-html",
362
+ "name": "内容描述 html",
363
+ "settings": {
364
+ "text_color": "#333333",
365
+ "pc_content": "Ideal for tight trails or mountain roads. The camera mirrors your movement, reducing the chance of collisions.",
366
+ "pc_text_align": "left",
367
+ "mobile_content": "<p>This is a detailed product description <strong> highlights the key features. </strong></p>",
368
+ "mobile_text_align": "left",
369
+ },
370
+ }
371
+
372
+ ]
373
+ },
374
+ {
375
+ "type": "zz-flex-layout-widget",
376
+ "settings": {
377
+ "pc_direction": "column",
378
+ "pc_gap": 0,
379
+ "pc_justify": "flex-start",
380
+ "pc_align": "flex-start",
381
+ "mobile_direction": "column",
382
+ "mobile_gap": 0,
383
+ "mobile_justify": "flex-start",
384
+ "mobile_align": "flex-start",
385
+ },
386
+ "blocks": [
387
+ {
388
+ "type": "zz-ratio-image",
389
+ "settings": {
390
+ "desktop_image": "shopify://shop_images/preset_pc_middle_pic.png",
391
+ "pc_width": 100,
392
+ "desktop_border_radius": 16,
393
+ "mobile_image": "shopify://shop_images/preset_mobile_middle_pic.png",
394
+ "mobile_width": 100,
395
+ "mobile_border_radius": 10,
396
+ "alt": "image loading",
397
+ "has_link": false,
398
+ "function_type": "link",
399
+ "url": "",
400
+ "links": ""
401
+ },
402
+ },
403
+ {
404
+ "type": "zz-title",
405
+ "name": "标题 h2-h4",
406
+ "settings": {
407
+ "pc_title": "<p>这里是标题</p>",
408
+ "mb_title": "<p>这里是标题</p>",
409
+ "tag": "h4",
410
+ "italic": true,
411
+ "text_color": "#000000",
412
+ "text_gradient": "",
413
+ "pc_align": "left",
414
+ "pc_margin_top": 30,
415
+ "pc_margin_bottom": 20,
416
+ "mobile_align": "left",
417
+ "mobile_margin_top": 20,
418
+ "mobile_margin_bottom": 12,
419
+ },
420
+ },
421
+ {
422
+ "type": "zz-content-description-html",
423
+ "name": "内容描述 html",
424
+ "settings": {
425
+ "text_color": "#333333",
426
+ "pc_content": "Ideal for tight trails or mountain roads. The camera mirrors your movement, reducing the chance of collisions.",
427
+ "pc_text_align": "left",
428
+ "mobile_content": "<p>This is a detailed product description <strong> highlights the key features. </strong></p>",
429
+ "mobile_text_align": "left",
430
+ },
431
+ }
432
+
433
+ ]
434
+ }
435
+
436
+ ]
437
+ },
438
+ {
439
+ "name": "上下结构布局",
440
+ "settings": {
441
+ "background_color": "rgba(0,0,0,0)",
442
+ "pc_direction": "column",
443
+ "pc_justify": "flex-start",
444
+ "pc_align": "center",
445
+ "mobile_direction": "column",
446
+ "mobile_justify": "flex-start",
447
+ "mobile_align": "center",
448
+ },
449
+ "blocks": [
450
+ {
451
+ "type": "zz-title",
452
+ "settings": {
453
+ "pc_title": "<p>上下结构布局</p>",
454
+ "mb_title": "<p>上下结构布局</p>",
455
+ "text_color": "#000000",
456
+ "pc_align": "center",
457
+ "mobile_align": "center",
458
+ },
459
+ },
460
+ {
461
+ "type": "zz-ratio-image",
462
+ "name": "宽度比例图片",
463
+ "settings": {
464
+ "desktop_image": "shopify://shop_images/preset_pc_swiper_video_poster_1.png",
465
+ "pc_width": 100,
466
+ "mobile_image": "shopify://shop_images/preset_mobile_swiper_video_poster_1.png",
467
+ "mobile_width": 100,
468
+ },
469
+ },
470
+ {
471
+ "type": "zz-content-description",
472
+ "settings": {
473
+ "text_color": "#000000",
474
+ "pc_content": "<p>Find new lines with the HOVERAir X1 PRO and PROMAX. Talk about chemistry. Challenge everyone in your crew to a game of “How close can you get?” Good times are guaranteed, and you’ll have the footage to prove it.</p>",
475
+ "pc_text_align": "center",
476
+ "mobile_content": "<p>Find new lines with the HOVERAir X1 PRO and PROMAX. Talk about chemistry. Challenge everyone in your crew to a game of “How close can you get?” Good times are guaranteed, and you’ll have the footage to prove it.</p>",
477
+ "mobile_text_align": "left",
478
+ },
479
+ }
480
+
481
+ ]
482
+ }
483
+ ]
484
+ }
485
+ {% endschema %}
486
+
487
+ <style>
488
+ #shopify-block-{{ block.id }} {
489
+ width: 100%;
490
+ overflow-x: hidden;
491
+ }
492
+
493
+ #shopify-block-{{ block.id }}.flex-layout-block{
494
+ display: flex;
495
+ }
496
+
497
+ #shopify-block-{{ block.id }} .flex-layout-block-container {
498
+ box-sizing: border-box;
499
+ width: 100%;
500
+ display: flex;
501
+ flex-direction: {{ block.settings.mobile_direction }};
502
+ justify-content: {{ block.settings.mobile_justify }};
503
+ align-items: {{ block.settings.mobile_align }};
504
+ gap: {{ block.settings.mobile_gap }}px;
505
+ background-color: {{ block.settings.background_color }};
506
+ padding-top: {{ block.settings.mobile_padding_top }}px;
507
+ padding-bottom: {{ block.settings.mobile_padding_bottom }}px;
508
+ padding-left: {{ block.settings.mobile_padding_x }}px;
509
+ padding-right: {{ block.settings.mobile_padding_x }}px;
510
+ border-radius: {{ block.settings.mobile_border_radius }}px;
511
+ }
512
+
513
+ @media (min-width: 1024px) {
514
+ #shopify-block-{{ block.id }} .flex-layout-block-container {
515
+ flex-direction: {{ block.settings.pc_direction }};
516
+ justify-content: {{ block.settings.pc_justify }};
517
+ align-items: {{ block.settings.pc_align }};
518
+ gap: {{ block.settings.pc_gap }}px;
519
+ padding-top: {{ block.settings.pc_padding_top }}px;
520
+ padding-bottom: {{ block.settings.pc_padding_bottom }}px;
521
+ padding-left: {{ block.settings.pc_padding_x }}px;
522
+ padding-right: {{ block.settings.pc_padding_x }}px;
523
+ border-radius: {{ block.settings.pc_border_radius }}px;
524
+
525
+ {% if block.settings.pc_full_width %}
526
+ width: 100%;
527
+ {% else %}
528
+ width: {{ block.settings.pc_lg_width }}vw;
529
+ margin: 0 auto;
530
+ {% endif %}
531
+ }
532
+ }
533
+
534
+ @media (min-width: 1280px) {
535
+ #shopify-block-{{ block.id }} .flex-layout-block-container {
536
+ {% if block.settings.pc_full_width %}
537
+ width: 100%;
538
+ {% else %}
539
+ width: {{ block.settings.pc_xl_width }}px;
540
+ margin: 0 auto;
541
+ {% endif %}
542
+ }
543
+ }
544
+ </style>
545
+
546
+ <div class="flex-layout-block-container {{ block.settings.self_animation }} {{ block.settings.child_animation }}">
547
+ {% content_for 'blocks' %}
548
+ </div>
549
+