@fonixtree/magic-design 0.1.15 → 0.1.16
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/common/ImageModal/utils.js +4 -6
- package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -2
- package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +6 -4
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/es/composite-comp/bol/components/Divider/index.js +4 -2
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +6 -4
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +4 -2
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/es/composite-comp/bol/components/Newsletter/index.js +3 -1
- package/es/composite-comp/bol/components/Video/components/ShareBtn/index.js +2 -2
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +4 -2
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +2 -2
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +23 -27
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -2
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +38 -45
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -2
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +41 -50
- package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +4 -4
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +43 -49
- package/es/decorator/compositeDecorator.js +4 -2
- package/es/meta-comp/components/Button/index.js +3 -1
- package/es/meta-comp/components/Image/index.js +4 -2
- package/es/meta-comp/components/Text/index.js +1 -1
- package/es/utils/commonUtil.js +45 -1
- package/lib/common/ImageModal/utils.js +4 -6
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -2
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +6 -4
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/lib/composite-comp/bol/components/Divider/index.js +4 -2
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +6 -4
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +4 -2
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/lib/composite-comp/bol/components/Newsletter/index.js +3 -1
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/index.js +2 -2
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +4 -2
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +2 -2
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +23 -27
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -2
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +38 -45
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -2
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +41 -50
- package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +4 -4
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +43 -49
- package/lib/decorator/compositeDecorator.js +4 -2
- package/lib/meta-comp/components/Button/index.js +3 -1
- package/lib/meta-comp/components/Image/index.js +4 -2
- package/lib/meta-comp/components/Text/index.js +1 -1
- package/lib/utils/commonUtil.js +45 -1
- package/package.json +2 -1
|
@@ -373,9 +373,7 @@ var fileUpload = function fileUpload(_a, cb) {
|
|
|
373
373
|
|
|
374
374
|
case 4:
|
|
375
375
|
error_1 = _b.sent();
|
|
376
|
-
|
|
377
|
-
_antd.message.warning(fileStatus[res.uploadState]);
|
|
378
|
-
|
|
376
|
+
console.log(error_1);
|
|
379
377
|
return [3
|
|
380
378
|
/*break*/
|
|
381
379
|
, 5];
|
|
@@ -417,7 +415,8 @@ var uploadFileCheck = function uploadFileCheck(_a, chunks, fileName, cb) {
|
|
|
417
415
|
return [2
|
|
418
416
|
/*return*/
|
|
419
417
|
]; // 拦截停下
|
|
420
|
-
}
|
|
418
|
+
} // 曾经删除过,已恢复 不需要上传
|
|
419
|
+
|
|
421
420
|
|
|
422
421
|
if (res.uploadState == 3) {
|
|
423
422
|
_antd.message.warning(fileStatus[res.uploadState]);
|
|
@@ -460,8 +459,7 @@ var uploadFileCheck = function uploadFileCheck(_a, chunks, fileName, cb) {
|
|
|
460
459
|
formData: formData
|
|
461
460
|
};
|
|
462
461
|
});
|
|
463
|
-
}
|
|
464
|
-
else {
|
|
462
|
+
} else {
|
|
465
463
|
formDataList = chunks.filter(function (_, index) {
|
|
466
464
|
return !doneFileList.includes(index);
|
|
467
465
|
}).map(function (item, index) {
|
|
@@ -17,6 +17,8 @@ var _mobx = require("../../../../../mobx");
|
|
|
17
17
|
|
|
18
18
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
19
19
|
|
|
20
|
+
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
21
|
+
|
|
20
22
|
var _AlignSelector = require("../../../../../common/AlignSelector");
|
|
21
23
|
|
|
22
24
|
var _components = require("../../../../../meta-comp/components");
|
|
@@ -257,10 +259,10 @@ function (_super) {
|
|
|
257
259
|
|
|
258
260
|
return (_a = _this.carouselRef.current) === null || _a === void 0 ? void 0 : _a.goTo(i);
|
|
259
261
|
},
|
|
260
|
-
style: {
|
|
262
|
+
style: (0, _commonUtil.pxToRem)({
|
|
261
263
|
backgroundColor: i == carouseIndex ? data.setting.dots.hoverColor.mobile : data.setting.dots.color.mobile,
|
|
262
264
|
fontSize: i == carouseIndex ? data.setting.dots.hoverSize.mobile : data.setting.dots.size.mobile
|
|
263
|
-
}
|
|
265
|
+
})
|
|
264
266
|
});
|
|
265
267
|
})));
|
|
266
268
|
};
|
|
@@ -1,80 +1,54 @@
|
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.swiper-ban {
|
|
58
|
-
position: absolute;
|
|
59
|
-
width: 100%;
|
|
60
|
-
bottom: 10px;
|
|
61
|
-
display: flex;
|
|
62
|
-
align-items: center;
|
|
63
|
-
justify-content: center;
|
|
64
|
-
|
|
65
|
-
.ban {
|
|
66
|
-
font-size: 16px;
|
|
67
|
-
width: 1.5em;
|
|
68
|
-
height: 0.3em;
|
|
69
|
-
background: #FFF;
|
|
70
|
-
cursor: inherit;
|
|
71
|
-
margin-right: 0.3em;
|
|
72
|
-
transition: all .5s;
|
|
73
|
-
|
|
74
|
-
&.active {
|
|
75
|
-
width: 1.5em;
|
|
76
|
-
opacity: 1;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
3
|
+
}
|
|
4
|
+
.m-banner-mobile .cylon-carousel .slick-track {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
}
|
|
8
|
+
.m-banner-mobile .carouselItem {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: flex;
|
|
11
|
+
}
|
|
12
|
+
.m-banner-mobile .carouselItem .carouseContent {
|
|
13
|
+
padding: 1.6rem 0.56rem 0;
|
|
14
|
+
position: absolute;
|
|
15
|
+
z-index: 2;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
margin-bottom: auto;
|
|
19
|
+
}
|
|
20
|
+
.m-banner-mobile .carouselItem .title {
|
|
21
|
+
margin-bottom: 0.16rem;
|
|
22
|
+
}
|
|
23
|
+
.m-banner-mobile .carouselItem .sub-title {
|
|
24
|
+
margin-bottom: 0.4rem;
|
|
25
|
+
}
|
|
26
|
+
.m-banner-mobile .carouselItem .btn-wrap {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: flex-start;
|
|
30
|
+
}
|
|
31
|
+
.m-banner-mobile .carouselItem .btn-wrap .btn {
|
|
32
|
+
margin-right: 0.24rem;
|
|
33
|
+
}
|
|
34
|
+
.m-banner-mobile .swiper-ban {
|
|
35
|
+
position: absolute;
|
|
36
|
+
width: 100%;
|
|
37
|
+
bottom: 0.2rem;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
}
|
|
42
|
+
.m-banner-mobile .swiper-ban .ban {
|
|
43
|
+
font-size: 0.32rem;
|
|
44
|
+
width: 1.5em;
|
|
45
|
+
height: 0.3em;
|
|
46
|
+
background: #FFF;
|
|
47
|
+
cursor: inherit;
|
|
48
|
+
margin-right: 0.3em;
|
|
49
|
+
transition: all 0.5s;
|
|
50
|
+
}
|
|
51
|
+
.m-banner-mobile .swiper-ban .ban.active {
|
|
52
|
+
width: 1.5em;
|
|
53
|
+
opacity: 1;
|
|
54
|
+
}
|
|
@@ -15,6 +15,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
15
15
|
|
|
16
16
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
17
17
|
|
|
18
|
+
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
19
|
+
|
|
18
20
|
var _components = require("../../../../../meta-comp/components");
|
|
19
21
|
|
|
20
22
|
require("slick-carousel/slick/slick.css");
|
|
@@ -230,9 +232,9 @@ function (_super) {
|
|
|
230
232
|
className: "m-carousel-mobile"
|
|
231
233
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
232
234
|
className: "content",
|
|
233
|
-
style: {
|
|
235
|
+
style: (0, _commonUtil.pxToRem)({
|
|
234
236
|
paddingBottom: data.setting.dots.open && data.groupSource.length / floorColNum > 1 ? dotsSpace : '0'
|
|
235
|
-
}
|
|
237
|
+
})
|
|
236
238
|
}, /*#__PURE__*/_react["default"].createElement(_reactSlick["default"], _extends({
|
|
237
239
|
ref: function ref(slider) {
|
|
238
240
|
return _this.sliderRef = slider;
|
|
@@ -298,10 +300,10 @@ function (_super) {
|
|
|
298
300
|
onClick: function onClick() {
|
|
299
301
|
return _this.sliderRef.slickGoTo(i);
|
|
300
302
|
},
|
|
301
|
-
style: {
|
|
303
|
+
style: (0, _commonUtil.pxToRem)({
|
|
302
304
|
backgroundColor: i == sliderIndex ? data.setting.dots.hoverColor : data.setting.dots.color,
|
|
303
305
|
fontSize: i == sliderIndex ? data.setting.dots.hoverSize : data.setting.dots.size
|
|
304
|
-
}
|
|
306
|
+
})
|
|
305
307
|
});
|
|
306
308
|
}))));
|
|
307
309
|
};
|
|
@@ -1,103 +1,84 @@
|
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
border-radius: 50%;
|
|
86
|
-
background: #FFF;
|
|
87
|
-
cursor: inherit;
|
|
88
|
-
margin-right: 10px;
|
|
89
|
-
transition: all .5s;
|
|
90
|
-
|
|
91
|
-
&:last-child {
|
|
92
|
-
margin-right: 0;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&.active {
|
|
96
|
-
width: 2em;
|
|
97
|
-
height: 1em;
|
|
98
|
-
border-radius: 100px;
|
|
99
|
-
opacity: 1;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
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: 0;
|
|
16
|
+
}
|
|
17
|
+
.m-carousel-mobile .slider-wrap .slick-list:hover {
|
|
18
|
+
padding-top: 2rem;
|
|
19
|
+
margin-top: -2rem;
|
|
20
|
+
padding-bottom: 2rem;
|
|
21
|
+
margin-bottom: -2rem;
|
|
22
|
+
}
|
|
23
|
+
.m-carousel-mobile .slider-wrap .slick-list .slick-track {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 0.24rem;
|
|
27
|
+
}
|
|
28
|
+
.m-carousel-mobile .slider-wrap .img-wrap .img {
|
|
29
|
+
width: fit-content;
|
|
30
|
+
height: fit-content;
|
|
31
|
+
display: block;
|
|
32
|
+
margin: 0 auto;
|
|
33
|
+
}
|
|
34
|
+
.m-carousel-mobile .slider-wrap .img-wrap .title {
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
margin-top: 0.24rem;
|
|
38
|
+
}
|
|
39
|
+
.m-carousel-mobile .slider-wrap .img-wrap .text {
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
margin-top: 0.12rem;
|
|
43
|
+
}
|
|
44
|
+
.m-carousel-mobile .slider-wrap .img-wrap .tags {
|
|
45
|
+
margin-top: 0.16rem;
|
|
46
|
+
margin-bottom: 0.24rem;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: row;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
}
|
|
52
|
+
.m-carousel-mobile .slider-wrap .img-wrap .tags > div {
|
|
53
|
+
margin-right: 0.16rem;
|
|
54
|
+
}
|
|
55
|
+
.m-carousel-mobile .slider-wrap .img-wrap .tags > div:last-child {
|
|
56
|
+
margin-right: 0;
|
|
57
|
+
}
|
|
58
|
+
.m-carousel-mobile .swiper-ban {
|
|
59
|
+
position: absolute;
|
|
60
|
+
width: 100%;
|
|
61
|
+
bottom: 0.12rem;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
}
|
|
66
|
+
.m-carousel-mobile .swiper-ban .ban {
|
|
67
|
+
font-size: 0.16rem;
|
|
68
|
+
width: 1em;
|
|
69
|
+
height: 1em;
|
|
70
|
+
border-radius: 50%;
|
|
71
|
+
background: #FFF;
|
|
72
|
+
cursor: inherit;
|
|
73
|
+
margin-right: 0.2rem;
|
|
74
|
+
transition: all 0.5s;
|
|
75
|
+
}
|
|
76
|
+
.m-carousel-mobile .swiper-ban .ban:last-child {
|
|
77
|
+
margin-right: 0;
|
|
78
|
+
}
|
|
79
|
+
.m-carousel-mobile .swiper-ban .ban.active {
|
|
80
|
+
width: 2em;
|
|
81
|
+
height: 1em;
|
|
82
|
+
border-radius: 2rem;
|
|
83
|
+
opacity: 1;
|
|
84
|
+
}
|
|
@@ -11,6 +11,8 @@ var _defaultJSON = require("./defaultJSON");
|
|
|
11
11
|
|
|
12
12
|
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
13
13
|
|
|
14
|
+
var _commonUtil = require("../../../../utils/commonUtil");
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
17
|
|
|
16
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -84,9 +86,9 @@ function (_super) {
|
|
|
84
86
|
width: content.width + "%"
|
|
85
87
|
} : {};
|
|
86
88
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
87
|
-
style: style
|
|
89
|
+
style: (0, _commonUtil.pxToRem)(style)
|
|
88
90
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
|
-
style: lineStyle
|
|
91
|
+
style: (0, _commonUtil.pxToRem)(lineStyle)
|
|
90
92
|
}));
|
|
91
93
|
};
|
|
92
94
|
|
|
@@ -11,6 +11,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
var _components = require("../../../../../meta-comp/components");
|
|
13
13
|
|
|
14
|
+
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
15
|
+
|
|
14
16
|
var _ConfigPanel = require("../../../../../core/Designer/ConfigPanel");
|
|
15
17
|
|
|
16
18
|
require("./index.less");
|
|
@@ -131,16 +133,16 @@ function (_super) {
|
|
|
131
133
|
className: (0, _classnames["default"])('line', {
|
|
132
134
|
isHorizontal: isHorizontal
|
|
133
135
|
}),
|
|
134
|
-
style: isHorizontal ? {
|
|
136
|
+
style: isHorizontal ? (0, _commonUtil.pxToRem)({
|
|
135
137
|
gap: MOBILE_IMG_SIZE[colNum].gap
|
|
136
|
-
} : {}
|
|
138
|
+
}) : {}
|
|
137
139
|
}, arr.map(function (item) {
|
|
138
140
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
139
141
|
key: item.id,
|
|
140
142
|
className: "img-wrap",
|
|
141
|
-
style: {
|
|
143
|
+
style: (0, _commonUtil.pxToRem)({
|
|
142
144
|
width: "calc((100% - " + MOBILE_IMG_SIZE[colNum].gap * (colNum - 1) + "px) / " + colNum + ")"
|
|
143
|
-
}
|
|
145
|
+
})
|
|
144
146
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
145
147
|
data: item.image,
|
|
146
148
|
GAData: __assign(__assign({}, GAData), {
|
|
@@ -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: 0.24rem;
|
|
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
|
+
}
|
|
@@ -15,6 +15,8 @@ var _components = require("../../../../../meta-comp/components");
|
|
|
15
15
|
|
|
16
16
|
var _ConfigPanel = require("../../../../../core/Designer/ConfigPanel");
|
|
17
17
|
|
|
18
|
+
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
19
|
+
|
|
18
20
|
require("./index.less");
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -154,7 +156,7 @@ function (_super) {
|
|
|
154
156
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
157
|
key: source.id,
|
|
156
158
|
className: data.groupSource.length > data.customize.rowNum ? 'one-card card-margin-bottom' : 'one-card',
|
|
157
|
-
style: _this.getCardStyle(source, i)
|
|
159
|
+
style: (0, _commonUtil.pxToRem)(_this.getCardStyle(source, i))
|
|
158
160
|
}, source.image.open && data.customize.layout.h5Layout !== 'centerM' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
159
161
|
className: "card-image-wrap"
|
|
160
162
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
@@ -215,7 +217,7 @@ function (_super) {
|
|
|
215
217
|
})
|
|
216
218
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
217
219
|
className: "card-btn-wrap",
|
|
218
|
-
style: cardBtnStyle
|
|
220
|
+
style: (0, _commonUtil.pxToRem)(cardBtnStyle)
|
|
219
221
|
}, source.button.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
220
222
|
className: "card-first-btn",
|
|
221
223
|
data: source.button,
|