zz-shopify-components 0.25.1-beta.6 → 0.25.1-beta.8
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/assets/zz-modal.js
CHANGED
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
border-radius: var(--zz-modal-radius, 12px);
|
|
70
70
|
box-shadow: var(--zz-modal-shadow, 0 20px 60px rgba(0,0,0,0.2));
|
|
71
71
|
width: var(--zz-modal-width, min(720px, 92vw));
|
|
72
|
-
max-height: var(--zz-modal-max-height,
|
|
72
|
+
max-height: var(--zz-modal-max-height, 100vh);
|
|
73
73
|
display: flex;
|
|
74
74
|
flex-direction: column;
|
|
75
75
|
overflow: hidden;
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
.panel-inner {
|
|
81
81
|
transform-origin: center center;
|
|
82
82
|
transform: translateY(8px) scale(0.98);
|
|
83
|
+
max-height: var(--zz-modal-max-height, 100vh);
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
|
|
@@ -1,47 +1,71 @@
|
|
|
1
1
|
{% schema %}
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
{
|
|
3
|
+
"name": "Compare Tab Item",
|
|
4
|
+
"settings": [
|
|
5
|
+
{
|
|
6
|
+
"type": "text",
|
|
7
|
+
"id": "title",
|
|
8
|
+
"label": "Tab标题"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"type": "image_picker",
|
|
12
|
+
"id": "image",
|
|
13
|
+
"label": "图片"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "checkbox",
|
|
17
|
+
"id": "default",
|
|
18
|
+
"label": "默认选中",
|
|
19
|
+
"default": false
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"presets": [
|
|
23
|
+
{
|
|
24
|
+
"name": "Compare Tab Item",
|
|
25
|
+
"settings": {}
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
24
29
|
{% endschema %}
|
|
25
30
|
<style>
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
#shopify-block-{{ block.id }} {
|
|
32
|
+
display: contents;
|
|
33
|
+
}
|
|
34
|
+
#shopify-block-{{ block.id }} .tw-daisy-tab {
|
|
35
|
+
padding: 12px 28px;
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
line-height: 1.25;
|
|
38
|
+
background: #F5F5F6;
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
color: #00000080;
|
|
42
|
+
--tab-padding: 1.25rem;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
#shopify-block-{{ block.id }} input.tw-daisy-tab:checked {
|
|
46
|
+
border-color: #000;
|
|
47
|
+
color: #000;
|
|
28
48
|
}
|
|
29
|
-
#shopify-block-{{ block.id }} .tw-daisy-tab {
|
|
30
|
-
padding: 12px 28px;
|
|
31
|
-
font-size: 14px;
|
|
32
|
-
line-height: 1.25;
|
|
33
|
-
background: #F5F5F6;
|
|
34
|
-
--tab-padding: 1.25rem;
|
|
35
|
-
}
|
|
36
49
|
</style>
|
|
37
50
|
|
|
38
51
|
<input
|
|
39
|
-
type=
|
|
40
|
-
name=
|
|
41
|
-
role=
|
|
42
|
-
class=
|
|
43
|
-
aria-label=
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
52
|
+
type='radio'
|
|
53
|
+
name='my_tabs_1'
|
|
54
|
+
role='tab'
|
|
55
|
+
class='tw-daisy-tab'
|
|
56
|
+
aria-label='{{ block.settings.title }}'
|
|
57
|
+
{% if block.settings.default %}
|
|
58
|
+
checked='checked'
|
|
59
|
+
{% endif %}
|
|
60
|
+
>
|
|
61
|
+
|
|
62
|
+
<div
|
|
63
|
+
role='tabpanel'
|
|
64
|
+
class='tw-daisy-tab-content tw-absolute tw-bottom-0 tw-top-[46px] tw-w-full tw-overflow-y-auto '
|
|
65
|
+
>
|
|
66
|
+
<img
|
|
67
|
+
src='{{ block.settings.image | image_url: width: 2000 }}'
|
|
68
|
+
alt='{{ block.settings.title }}'
|
|
69
|
+
class=' tw-w-full '
|
|
70
|
+
>
|
|
71
|
+
</div>
|
|
@@ -1,39 +1,50 @@
|
|
|
1
1
|
{% schema %}
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
2
|
+
{
|
|
3
|
+
"name": "Bundle Compare",
|
|
4
|
+
"class": "zz-bundle-compare",
|
|
5
|
+
"settings": [
|
|
6
|
+
{
|
|
7
|
+
"type": "image_picker",
|
|
8
|
+
"id": "pc_image",
|
|
9
|
+
"label": "PC端图片"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"blocks": [
|
|
13
|
+
{
|
|
14
|
+
"type": "zz-bundle-compare-item"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"presets": [
|
|
18
|
+
{
|
|
19
|
+
"name": "Bundle Compare",
|
|
20
|
+
"settings": {}
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
25
24
|
{% endschema %}
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
<!-- PC端 -->
|
|
27
|
+
<div class=' max-lg:tw-hidden'>
|
|
28
|
+
{{
|
|
29
|
+
block.settings.pc_image
|
|
30
|
+
| image_url: width: 4000
|
|
31
|
+
| image_tag: sizes: '100vw', widths: '4000, 5000', alt: 'Bundle Compare'
|
|
32
|
+
}}
|
|
30
33
|
</div>
|
|
31
|
-
</div>
|
|
32
|
-
|
|
33
34
|
|
|
35
|
+
<!-- 移动端 -->
|
|
36
|
+
<div class=' tw-w-full tw-overflow-hidden tw-h-[77vh] tw-relative lg:tw-hidden'>
|
|
37
|
+
<div
|
|
38
|
+
role='tablist'
|
|
39
|
+
class='tw-daisy-tabs tw-w-full tw-overflow-x-auto tw-daisy-tabs-bordered'
|
|
40
|
+
>
|
|
41
|
+
{% content_for 'blocks' %}
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
34
44
|
|
|
35
45
|
<style>
|
|
36
|
-
|
|
46
|
+
|
|
47
|
+
#shopify-block-{{ block.id }} .tw-daisy-tabs-bordered .tw-daisy-tab {
|
|
37
48
|
border-color: var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));
|
|
38
49
|
--tw-border-opacity: 0.2;
|
|
39
50
|
border-style: solid;
|
|
@@ -48,6 +59,4 @@
|
|
|
48
59
|
#shopify-block-{{ block.id }} .tw-daisy-tabs.tw-overflow-x-auto::-webkit-scrollbar {
|
|
49
60
|
display: none; /* Chrome、Safari */
|
|
50
61
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</style>
|
|
62
|
+
</style>
|