@fonixtree/magic-design 0.1.14 → 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.
Files changed (95) hide show
  1. package/es/common/ImageModal/CommonSelPicCard/index.js +6 -6
  2. package/es/common/ImageModal/CommonSelPicCard/index.less +2 -2
  3. package/es/common/ImageModal/index.less +3 -3
  4. package/es/common/ImageModal/utils.js +15 -9
  5. package/es/common/InputNumber/index.less +1 -1
  6. package/es/common/LinkModal/FilteredProductModal/index.less +2 -2
  7. package/es/common/LinkModal/index.less +1 -1
  8. package/es/common/ProductModal/index.less +2 -2
  9. package/es/common/Slider/index.less +2 -2
  10. package/es/common/SwitchCollapse/index.less +3 -3
  11. package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -2
  12. package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  13. package/es/composite-comp/bol/components/Banner/pc/index.less +1 -1
  14. package/es/composite-comp/bol/components/Carousel/mobile/index.js +6 -4
  15. package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  16. package/es/composite-comp/bol/components/Divider/index.js +4 -2
  17. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +6 -4
  18. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  19. package/es/composite-comp/bol/components/ImageText/mobile/index.js +4 -2
  20. package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  21. package/es/composite-comp/bol/components/Newsletter/index.js +3 -1
  22. package/es/composite-comp/bol/components/Video/components/ShareBtn/index.js +2 -2
  23. package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +4 -2
  24. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +2 -2
  25. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +23 -27
  26. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -2
  27. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +38 -45
  28. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -2
  29. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +41 -50
  30. package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
  31. package/es/composite-comp/bol/components/Wallet/mobile/index.js +4 -4
  32. package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  33. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.less +1 -1
  34. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -2
  35. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  36. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  37. package/es/composite-comp/dito/components/PcNavigation/pc/index.js +1 -1
  38. package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  39. package/es/composite-comp/dito/components/Recommend/pc/index.less +1 -1
  40. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +43 -49
  41. package/es/core/Designer/AppointmentModal/index.less +2 -2
  42. package/es/decorator/compositeDecorator.js +4 -2
  43. package/es/meta-comp/components/Button/index.js +3 -1
  44. package/es/meta-comp/components/Image/index.js +4 -2
  45. package/es/meta-comp/components/Text/index.js +1 -1
  46. package/es/meta-comp/config-panels/ImageConfig/index.less +1 -1
  47. package/es/utils/commonUtil.js +45 -1
  48. package/lib/common/ImageModal/CommonSelPicCard/index.js +6 -6
  49. package/lib/common/ImageModal/CommonSelPicCard/index.less +2 -2
  50. package/lib/common/ImageModal/index.less +3 -3
  51. package/lib/common/ImageModal/utils.js +15 -9
  52. package/lib/common/InputNumber/index.less +1 -1
  53. package/lib/common/LinkModal/FilteredProductModal/index.less +2 -2
  54. package/lib/common/LinkModal/index.less +1 -1
  55. package/lib/common/ProductModal/index.less +2 -2
  56. package/lib/common/Slider/index.less +2 -2
  57. package/lib/common/SwitchCollapse/index.less +3 -3
  58. package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -2
  59. package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  60. package/lib/composite-comp/bol/components/Banner/pc/index.less +1 -1
  61. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +6 -4
  62. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  63. package/lib/composite-comp/bol/components/Divider/index.js +4 -2
  64. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +6 -4
  65. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  66. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +4 -2
  67. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  68. package/lib/composite-comp/bol/components/Newsletter/index.js +3 -1
  69. package/lib/composite-comp/bol/components/Video/components/ShareBtn/index.js +2 -2
  70. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +4 -2
  71. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +2 -2
  72. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +23 -27
  73. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -2
  74. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +38 -45
  75. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -2
  76. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +41 -50
  77. package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
  78. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +4 -4
  79. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  80. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.less +1 -1
  81. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -2
  82. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  83. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  84. package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +1 -1
  85. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  86. package/lib/composite-comp/dito/components/Recommend/pc/index.less +1 -1
  87. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +43 -49
  88. package/lib/core/Designer/AppointmentModal/index.less +2 -2
  89. package/lib/decorator/compositeDecorator.js +4 -2
  90. package/lib/meta-comp/components/Button/index.js +3 -1
  91. package/lib/meta-comp/components/Image/index.js +4 -2
  92. package/lib/meta-comp/components/Text/index.js +1 -1
  93. package/lib/meta-comp/config-panels/ImageConfig/index.less +1 -1
  94. package/lib/utils/commonUtil.js +45 -1
  95. package/package.json +2 -1
@@ -30,7 +30,7 @@ function CommonSelPicCard(_a) {
30
30
  };
31
31
 
32
32
  return /*#__PURE__*/_react["default"].createElement("div", {
33
- className: "ant-upload-list ant-upload-list-picture-card"
33
+ className: "cylon-upload-list cylon-upload-list-picture-card"
34
34
  }, /*#__PURE__*/_react["default"].createElement("div", {
35
35
  className: "upload-list-item-container"
36
36
  }, /*#__PURE__*/_react["default"].createElement("span", null, content.contentType === 'Catg' ? /*#__PURE__*/_react["default"].createElement("div", {
@@ -39,7 +39,7 @@ function CommonSelPicCard(_a) {
39
39
  }, /*#__PURE__*/_react["default"].createElement("div", {
40
40
  className: "item-body"
41
41
  }, /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement("div", {
42
- className: "ant-upload-list-item-thumbnail",
42
+ className: "cylon-upload-list-item-thumbnail",
43
43
  href: ""
44
44
  }))), /*#__PURE__*/_react["default"].createElement("div", {
45
45
  className: "item-footer",
@@ -49,15 +49,15 @@ function CommonSelPicCard(_a) {
49
49
  }, /*#__PURE__*/_react["default"].createElement("div", {
50
50
  className: "item-body"
51
51
  }, /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement("div", {
52
- className: "ant-upload-list-item-thumbnail",
52
+ className: "cylon-upload-list-item-thumbnail",
53
53
  href: ""
54
54
  }, /*#__PURE__*/_react["default"].createElement("img", {
55
55
  alt: "",
56
+ src: type === _const.contentCatgTypeMap.PICTURE ? content.url : content.imgUrl,
56
57
  style: {
57
58
  width: '100%',
58
59
  height: '100%'
59
- },
60
- src: type === _const.contentCatgTypeMap.PICTURE ? content.url : content.imgUrl
60
+ }
61
61
  }))), /*#__PURE__*/_react["default"].createElement("span", {
62
62
  style: {
63
63
  position: 'absolute',
@@ -65,8 +65,8 @@ function CommonSelPicCard(_a) {
65
65
  right: 6
66
66
  }
67
67
  }, /*#__PURE__*/_react["default"].createElement(_antd.Checkbox, {
68
- className: "checkbox",
69
68
  checked: checked,
69
+ className: "checkbox",
70
70
  onChange: function onChange(e) {
71
71
  return _onChange(e, content);
72
72
  }
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
 
14
- .ant-upload-list-item-thumbnail img {
14
+ .cylon-upload-list-item-thumbnail img {
15
15
  border-radius: 4px;
16
16
  }
17
17
 
@@ -35,6 +35,6 @@
35
35
  cursor: pointer;
36
36
  }
37
37
 
38
- .checkbox :global .ant-checkbox-input {
38
+ .checkbox :global .cylon-checkbox-input {
39
39
  position: absolute;
40
40
  }
@@ -3,7 +3,7 @@
3
3
  margin-bottom: 15px;
4
4
  }
5
5
 
6
- .ant-tree-title {
6
+ .cylon-tree-title {
7
7
  max-width: 200px;
8
8
  overflow: hidden;
9
9
  text-overflow: ellipsis;
@@ -15,12 +15,12 @@
15
15
  }
16
16
 
17
17
  .catg_img {
18
- .ant-spin-container {
18
+ .cylon-spin-container {
19
19
  display: flex;
20
20
  flex-wrap: wrap;
21
21
  }
22
22
 
23
- .ant-upload-list-item-thumbnail {
23
+ .cylon-upload-list-item-thumbnail {
24
24
  img {
25
25
  object-fit: contain;
26
26
  }
@@ -166,7 +166,8 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
166
166
  var fileStatus = {
167
167
  0: '文件不存在(没有上传过)',
168
168
  1: '文件已存在(曾经上传过)',
169
- 2: '文件不完整(曾经上传中断过,可继续上传)'
169
+ 2: '文件不完整(曾经上传中断过,可继续上传)',
170
+ 3: '文件已恢复(曾经删除,已恢复)'
170
171
  };
171
172
  /**
172
173
  * 发请求,校验文件是否上传过,分三种情况:见:fileStatus
@@ -372,9 +373,7 @@ var fileUpload = function fileUpload(_a, cb) {
372
373
 
373
374
  case 4:
374
375
  error_1 = _b.sent();
375
-
376
- _antd.message.warning(fileStatus[res.uploadState]);
377
-
376
+ console.log(error_1);
378
377
  return [3
379
378
  /*break*/
380
379
  , 5];
@@ -408,12 +407,20 @@ var uploadFileCheck = function uploadFileCheck(_a, chunks, fileName, cb) {
408
407
  })];
409
408
 
410
409
  case 1:
411
- res = _b.sent();
412
- console.log('res: ', res); // 等于1曾经上传过,不需要再上传了
410
+ res = _b.sent(); // 等于1曾经上传过,不需要再上传了
413
411
 
414
412
  if (res.uploadState == 1) {
415
413
  _antd.message.warning(fileStatus[res.uploadState]);
416
414
 
415
+ return [2
416
+ /*return*/
417
+ ]; // 拦截停下
418
+ } // 曾经删除过,已恢复 不需要上传
419
+
420
+
421
+ if (res.uploadState == 3) {
422
+ _antd.message.warning(fileStatus[res.uploadState]);
423
+
417
424
  return [2
418
425
  /*return*/
419
426
  ]; // 拦截停下
@@ -452,8 +459,7 @@ var uploadFileCheck = function uploadFileCheck(_a, chunks, fileName, cb) {
452
459
  formData: formData
453
460
  };
454
461
  });
455
- } // 说明曾经上传过,需要过滤一下,曾经上传过的就不用再上传了
456
- else {
462
+ } else {
457
463
  formDataList = chunks.filter(function (_, index) {
458
464
  return !doneFileList.includes(index);
459
465
  }).map(function (item, index) {
@@ -523,7 +529,7 @@ var chunksUpload = function chunksUpload(_a, cb) {
523
529
 
524
530
  return [2
525
531
  /*return*/
526
- ];
532
+ , true];
527
533
  }
528
534
  });
529
535
  });
@@ -7,7 +7,7 @@
7
7
  padding: 0 7px;
8
8
  position: relative;
9
9
 
10
- .ant-input-number-focused {
10
+ .cylon-input-number-focused {
11
11
  box-shadow: none;
12
12
  }
13
13
 
@@ -104,7 +104,7 @@
104
104
  }
105
105
  }
106
106
 
107
- .ant-form-item {
107
+ .cylon-form-item {
108
108
  margin-bottom: 4px;
109
109
  }
110
110
 
@@ -117,7 +117,7 @@
117
117
  }
118
118
  }
119
119
 
120
- [magic_design] .ant-modal-root {
120
+ [magic_design] .cylon-modal-root {
121
121
  display: flex;
122
122
  justify-content: center;
123
123
  position: absolute;
@@ -3,7 +3,7 @@
3
3
  right: unset !important;
4
4
  left: unset !important;
5
5
 
6
- .ant-modal .ant-modal-content .ant-modal-body {
6
+ .cylon-modal .cylon-modal-content .cylon-modal-body {
7
7
  padding-bottom: 60px !important;
8
8
  padding-top: 0 !important;
9
9
  }
@@ -4,7 +4,7 @@
4
4
  left: unset !important;
5
5
 
6
6
  .proModalWrap {
7
- thead .ant-checkbox {
7
+ thead .cylon-checkbox {
8
8
  visibility: hidden;
9
9
  }
10
10
 
@@ -136,7 +136,7 @@
136
136
  }
137
137
  }
138
138
 
139
- [magic_design] .ant-modal-root {
139
+ [magic_design] .cylon-modal-root {
140
140
  display: flex;
141
141
  justify-content: center;
142
142
  position: absolute;
@@ -10,11 +10,11 @@
10
10
  flex: 1;
11
11
  margin-right: 20px;
12
12
 
13
- // .ant-slider-rail {
13
+ // .cylon-slider-rail {
14
14
  // background-color: #E9F0FF;
15
15
  // }
16
16
 
17
- // .ant-slider-track {
17
+ // .cylon-slider-track {
18
18
  // background-color: #2F54EB;
19
19
  // }
20
20
  }
@@ -1,9 +1,9 @@
1
1
  .switch_collapse_wrap {
2
- .ant-collapse {
3
- .ant-collapse-item {
2
+ .cylon-collapse {
3
+ .cylon-collapse-item {
4
4
  padding-bottom: 1px !important;
5
5
  // &:first-child {
6
- // .ant-collapse-header{
6
+ // .cylon-collapse-header{
7
7
  // padding-top: 0 !important;
8
8
  // }
9
9
  // }
@@ -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
- // .turnPage {
4
- // position: absolute;
5
- // top: 50%;
6
- // transform: translateY(-50%);
7
- // z-index: 3;
8
- // cursor: pointer;
9
- // }
10
- // .leftBtn {
11
- // left: 20px;
12
- // }
13
- // .rightBtn {
14
- // right: 20px;
15
- // }
16
-
17
- .ant-carousel {
18
- .slick-track {
19
- display: flex;
20
- align-items: center;
21
- }
22
- }
23
-
24
- .carouselItem {
25
- // height: 386px;
26
- position: relative;
27
- display: flex;
28
-
29
- .carouseContent {
30
- padding: 80px 28px 0;
31
- position: absolute;
32
- z-index: 2;
33
- display: flex;
34
- flex-direction: column;
35
- margin-bottom: auto;
36
- }
37
-
38
- .title {
39
- margin-bottom: 8px;
40
- }
41
-
42
- .sub-title {
43
- margin-bottom: 20px;
44
- }
45
-
46
- .btn-wrap {
47
- display: flex;
48
- align-items: center;
49
- justify-content: flex-start;
50
-
51
- .btn {
52
- margin-right: 12px;
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
+ }
@@ -1,7 +1,7 @@
1
1
  .m-banner-pc {
2
2
  position: relative;
3
3
 
4
- .ant-carousel {
4
+ .cylon-carousel {
5
5
  .slick-track {
6
6
  display: flex;
7
7
  align-items: center;
@@ -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
- .content {
6
- display: flex;
7
- margin: 0 auto;
8
- }
9
-
10
- .slider-wrap {
11
- width: 100%;
12
- margin: 0 auto;
13
- line-height: 1;
14
-
15
- .slick-list {
16
- // margin-left: -11px;
17
- // margin-right: -11px;
18
- padding: 0;
19
-
20
- &:hover {
21
- padding-top: 100px;
22
- margin-top: -100px;
23
- padding-bottom: 100px;
24
- margin-bottom: -100px;
25
- }
26
-
27
- .slick-track {
28
- display: flex;
29
- align-items: center;
30
- gap: 12px;
31
- }
32
- }
33
-
34
- .img-wrap {
35
- .img {
36
- width: fit-content;
37
- height: fit-content;
38
- display: block;
39
- margin: 0 auto;
40
- }
41
-
42
- .title {
43
- display: flex;
44
- justify-content: center;
45
- margin-top: 12px;
46
- }
47
-
48
- .text {
49
- display: flex;
50
- justify-content: center;
51
- margin-top: 6px;
52
- }
53
-
54
- .tags {
55
- margin-top: 8px;
56
- margin-bottom: 12px;
57
- display: flex;
58
- flex-direction: row;
59
- align-items: center;
60
- justify-content: center;
61
-
62
- >div {
63
- margin-right: 8px;
64
-
65
- &:last-child {
66
- margin-right: 0;
67
- }
68
- }
69
- }
70
- }
71
- }
72
-
73
- .swiper-ban {
74
- position: absolute;
75
- width: 100%;
76
- bottom: 6px;
77
- display: flex;
78
- align-items: center;
79
- justify-content: center;
80
-
81
- .ban {
82
- font-size: 8px;
83
- width: 1em;
84
- height: 1em;
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