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.
- package/CHANGELOG.md +21 -21
- package/README.md +70 -56
- package/assets/ScrollTrigger.min.js +11 -11
- package/assets/gsap.min.js +11 -11
- package/assets/jquery.js +2 -2
- package/assets/lazy-video.js +2 -2
- package/assets/lazyload.min.js +1 -1
- package/assets/lozad.js +10 -10
- package/assets/site-jump.js +52 -52
- package/assets/site-jumpV2.js +35 -35
- package/assets/swiper-bundle.min.css +12 -12
- package/assets/swiper-bundle.min.js +13 -13
- package/assets/swiper.css +330 -330
- package/assets/zz-components.css +322 -322
- package/assets/zz-components.js +166 -166
- package/assets/zz-fade-in-content.js +169 -169
- package/assets/zz-http-request.js +73 -73
- package/assets/zz-world-video-comments-dialog.js +240 -240
- package/assets/zz-world-video-dialog.js +190 -190
- package/assets/zz-world-video-list.js +317 -317
- package/assets/zz-world-video.js +270 -270
- package/blocks/zz-accessories-item.liquid +188 -188
- package/blocks/zz-accessories-swiper.liquid +223 -223
- package/blocks/zz-button.liquid +216 -216
- package/blocks/zz-content-description-html.liquid +201 -201
- package/blocks/zz-content-description.liquid +209 -209
- package/blocks/zz-flex-layout-bg-block.liquid +524 -524
- package/blocks/zz-flex-layout-block.liquid +549 -549
- package/blocks/zz-flex-layout-widget.liquid +321 -321
- package/blocks/zz-full-screen-swiper.liquid +443 -443
- package/blocks/zz-icon.liquid +46 -46
- package/blocks/zz-mail.liquid +135 -135
- package/blocks/zz-mb-swiper-pc-flex.liquid +273 -273
- package/blocks/zz-price-tag-mini.liquid +106 -106
- package/blocks/zz-price-tag.liquid +41 -41
- package/blocks/zz-ratio-image.liquid +181 -181
- package/blocks/zz-ratio-video.liquid +115 -115
- package/blocks/zz-responsive-width-image.liquid +222 -222
- package/blocks/zz-responsive-width-video.liquid +166 -166
- package/blocks/zz-scroll-animate-bg-text.liquid +268 -268
- package/blocks/zz-scroll-cover.liquid +67 -67
- package/blocks/zz-tag.liquid +50 -50
- package/blocks/zz-text.liquid +227 -227
- package/blocks/zz-title.liquid +287 -287
- package/blocks/zz-video-button.liquid +84 -84
- package/blocks/zz-video-img-item.liquid +203 -203
- package/blocks/zz-video-img-list.liquid +166 -166
- package/blocks/zz-video-swiper-perview-item.liquid +221 -221
- package/blocks/zz-video-swiper-perview.liquid +585 -585
- package/blocks/zz-world-video.liquid +639 -639
- package/component.config.json +7 -7
- package/package.json +1 -1
- package/scripts/postinstall-v1.js +39 -39
- package/scripts/postinstall-v2.js +47 -47
- package/scripts/postinstall-v3.js +51 -51
- package/scripts/publish-npm.js +43 -43
- package/sections/zz-flex-layout-section.liquid +269 -269
- package/sections/zz-navigation-tab-v3.liquid +409 -409
- package/sections/zz-navigation-tab.liquid +411 -411
- package/sections/zz-shopping-card-list.liquid +399 -399
- package/sections/zz-video-collapse-swiper.liquid +522 -522
- package/sections/zz-video-tab-swiper.liquid +748 -748
- package/snippets/zz-button.liquid +70 -70
- package/snippets/zz-content-h3.liquid +15 -15
- package/snippets/zz-content-text.liquid +56 -56
- package/snippets/zz-h2.liquid +31 -31
- package/snippets/zz-h3.liquid +31 -31
- package/snippets/zz-h4.liquid +30 -30
- package/snippets/zz-h5.liquid +39 -39
- package/snippets/zz-h6.liquid +39 -39
- package/snippets/zz-icon-next.liquid +17 -17
- package/snippets/zz-icon-prev.liquid +17 -17
- package/snippets/zz-icon.liquid +74 -74
- package/snippets/zz-img-md.liquid +44 -44
- package/snippets/zz-img.liquid +44 -44
- package/snippets/zz-prev-next-blur-icon.liquid +36 -36
- package/snippets/zz-prev-next-btn.liquid +62 -62
- package/snippets/zz-price-tag.liquid +22 -22
- package/snippets/zz-spoke.liquid +142 -142
- package/snippets/zz-tag.liquid +22 -22
- package/snippets/zz-video-button.liquid +54 -54
- package/snippets/zz-video-md.liquid +117 -117
- package/snippets/zz-video.liquid +117 -117
|
@@ -1,269 +1,269 @@
|
|
|
1
|
-
{% schema %}
|
|
2
|
-
{
|
|
3
|
-
"name": "ZZ Flex Layout Section",
|
|
4
|
-
"tag": "section",
|
|
5
|
-
"settings": [
|
|
6
|
-
{
|
|
7
|
-
"type": "color_background",
|
|
8
|
-
"id": "background_color",
|
|
9
|
-
"label": "背景颜色",
|
|
10
|
-
"default": "transparent"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"type": "select",
|
|
14
|
-
"id": "animation",
|
|
15
|
-
"label": "子元素动画",
|
|
16
|
-
"options": [
|
|
17
|
-
{ "value": "none-animation", "label": "无动画" },
|
|
18
|
-
{ "value": "fade-in-box", "label": "按序从下往上显示" },
|
|
19
|
-
{ "value": "fade-in-from-left", "label": "按序从左进入显示" },
|
|
20
|
-
{ "value": "fade-in-from-right", "label": "按序从右进入显示" },
|
|
21
|
-
{ "value": "slow-reveal", "label": "跟随页面滚动缓慢显示" }
|
|
22
|
-
],
|
|
23
|
-
"default": "none-animation"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"type": "header",
|
|
27
|
-
"content": "💻 PC端布局设置"
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
"type": "select",
|
|
32
|
-
"id": "pc_direction",
|
|
33
|
-
"label": "PC方向 (Direction)",
|
|
34
|
-
"options": [
|
|
35
|
-
{ "value": "row", "label": "横向 (Horizontal)" },
|
|
36
|
-
{ "value": "column", "label": "纵向 (Vertical)" },
|
|
37
|
-
{ "value": "row-reverse", "label": "横向反向 (Horizontal Reverse)" },
|
|
38
|
-
{ "value": "column-reverse", "label": "纵向反向 (Vertical Reverse)" }
|
|
39
|
-
],
|
|
40
|
-
"default": "column"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"type": "number",
|
|
44
|
-
"id": "pc_gap",
|
|
45
|
-
"label": "区块间距 (Gap)",
|
|
46
|
-
"default": 0
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
{
|
|
50
|
-
"type": "select",
|
|
51
|
-
"id": "pc_justify",
|
|
52
|
-
"label": "PC主轴对齐 (Justify Content)",
|
|
53
|
-
"options": [
|
|
54
|
-
{ "value": "flex-start", "label": "起始对齐 (Flex Start)" },
|
|
55
|
-
{ "value": "center", "label": "居中对齐 (Center)" },
|
|
56
|
-
{ "value": "flex-end", "label": "末尾对齐 (Flex End)" },
|
|
57
|
-
{ "value": "space-between", "label": "两端对齐 (Space Between)" },
|
|
58
|
-
{ "value": "space-around", "label": "平均间距 (Space Around)" }
|
|
59
|
-
],
|
|
60
|
-
"default": "flex-start"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "select",
|
|
64
|
-
"id": "pc_align",
|
|
65
|
-
"label": "PC交叉轴对齐 (Align Items)",
|
|
66
|
-
"options": [
|
|
67
|
-
{ "value": "flex-start", "label": "起始对齐 (Flex Start)" },
|
|
68
|
-
{ "value": "center", "label": "居中对齐 (Center)" },
|
|
69
|
-
{ "value": "flex-end", "label": "末尾对齐 (Flex End)" }
|
|
70
|
-
],
|
|
71
|
-
"default": "center"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"type": "number",
|
|
75
|
-
"id": "pc_padding_top",
|
|
76
|
-
"label": "PC端上内边距 (px)",
|
|
77
|
-
"default": 80
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"type": "number",
|
|
81
|
-
"id": "pc_padding_bottom",
|
|
82
|
-
"label": "PC端下内边距 (px)",
|
|
83
|
-
"default": 80
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"type": "checkbox",
|
|
87
|
-
"id": "pc_full_width",
|
|
88
|
-
"label": "是否全屏展示",
|
|
89
|
-
"default": false
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"type": "number",
|
|
93
|
-
"id": "pc_xl_width",
|
|
94
|
-
"label": "XL屏幕内容区域宽度 (px)",
|
|
95
|
-
"default": 1200,
|
|
96
|
-
"info": "非全屏展示时有效",
|
|
97
|
-
"visible_if": "{{ section.settings.pc_full_width == false }}"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"type": "number",
|
|
101
|
-
"id": "pc_lg_width",
|
|
102
|
-
"label": "LG屏幕内容区域宽度 (vw)",
|
|
103
|
-
"default": 90,
|
|
104
|
-
"info": "非全屏展示时有效",
|
|
105
|
-
"visible_if": "{{ section.settings.pc_full_width == false }}"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"type": "header",
|
|
109
|
-
"content": "📱 移动端布局设置"
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
{
|
|
113
|
-
"type": "select",
|
|
114
|
-
"id": "mobile_direction",
|
|
115
|
-
"label": "移动方向 (Direction)",
|
|
116
|
-
"options": [
|
|
117
|
-
{ "value": "row", "label": "横向 (Horizontal)" },
|
|
118
|
-
{ "value": "column", "label": "纵向 (Vertical)" },
|
|
119
|
-
{ "value": "row-reverse", "label": "横向反向 (Horizontal Reverse)" },
|
|
120
|
-
{ "value": "column-reverse", "label": "纵向反向 (Vertical Reverse)" }
|
|
121
|
-
],
|
|
122
|
-
"default": "column"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"type": "number",
|
|
126
|
-
"id": "mobile_gap",
|
|
127
|
-
"label": "移动区块间距 (Gap)",
|
|
128
|
-
"default": 0
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"type": "select",
|
|
132
|
-
"id": "mobile_justify",
|
|
133
|
-
"label": "移动主轴对齐 (Justify Content)",
|
|
134
|
-
"options": [
|
|
135
|
-
{ "value": "flex-start", "label": "起始对齐 (Flex Start)" },
|
|
136
|
-
{ "value": "center", "label": "居中对齐 (Center)" },
|
|
137
|
-
{ "value": "flex-end", "label": "末尾对齐 (Flex End)" },
|
|
138
|
-
{ "value": "space-between", "label": "两端对齐 (Space Between)" },
|
|
139
|
-
{ "value": "space-around", "label": "平均间距 (Space Around)" }
|
|
140
|
-
],
|
|
141
|
-
"default": "flex-start"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"type": "select",
|
|
145
|
-
"id": "mobile_align",
|
|
146
|
-
"label": "移动交叉轴对齐 (Align Items)",
|
|
147
|
-
"options": [
|
|
148
|
-
{ "value": "flex-start", "label": "起始对齐 (Flex Start)" },
|
|
149
|
-
{ "value": "center", "label": "居中对齐 (Center)" },
|
|
150
|
-
{ "value": "flex-end", "label": "末尾对齐 (Flex End)" }
|
|
151
|
-
],
|
|
152
|
-
"default": "center"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"type": "number",
|
|
156
|
-
"id": "mobile_padding_top",
|
|
157
|
-
"label": "移动端上内边距 (px)",
|
|
158
|
-
"default": 40
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"type": "number",
|
|
162
|
-
"id": "mobile_padding_bottom",
|
|
163
|
-
"label": "移动端下内边距 (px)",
|
|
164
|
-
"default": 40
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"type": "number",
|
|
168
|
-
"id": "mobile_padding_x",
|
|
169
|
-
"label": "移动端左右内边距",
|
|
170
|
-
"default": 20,
|
|
171
|
-
"info": "单位:px"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"type": "number",
|
|
175
|
-
"id": "top_offset",
|
|
176
|
-
"label": "向上偏移量",
|
|
177
|
-
"default": 0,
|
|
178
|
-
"info": "单位:px,正数,首屏时候会用到"
|
|
179
|
-
},
|
|
180
|
-
|
|
181
|
-
{
|
|
182
|
-
"type": "text",
|
|
183
|
-
"id": "module_name",
|
|
184
|
-
"label": "模块id",
|
|
185
|
-
"info": "用于定位到本模块"
|
|
186
|
-
},
|
|
187
|
-
],
|
|
188
|
-
"blocks": [
|
|
189
|
-
{
|
|
190
|
-
"type": "@theme",
|
|
191
|
-
}
|
|
192
|
-
],
|
|
193
|
-
"presets": [
|
|
194
|
-
{
|
|
195
|
-
"name": "ZZ Flex Layout Section"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"name": "弹性布局容器",
|
|
199
|
-
"blocks": [
|
|
200
|
-
{
|
|
201
|
-
"type": "zz-title",
|
|
202
|
-
"settings": {
|
|
203
|
-
"pc_title": "<p>Block容器,添加Blcok拼搭组件</p>",
|
|
204
|
-
"mb_title": "<p>Block容器,添加Blcok拼搭组件</p>",
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
]
|
|
209
|
-
}
|
|
210
|
-
]
|
|
211
|
-
}
|
|
212
|
-
{% endschema %}
|
|
213
|
-
|
|
214
|
-
<style>
|
|
215
|
-
#shopify-section-{{ section.id }} {
|
|
216
|
-
background-color: {{ section.settings.background_color }};
|
|
217
|
-
{% if section.settings.top_offset != 0 %}
|
|
218
|
-
margin-top: -{{ section.settings.top_offset }}px;
|
|
219
|
-
{% endif %}
|
|
220
|
-
{% comment %} {% if section.settings.is_overflow_hidden %}
|
|
221
|
-
overflow-x: hidden;
|
|
222
|
-
{% endif %} {% endcomment %}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
#shopify-section-{{ section.id }} .responsive-section-layout {
|
|
226
|
-
display: flex;
|
|
227
|
-
flex-direction: {{ section.settings.mobile_direction }};
|
|
228
|
-
justify-content: {{ section.settings.mobile_justify }};
|
|
229
|
-
align-items: {{ section.settings.mobile_align }};
|
|
230
|
-
gap: {{ section.settings.mobile_gap }}px;
|
|
231
|
-
padding-top: {{ section.settings.mobile_padding_top }}px;
|
|
232
|
-
padding-bottom: {{ section.settings.mobile_padding_bottom }}px;
|
|
233
|
-
padding-left: {{ section.settings.mobile_padding_x }}px;
|
|
234
|
-
padding-right: {{ section.settings.mobile_padding_x }}px;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
@media (min-width: 1024px) {
|
|
238
|
-
#shopify-section-{{ section.id }} .responsive-section-layout {
|
|
239
|
-
flex-direction: {{ section.settings.pc_direction }};
|
|
240
|
-
justify-content: {{ section.settings.pc_justify }};
|
|
241
|
-
align-items: {{ section.settings.pc_align }};
|
|
242
|
-
gap: {{ section.settings.pc_gap }}px;
|
|
243
|
-
padding-top: {{ section.settings.pc_padding_top }}px;
|
|
244
|
-
padding-bottom: {{ section.settings.pc_padding_bottom }}px;
|
|
245
|
-
padding-left: 0px;
|
|
246
|
-
padding-right: 0px;
|
|
247
|
-
{% if section.settings.pc_full_width %}
|
|
248
|
-
width: 100%;
|
|
249
|
-
{% else %}
|
|
250
|
-
width: {{ section.settings.pc_lg_width }}vw;
|
|
251
|
-
margin: 0 auto;
|
|
252
|
-
{% endif %}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
@media (min-width: 1280px) {
|
|
257
|
-
#shopify-section-{{ section.id }} .responsive-section-layout {
|
|
258
|
-
{% unless section.settings.pc_full_width %}
|
|
259
|
-
width: {{ section.settings.pc_xl_width }}px;
|
|
260
|
-
{% endunless %}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
</style>
|
|
264
|
-
|
|
265
|
-
<div
|
|
266
|
-
class="responsive-section-layout {{ section.settings.animation }}"
|
|
267
|
-
{% if section.settings.module_name != blank %}data-zz-module-name="{{ section.settings.module_name }}"{% endif %}>
|
|
268
|
-
{% content_for 'blocks' %}
|
|
269
|
-
</div>
|
|
1
|
+
{% schema %}
|
|
2
|
+
{
|
|
3
|
+
"name": "ZZ Flex Layout Section",
|
|
4
|
+
"tag": "section",
|
|
5
|
+
"settings": [
|
|
6
|
+
{
|
|
7
|
+
"type": "color_background",
|
|
8
|
+
"id": "background_color",
|
|
9
|
+
"label": "背景颜色",
|
|
10
|
+
"default": "transparent"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "select",
|
|
14
|
+
"id": "animation",
|
|
15
|
+
"label": "子元素动画",
|
|
16
|
+
"options": [
|
|
17
|
+
{ "value": "none-animation", "label": "无动画" },
|
|
18
|
+
{ "value": "fade-in-box", "label": "按序从下往上显示" },
|
|
19
|
+
{ "value": "fade-in-from-left", "label": "按序从左进入显示" },
|
|
20
|
+
{ "value": "fade-in-from-right", "label": "按序从右进入显示" },
|
|
21
|
+
{ "value": "slow-reveal", "label": "跟随页面滚动缓慢显示" }
|
|
22
|
+
],
|
|
23
|
+
"default": "none-animation"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "header",
|
|
27
|
+
"content": "💻 PC端布局设置"
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
{
|
|
31
|
+
"type": "select",
|
|
32
|
+
"id": "pc_direction",
|
|
33
|
+
"label": "PC方向 (Direction)",
|
|
34
|
+
"options": [
|
|
35
|
+
{ "value": "row", "label": "横向 (Horizontal)" },
|
|
36
|
+
{ "value": "column", "label": "纵向 (Vertical)" },
|
|
37
|
+
{ "value": "row-reverse", "label": "横向反向 (Horizontal Reverse)" },
|
|
38
|
+
{ "value": "column-reverse", "label": "纵向反向 (Vertical Reverse)" }
|
|
39
|
+
],
|
|
40
|
+
"default": "column"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "number",
|
|
44
|
+
"id": "pc_gap",
|
|
45
|
+
"label": "区块间距 (Gap)",
|
|
46
|
+
"default": 0
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
{
|
|
50
|
+
"type": "select",
|
|
51
|
+
"id": "pc_justify",
|
|
52
|
+
"label": "PC主轴对齐 (Justify Content)",
|
|
53
|
+
"options": [
|
|
54
|
+
{ "value": "flex-start", "label": "起始对齐 (Flex Start)" },
|
|
55
|
+
{ "value": "center", "label": "居中对齐 (Center)" },
|
|
56
|
+
{ "value": "flex-end", "label": "末尾对齐 (Flex End)" },
|
|
57
|
+
{ "value": "space-between", "label": "两端对齐 (Space Between)" },
|
|
58
|
+
{ "value": "space-around", "label": "平均间距 (Space Around)" }
|
|
59
|
+
],
|
|
60
|
+
"default": "flex-start"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "select",
|
|
64
|
+
"id": "pc_align",
|
|
65
|
+
"label": "PC交叉轴对齐 (Align Items)",
|
|
66
|
+
"options": [
|
|
67
|
+
{ "value": "flex-start", "label": "起始对齐 (Flex Start)" },
|
|
68
|
+
{ "value": "center", "label": "居中对齐 (Center)" },
|
|
69
|
+
{ "value": "flex-end", "label": "末尾对齐 (Flex End)" }
|
|
70
|
+
],
|
|
71
|
+
"default": "center"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "number",
|
|
75
|
+
"id": "pc_padding_top",
|
|
76
|
+
"label": "PC端上内边距 (px)",
|
|
77
|
+
"default": 80
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "number",
|
|
81
|
+
"id": "pc_padding_bottom",
|
|
82
|
+
"label": "PC端下内边距 (px)",
|
|
83
|
+
"default": 80
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "checkbox",
|
|
87
|
+
"id": "pc_full_width",
|
|
88
|
+
"label": "是否全屏展示",
|
|
89
|
+
"default": false
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "number",
|
|
93
|
+
"id": "pc_xl_width",
|
|
94
|
+
"label": "XL屏幕内容区域宽度 (px)",
|
|
95
|
+
"default": 1200,
|
|
96
|
+
"info": "非全屏展示时有效",
|
|
97
|
+
"visible_if": "{{ section.settings.pc_full_width == false }}"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "number",
|
|
101
|
+
"id": "pc_lg_width",
|
|
102
|
+
"label": "LG屏幕内容区域宽度 (vw)",
|
|
103
|
+
"default": 90,
|
|
104
|
+
"info": "非全屏展示时有效",
|
|
105
|
+
"visible_if": "{{ section.settings.pc_full_width == false }}"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"type": "header",
|
|
109
|
+
"content": "📱 移动端布局设置"
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
{
|
|
113
|
+
"type": "select",
|
|
114
|
+
"id": "mobile_direction",
|
|
115
|
+
"label": "移动方向 (Direction)",
|
|
116
|
+
"options": [
|
|
117
|
+
{ "value": "row", "label": "横向 (Horizontal)" },
|
|
118
|
+
{ "value": "column", "label": "纵向 (Vertical)" },
|
|
119
|
+
{ "value": "row-reverse", "label": "横向反向 (Horizontal Reverse)" },
|
|
120
|
+
{ "value": "column-reverse", "label": "纵向反向 (Vertical Reverse)" }
|
|
121
|
+
],
|
|
122
|
+
"default": "column"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"type": "number",
|
|
126
|
+
"id": "mobile_gap",
|
|
127
|
+
"label": "移动区块间距 (Gap)",
|
|
128
|
+
"default": 0
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "select",
|
|
132
|
+
"id": "mobile_justify",
|
|
133
|
+
"label": "移动主轴对齐 (Justify Content)",
|
|
134
|
+
"options": [
|
|
135
|
+
{ "value": "flex-start", "label": "起始对齐 (Flex Start)" },
|
|
136
|
+
{ "value": "center", "label": "居中对齐 (Center)" },
|
|
137
|
+
{ "value": "flex-end", "label": "末尾对齐 (Flex End)" },
|
|
138
|
+
{ "value": "space-between", "label": "两端对齐 (Space Between)" },
|
|
139
|
+
{ "value": "space-around", "label": "平均间距 (Space Around)" }
|
|
140
|
+
],
|
|
141
|
+
"default": "flex-start"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "select",
|
|
145
|
+
"id": "mobile_align",
|
|
146
|
+
"label": "移动交叉轴对齐 (Align Items)",
|
|
147
|
+
"options": [
|
|
148
|
+
{ "value": "flex-start", "label": "起始对齐 (Flex Start)" },
|
|
149
|
+
{ "value": "center", "label": "居中对齐 (Center)" },
|
|
150
|
+
{ "value": "flex-end", "label": "末尾对齐 (Flex End)" }
|
|
151
|
+
],
|
|
152
|
+
"default": "center"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"type": "number",
|
|
156
|
+
"id": "mobile_padding_top",
|
|
157
|
+
"label": "移动端上内边距 (px)",
|
|
158
|
+
"default": 40
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"type": "number",
|
|
162
|
+
"id": "mobile_padding_bottom",
|
|
163
|
+
"label": "移动端下内边距 (px)",
|
|
164
|
+
"default": 40
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "number",
|
|
168
|
+
"id": "mobile_padding_x",
|
|
169
|
+
"label": "移动端左右内边距",
|
|
170
|
+
"default": 20,
|
|
171
|
+
"info": "单位:px"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"type": "number",
|
|
175
|
+
"id": "top_offset",
|
|
176
|
+
"label": "向上偏移量",
|
|
177
|
+
"default": 0,
|
|
178
|
+
"info": "单位:px,正数,首屏时候会用到"
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
{
|
|
182
|
+
"type": "text",
|
|
183
|
+
"id": "module_name",
|
|
184
|
+
"label": "模块id",
|
|
185
|
+
"info": "用于定位到本模块"
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
"blocks": [
|
|
189
|
+
{
|
|
190
|
+
"type": "@theme",
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"presets": [
|
|
194
|
+
{
|
|
195
|
+
"name": "ZZ Flex Layout Section"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "弹性布局容器",
|
|
199
|
+
"blocks": [
|
|
200
|
+
{
|
|
201
|
+
"type": "zz-title",
|
|
202
|
+
"settings": {
|
|
203
|
+
"pc_title": "<p>Block容器,添加Blcok拼搭组件</p>",
|
|
204
|
+
"mb_title": "<p>Block容器,添加Blcok拼搭组件</p>",
|
|
205
|
+
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
{% endschema %}
|
|
213
|
+
|
|
214
|
+
<style>
|
|
215
|
+
#shopify-section-{{ section.id }} {
|
|
216
|
+
background-color: {{ section.settings.background_color }};
|
|
217
|
+
{% if section.settings.top_offset != 0 %}
|
|
218
|
+
margin-top: -{{ section.settings.top_offset }}px;
|
|
219
|
+
{% endif %}
|
|
220
|
+
{% comment %} {% if section.settings.is_overflow_hidden %}
|
|
221
|
+
overflow-x: hidden;
|
|
222
|
+
{% endif %} {% endcomment %}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
#shopify-section-{{ section.id }} .responsive-section-layout {
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-direction: {{ section.settings.mobile_direction }};
|
|
228
|
+
justify-content: {{ section.settings.mobile_justify }};
|
|
229
|
+
align-items: {{ section.settings.mobile_align }};
|
|
230
|
+
gap: {{ section.settings.mobile_gap }}px;
|
|
231
|
+
padding-top: {{ section.settings.mobile_padding_top }}px;
|
|
232
|
+
padding-bottom: {{ section.settings.mobile_padding_bottom }}px;
|
|
233
|
+
padding-left: {{ section.settings.mobile_padding_x }}px;
|
|
234
|
+
padding-right: {{ section.settings.mobile_padding_x }}px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@media (min-width: 1024px) {
|
|
238
|
+
#shopify-section-{{ section.id }} .responsive-section-layout {
|
|
239
|
+
flex-direction: {{ section.settings.pc_direction }};
|
|
240
|
+
justify-content: {{ section.settings.pc_justify }};
|
|
241
|
+
align-items: {{ section.settings.pc_align }};
|
|
242
|
+
gap: {{ section.settings.pc_gap }}px;
|
|
243
|
+
padding-top: {{ section.settings.pc_padding_top }}px;
|
|
244
|
+
padding-bottom: {{ section.settings.pc_padding_bottom }}px;
|
|
245
|
+
padding-left: 0px;
|
|
246
|
+
padding-right: 0px;
|
|
247
|
+
{% if section.settings.pc_full_width %}
|
|
248
|
+
width: 100%;
|
|
249
|
+
{% else %}
|
|
250
|
+
width: {{ section.settings.pc_lg_width }}vw;
|
|
251
|
+
margin: 0 auto;
|
|
252
|
+
{% endif %}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@media (min-width: 1280px) {
|
|
257
|
+
#shopify-section-{{ section.id }} .responsive-section-layout {
|
|
258
|
+
{% unless section.settings.pc_full_width %}
|
|
259
|
+
width: {{ section.settings.pc_xl_width }}px;
|
|
260
|
+
{% endunless %}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
</style>
|
|
264
|
+
|
|
265
|
+
<div
|
|
266
|
+
class="responsive-section-layout {{ section.settings.animation }}"
|
|
267
|
+
{% if section.settings.module_name != blank %}data-zz-module-name="{{ section.settings.module_name }}"{% endif %}>
|
|
268
|
+
{% content_for 'blocks' %}
|
|
269
|
+
</div>
|