@fonixtree/magic-design 0.0.117 → 0.0.120
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/es/composite-comp/bol/components/Banner/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/Banner/mobile/index.js +7 -8
- package/es/composite-comp/bol/components/Banner/mobile/index.less +48 -71
- package/es/composite-comp/bol/components/Banner/pc/index.js +7 -8
- package/es/composite-comp/bol/components/Banner/pc/index.less +2 -2
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +76 -92
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +232 -291
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +22 -26
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +37 -44
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +29 -36
- package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/es/composite-comp/bol/components/Wallet/pc/index.js +7 -3
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -26
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +7 -8
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +20 -34
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +40 -44
- package/es/meta-comp/components/Image/index.less +1 -1
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +7 -8
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +48 -71
- package/lib/composite-comp/bol/components/Banner/pc/index.js +7 -8
- package/lib/composite-comp/bol/components/Banner/pc/index.less +2 -2
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +76 -92
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +232 -291
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +22 -26
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +37 -44
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +29 -36
- package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +7 -3
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -26
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +7 -8
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +20 -34
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +40 -44
- package/lib/meta-comp/components/Image/index.less +1 -1
- package/package.json +2 -1
|
@@ -116,10 +116,9 @@ function (_super) {
|
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
_this.getItemStyle = function (item) {
|
|
119
|
-
|
|
119
|
+
// const { data } = this.props;
|
|
120
120
|
return {
|
|
121
|
-
justifyContent: _AlignSelector.alignItemMap[item.customize.layout]
|
|
122
|
-
height: data.setting.mobileHeight
|
|
121
|
+
justifyContent: _AlignSelector.alignItemMap[item.customize.layout]
|
|
123
122
|
};
|
|
124
123
|
};
|
|
125
124
|
|
|
@@ -190,15 +189,15 @@ function (_super) {
|
|
|
190
189
|
onMouseEnter: _this.mouseEnterWrap,
|
|
191
190
|
onMouseLeave: _this.mouseLeaveWrap,
|
|
192
191
|
style: _this.getItemStyle(item)
|
|
193
|
-
},
|
|
192
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
194
193
|
data: item.image,
|
|
195
194
|
hoverState: hoverState && carouseIndex === index,
|
|
196
195
|
isBackground: true,
|
|
197
196
|
style: {
|
|
198
|
-
position: 'absolute',
|
|
199
|
-
ZIndex: 1,
|
|
200
|
-
inset: '0px',
|
|
201
|
-
|
|
197
|
+
// position: 'absolute',
|
|
198
|
+
// ZIndex: 1,
|
|
199
|
+
// inset: '0px',
|
|
200
|
+
width: '100%'
|
|
202
201
|
}
|
|
203
202
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
204
203
|
className: "carouseContent",
|
|
@@ -1,73 +1,50 @@
|
|
|
1
1
|
.m-banner-mobile {
|
|
2
2
|
position: relative;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
position: absolute;
|
|
52
|
-
width: 100%;
|
|
53
|
-
bottom: 10px;
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
|
|
58
|
-
.ban {
|
|
59
|
-
font-size: 16px;
|
|
60
|
-
width: 1.5em;
|
|
61
|
-
height: 0.3em;
|
|
62
|
-
background: #FFF;
|
|
63
|
-
cursor: inherit;
|
|
64
|
-
margin-right: 0.3em;
|
|
65
|
-
transition: all .5s;
|
|
66
|
-
|
|
67
|
-
&.active {
|
|
68
|
-
width: 1.5em;
|
|
69
|
-
opacity: 1;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
3
|
+
}
|
|
4
|
+
.m-banner-mobile .carouselItem {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: flex;
|
|
7
|
+
}
|
|
8
|
+
.m-banner-mobile .carouselItem .carouseContent {
|
|
9
|
+
padding: 10.667vw 3.733vw 0;
|
|
10
|
+
position: absolute;
|
|
11
|
+
z-index: 2;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
margin-bottom: auto;
|
|
15
|
+
}
|
|
16
|
+
.m-banner-mobile .carouselItem .title {
|
|
17
|
+
margin-bottom: 1.067vw;
|
|
18
|
+
}
|
|
19
|
+
.m-banner-mobile .carouselItem .sub-title {
|
|
20
|
+
margin-bottom: 2.667vw;
|
|
21
|
+
}
|
|
22
|
+
.m-banner-mobile .carouselItem .btn-wrap {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: flex-start;
|
|
26
|
+
}
|
|
27
|
+
.m-banner-mobile .carouselItem .btn-wrap .btn {
|
|
28
|
+
margin-right: 1.6vw;
|
|
29
|
+
}
|
|
30
|
+
.m-banner-mobile .swiper-ban {
|
|
31
|
+
position: absolute;
|
|
32
|
+
width: 100%;
|
|
33
|
+
bottom: 1.333vw;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
}
|
|
38
|
+
.m-banner-mobile .swiper-ban .ban {
|
|
39
|
+
font-size: 2.133vw;
|
|
40
|
+
width: 1.5em;
|
|
41
|
+
height: 0.3em;
|
|
42
|
+
background: #FFF;
|
|
43
|
+
cursor: inherit;
|
|
44
|
+
margin-right: 0.3em;
|
|
45
|
+
transition: all 0.5s;
|
|
46
|
+
}
|
|
47
|
+
.m-banner-mobile .swiper-ban .ban.active {
|
|
48
|
+
width: 1.5em;
|
|
49
|
+
opacity: 1;
|
|
50
|
+
}
|
|
@@ -160,10 +160,9 @@ function (_super) {
|
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
_this.getItemStyle = function (item) {
|
|
163
|
-
|
|
163
|
+
// const { data } = this.props;
|
|
164
164
|
return {
|
|
165
|
-
justifyContent: _AlignSelector.alignItemMap[item.customize.layout]
|
|
166
|
-
height: data.setting.pcHeight
|
|
165
|
+
justifyContent: _AlignSelector.alignItemMap[item.customize.layout]
|
|
167
166
|
};
|
|
168
167
|
};
|
|
169
168
|
|
|
@@ -235,15 +234,15 @@ function (_super) {
|
|
|
235
234
|
onMouseEnter: _this.mouseEnterWrap,
|
|
236
235
|
onMouseLeave: _this.mouseLeaveWrap,
|
|
237
236
|
style: _this.getItemStyle(item)
|
|
238
|
-
},
|
|
237
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
239
238
|
data: item.image,
|
|
240
239
|
hoverState: hoverState && carouseIndex === index,
|
|
241
240
|
isBackground: true,
|
|
242
241
|
style: {
|
|
243
|
-
position: 'absolute',
|
|
244
|
-
zIndex: 1,
|
|
245
|
-
inset: '0px',
|
|
246
|
-
|
|
242
|
+
// position: 'absolute',
|
|
243
|
+
// zIndex: 1,
|
|
244
|
+
// inset: '0px',
|
|
245
|
+
width: '100%'
|
|
247
246
|
}
|
|
248
247
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
249
248
|
className: "carouseContent",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.carouselItem {
|
|
45
|
-
height: 360px;
|
|
45
|
+
// height: 360px;
|
|
46
46
|
display: flex;
|
|
47
47
|
position: relative;
|
|
48
48
|
|
|
49
49
|
.carouseContent {
|
|
50
50
|
padding: 100px 80px 0;
|
|
51
|
-
position:
|
|
51
|
+
position: absolute;
|
|
52
52
|
z-index: 2;
|
|
53
53
|
display: flex;
|
|
54
54
|
flex-direction: column;
|
|
@@ -1,95 +1,79 @@
|
|
|
1
1
|
.m-carousel-mobile {
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
width: 1em;
|
|
81
|
-
height: 1em;
|
|
82
|
-
border-radius: 50%;
|
|
83
|
-
background: #FFF;
|
|
84
|
-
cursor: inherit;
|
|
85
|
-
margin-right: 1em;
|
|
86
|
-
transition: all .5s;
|
|
87
|
-
|
|
88
|
-
&.active {
|
|
89
|
-
width: 2em;
|
|
90
|
-
border-radius: 100px;
|
|
91
|
-
opacity: 1;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
4
|
+
}
|
|
5
|
+
.m-carousel-mobile .content {
|
|
6
|
+
display: flex;
|
|
7
|
+
margin: 0 auto;
|
|
8
|
+
}
|
|
9
|
+
.m-carousel-mobile .slider-wrap {
|
|
10
|
+
width: 100%;
|
|
11
|
+
margin: 0 auto;
|
|
12
|
+
line-height: 1;
|
|
13
|
+
}
|
|
14
|
+
.m-carousel-mobile .slider-wrap .slick-list {
|
|
15
|
+
padding-top: 13.333vw;
|
|
16
|
+
margin-top: -13.333vw;
|
|
17
|
+
padding-bottom: 13.333vw;
|
|
18
|
+
margin-bottom: -13.333vw;
|
|
19
|
+
margin-left: -1.467vw;
|
|
20
|
+
margin-right: -1.467vw;
|
|
21
|
+
}
|
|
22
|
+
.m-carousel-mobile .slider-wrap .slick-list .slick-track {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 1.6vw;
|
|
26
|
+
}
|
|
27
|
+
.m-carousel-mobile .slider-wrap .img-wrap .img {
|
|
28
|
+
width: fit-content;
|
|
29
|
+
height: fit-content;
|
|
30
|
+
display: block;
|
|
31
|
+
margin: 0 auto;
|
|
32
|
+
}
|
|
33
|
+
.m-carousel-mobile .slider-wrap .img-wrap .title {
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
margin-top: 1.6vw;
|
|
37
|
+
}
|
|
38
|
+
.m-carousel-mobile .slider-wrap .img-wrap .text {
|
|
39
|
+
display: flex;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
margin-top: 0.267vw;
|
|
42
|
+
}
|
|
43
|
+
.m-carousel-mobile .slider-wrap .img-wrap .tags {
|
|
44
|
+
margin-top: 1.067vw;
|
|
45
|
+
margin-bottom: 1.6vw;
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: row;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
}
|
|
51
|
+
.m-carousel-mobile .slider-wrap .img-wrap .tags > div {
|
|
52
|
+
margin-right: 1.067vw;
|
|
53
|
+
}
|
|
54
|
+
.m-carousel-mobile .slider-wrap .img-wrap .tags > div:last-child {
|
|
55
|
+
margin-right: 0;
|
|
56
|
+
}
|
|
57
|
+
.m-carousel-mobile .swiper-ban {
|
|
58
|
+
position: absolute;
|
|
59
|
+
width: 100%;
|
|
60
|
+
bottom: 0.8vw;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
}
|
|
65
|
+
.m-carousel-mobile .swiper-ban .ban {
|
|
66
|
+
font-size: 1.067vw;
|
|
67
|
+
width: 1em;
|
|
68
|
+
height: 1em;
|
|
69
|
+
border-radius: 50%;
|
|
70
|
+
background: #FFF;
|
|
71
|
+
cursor: inherit;
|
|
72
|
+
margin-right: 1em;
|
|
73
|
+
transition: all 0.5s;
|
|
74
|
+
}
|
|
75
|
+
.m-carousel-mobile .swiper-ban .ban.active {
|
|
76
|
+
width: 2em;
|
|
77
|
+
border-radius: 13.333vw;
|
|
78
|
+
opacity: 1;
|
|
79
|
+
}
|
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
.m-image-gallery-mobile {
|
|
2
|
-
.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
justify-content: center;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
.m-image-gallery-mobile .content .line {
|
|
2
|
+
margin-bottom: 1.6vw;
|
|
3
|
+
}
|
|
4
|
+
.m-image-gallery-mobile .content .line.isHorizontal {
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: flex-start;
|
|
7
|
+
}
|
|
8
|
+
.m-image-gallery-mobile .content .line:last-child {
|
|
9
|
+
margin-bottom: 0;
|
|
10
|
+
}
|
|
11
|
+
.m-image-gallery-mobile .content .line .img-wrap {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
}
|