@fonixtree/magic-design 1.0.167 → 1.0.169

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 (199) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +11 -3
  2. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  3. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  5. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  6. package/es/assets/images/layout-icon/campaignLayout1.png +0 -0
  7. package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
  8. package/es/assets/images/layout-icon/imageGalleryLayout4.png +0 -0
  9. package/es/common/Collapse/index.js +3 -1
  10. package/es/common/CountDown/index.js +29 -2
  11. package/es/common/CountDown/index.less +38 -5
  12. package/es/common/Field/index.js +5 -4
  13. package/es/common/Field/index.less +4 -0
  14. package/es/common/Iconfont/index.js +4 -2
  15. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +33 -2
  16. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -0
  17. package/es/composite-comp/bol/components/Video/defaultJSON.js +1 -0
  18. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +2 -1
  19. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +1 -0
  20. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -1
  21. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +1 -0
  22. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -1
  23. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +1 -0
  24. package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +2 -1
  25. package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +1 -0
  26. package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +8 -2
  27. package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +2 -0
  28. package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +4 -1
  29. package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +1 -0
  30. package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +2 -1
  31. package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +1 -0
  32. package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +2 -1
  33. package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +1 -0
  34. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -0
  35. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +1 -1
  36. package/es/composite-comp/bol/config-panels/VideoConfig/index.js +12 -0
  37. package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
  38. package/es/composite-comp/dito/components/Campaign/defaultJSON.js +112 -0
  39. package/es/composite-comp/dito/components/Campaign/index.js +88 -0
  40. package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +320 -0
  41. package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.less +20 -0
  42. package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +180 -0
  43. package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.less +26 -0
  44. package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +434 -0
  45. package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.less +20 -0
  46. package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +317 -0
  47. package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.less +20 -0
  48. package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +115 -0
  49. package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.less +14 -0
  50. package/es/composite-comp/dito/components/Campaign/mobile/imgs/defImg.png +0 -0
  51. package/es/composite-comp/dito/components/Campaign/mobile/index.js +125 -0
  52. package/es/composite-comp/dito/components/Campaign/mobile/index.less +57 -0
  53. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +25 -11
  54. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
  55. package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
  56. package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
  57. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
  58. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
  59. package/es/composite-comp/dito/components/GroupedCarousel/pc/index.js +8 -2
  60. package/es/composite-comp/dito/components/SearchDITO/defaultJSON.js +7 -1
  61. package/es/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.js +114 -0
  62. package/es/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
  63. package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
  64. package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
  65. package/es/composite-comp/dito/components/SearchDITO/pc/index.js +12 -579
  66. package/es/composite-comp/dito/components/SearchDITO/pc/index.less +1 -185
  67. package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +29 -8
  68. package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +3 -1
  69. package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +5 -1
  70. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +20 -13
  71. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +4 -11
  72. package/es/composite-comp/dito/components/SlideImage/pc/index.js +2 -0
  73. package/es/composite-comp/dito/config-panels/CampaignConfig/ConfigContent/index.js +143 -0
  74. package/es/composite-comp/dito/config-panels/CampaignConfig/ConfigTitle/index.js +93 -0
  75. package/es/composite-comp/dito/config-panels/CampaignConfig/index.js +69 -0
  76. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
  77. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
  78. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
  79. package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +11 -2
  80. package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +6 -6
  81. package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +26 -0
  82. package/es/composite-comp/dito/second-config-panels/CampaignSecondConfig/index.js +109 -0
  83. package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +11 -0
  84. package/es/constants/component-types.js +9 -3
  85. package/es/constants/index.js +4 -0
  86. package/es/constants/layout.js +38 -2
  87. package/es/core/Designer/ConfigPanel/index.js +4 -0
  88. package/es/decorator/compositeDecorator.js +5 -2
  89. package/es/locale/en/en.json +6 -1
  90. package/es/locale/es/es.json +6 -1
  91. package/es/locale/id/id.json +6 -1
  92. package/es/meta-comp/components/Button/index.js +4 -1
  93. package/es/meta-comp/components/Button/index.less +8 -1
  94. package/es/meta-comp/config-panels/ButtonConfig/index.js +1 -1
  95. package/es/meta-comp/config-panels/TextConfig/index.js +16 -3
  96. package/es/meta-comp/config-panels/TextConfig/index.less +7 -0
  97. package/lib/assets/fonts/magic-box-iconfont.css +11 -3
  98. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  99. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  100. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  101. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  102. package/lib/assets/images/layout-icon/campaignLayout1.png +0 -0
  103. package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
  104. package/lib/assets/images/layout-icon/imageGalleryLayout4.png +0 -0
  105. package/lib/common/Collapse/index.js +3 -1
  106. package/lib/common/CountDown/index.js +29 -2
  107. package/lib/common/CountDown/index.less +38 -5
  108. package/lib/common/Field/index.js +5 -4
  109. package/lib/common/Field/index.less +4 -0
  110. package/lib/common/Iconfont/index.js +4 -2
  111. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +33 -2
  112. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -0
  113. package/lib/composite-comp/bol/components/Video/defaultJSON.js +1 -0
  114. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +2 -1
  115. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +1 -0
  116. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -1
  117. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +1 -0
  118. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -1
  119. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +1 -0
  120. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +2 -1
  121. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +1 -0
  122. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +8 -2
  123. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +2 -0
  124. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +4 -1
  125. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +1 -0
  126. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +2 -1
  127. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +1 -0
  128. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +2 -1
  129. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +1 -0
  130. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -0
  131. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +1 -1
  132. package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +12 -0
  133. package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
  134. package/lib/composite-comp/dito/components/Campaign/defaultJSON.js +112 -0
  135. package/lib/composite-comp/dito/components/Campaign/index.js +88 -0
  136. package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +320 -0
  137. package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.less +20 -0
  138. package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +180 -0
  139. package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.less +26 -0
  140. package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +434 -0
  141. package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.less +20 -0
  142. package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +317 -0
  143. package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.less +20 -0
  144. package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +115 -0
  145. package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.less +14 -0
  146. package/lib/composite-comp/dito/components/Campaign/mobile/imgs/defImg.png +0 -0
  147. package/lib/composite-comp/dito/components/Campaign/mobile/index.js +125 -0
  148. package/lib/composite-comp/dito/components/Campaign/mobile/index.less +57 -0
  149. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +25 -11
  150. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
  151. package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
  152. package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
  153. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
  154. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
  155. package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.js +8 -2
  156. package/lib/composite-comp/dito/components/SearchDITO/defaultJSON.js +7 -1
  157. package/lib/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.js +114 -0
  158. package/lib/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
  159. package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
  160. package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
  161. package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +12 -579
  162. package/lib/composite-comp/dito/components/SearchDITO/pc/index.less +1 -185
  163. package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +29 -8
  164. package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +3 -1
  165. package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +5 -1
  166. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +20 -13
  167. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +4 -11
  168. package/lib/composite-comp/dito/components/SlideImage/pc/index.js +2 -0
  169. package/lib/composite-comp/dito/config-panels/CampaignConfig/ConfigContent/index.js +143 -0
  170. package/lib/composite-comp/dito/config-panels/CampaignConfig/ConfigTitle/index.js +93 -0
  171. package/lib/composite-comp/dito/config-panels/CampaignConfig/index.js +69 -0
  172. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
  173. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
  174. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
  175. package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +11 -2
  176. package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +6 -6
  177. package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +26 -0
  178. package/lib/composite-comp/dito/second-config-panels/CampaignSecondConfig/index.js +109 -0
  179. package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +11 -0
  180. package/lib/constants/component-types.js +9 -3
  181. package/lib/constants/index.js +4 -0
  182. package/lib/constants/layout.js +38 -2
  183. package/lib/core/Designer/ConfigPanel/index.js +4 -0
  184. package/lib/decorator/compositeDecorator.js +5 -2
  185. package/lib/locale/en/en.json +6 -1
  186. package/lib/locale/es/es.json +6 -1
  187. package/lib/locale/id/id.json +6 -1
  188. package/lib/meta-comp/components/Button/index.js +4 -1
  189. package/lib/meta-comp/components/Button/index.less +8 -1
  190. package/lib/meta-comp/config-panels/ButtonConfig/index.js +1 -1
  191. package/lib/meta-comp/config-panels/TextConfig/index.js +16 -3
  192. package/lib/meta-comp/config-panels/TextConfig/index.less +7 -0
  193. package/package.json +1 -1
  194. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  195. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  196. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  197. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  198. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  199. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
@@ -265,7 +265,8 @@ function (_super) {
265
265
  _this.getHeader = function (panel) {
266
266
  var activeKey = _this.state.activeKey;
267
267
  var name = panel.name,
268
- key = panel.key;
268
+ key = panel.key,
269
+ onClick = panel.onClick;
269
270
  var _a = _this.props,
270
271
  headerStyle = _a.headerStyle,
271
272
  showActiveColor = _a.showActiveColor;
@@ -275,6 +276,7 @@ function (_super) {
275
276
  } : {};
276
277
  return /*#__PURE__*/_react["default"].createElement("div", {
277
278
  className: "header_wrap",
279
+ onClick: onClick,
278
280
  onMouseEnter: function onMouseEnter() {
279
281
  return _this.headerMouseEnter(panel);
280
282
  },
@@ -9,10 +9,18 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
12
14
  var _commonUtil = require("../../utils/commonUtil");
13
15
 
14
16
  require("./index.less");
15
17
 
18
+ var _Iconfont = _interopRequireDefault(require("../Iconfont"));
19
+
20
+ var _coreUtil = require("../../utils/coreUtil");
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
16
24
  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); }
17
25
 
18
26
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -138,13 +146,32 @@ function (_super) {
138
146
  };
139
147
 
140
148
  CountDown.prototype.render = function () {
149
+ var type = this.props.type;
141
150
  var _a = this.state,
142
151
  hour = _a.hour,
143
152
  min = _a.min,
144
153
  second = _a.second;
145
154
  return /*#__PURE__*/_react["default"].createElement("div", {
146
- className: "count-down-wrap"
147
- }, /*#__PURE__*/_react["default"].createElement("span", null, hour), /*#__PURE__*/_react["default"].createElement("span", null, min), /*#__PURE__*/_react["default"].createElement("span", null, second));
155
+ className: (0, _classnames["default"])('count-down-wrap', {
156
+ pc: type === 'pc'
157
+ })
158
+ }, (0, _coreUtil.isPc)() && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
159
+ bold: true,
160
+ className: "icon_time",
161
+ color: "#000",
162
+ size: 24,
163
+ type: "icon-time1"
164
+ }), /*#__PURE__*/_react["default"].createElement("span", {
165
+ className: "num"
166
+ }, hour), (0, _coreUtil.isPc)() && /*#__PURE__*/_react["default"].createElement("span", {
167
+ className: "pots"
168
+ }, ":"), /*#__PURE__*/_react["default"].createElement("span", {
169
+ className: "num"
170
+ }, min), (0, _coreUtil.isPc)() && /*#__PURE__*/_react["default"].createElement("span", {
171
+ className: "pots"
172
+ }, ":"), /*#__PURE__*/_react["default"].createElement("span", {
173
+ className: "num"
174
+ }, second));
148
175
  };
149
176
 
150
177
  CountDown.defaultProps = {
@@ -1,11 +1,13 @@
1
1
  .count-down-wrap {
2
2
  display: flex;
3
3
  align-items: center;
4
+ justify-content: center;
5
+ font-family: 'Montserrat';
6
+ gap: 4px;
4
7
 
5
- span {
8
+ .num {
6
9
  background: #CC1D20;
7
10
  border-radius: 4px;
8
- font-family: 'Montserrat';
9
11
  font-style: normal;
10
12
  font-weight: 500;
11
13
  font-size: 12px;
@@ -14,10 +16,41 @@
14
16
  line-height: 17px;
15
17
  width: 24px;
16
18
  text-align: center;
17
- margin-right: 4px;
19
+ }
20
+
21
+ .pots {
22
+ display: none;
23
+ }
24
+
25
+ &.pc {
26
+ background-color: #F9CA1C;
27
+ border-radius: 20px;
28
+ padding: 0 12px;
29
+ gap: 2px;
30
+
31
+ .icon_time {
32
+ margin-right: 2px;
33
+ }
34
+
35
+ .num {
36
+ background: none;
37
+ font-style: normal;
38
+ font-weight: 700;
39
+ font-size: 20px;
40
+ color: #000;
41
+ height: 36px;
42
+ line-height: 38px;
43
+ }
18
44
 
19
- &:last-child {
20
- margin-right: 0;
45
+ .pots {
46
+ display: inline-block;
47
+ font-style: normal;
48
+ font-weight: 700;
49
+ font-size: 20px;
50
+ color: #000;
51
+ height: 36px;
52
+ line-height: 35px;
53
+ margin-left: 3px;
21
54
  }
22
55
  }
23
56
  }
@@ -71,12 +71,13 @@ function (_super) {
71
71
  split = _a.split,
72
72
  rest = __rest(_a, ["title", "children", "layout", "split"]);
73
73
 
74
- return /*#__PURE__*/_react["default"].createElement("div", _extends({
75
- className: (0, _classnames["default"])('m-field', {
74
+ return /*#__PURE__*/_react["default"].createElement("div", _extends({}, rest, {
75
+ className: (0, _classnames["default"])('m-field', "" + rest.className, {
76
76
  split: split,
77
- bold: split === 'bold'
77
+ bold: split === 'bold',
78
+ solid: split === 'solid'
78
79
  })
79
- }, rest), /*#__PURE__*/_react["default"].createElement("div", {
80
+ }), /*#__PURE__*/_react["default"].createElement("div", {
80
81
  className: (0, _classnames["default"])('field-item', {
81
82
  horizontal: layout === 'horizontal'
82
83
  })
@@ -9,6 +9,10 @@
9
9
  border-bottom: 8px solid #EDF0F4;
10
10
  border-radius: 2px;
11
11
  }
12
+
13
+ &.solid {
14
+ border-bottom: 1px solid #D2D9E5;
15
+ }
12
16
  }
13
17
 
14
18
  .field-item {
@@ -105,7 +105,8 @@ function (_super) {
105
105
  color = _a.color,
106
106
  svg = _a.svg,
107
107
  className = _a.className,
108
- rest = __rest(_a, ["type", "size", "color", "svg", "className"]);
108
+ bold = _a.bold,
109
+ rest = __rest(_a, ["type", "size", "color", "svg", "className", "bold"]);
109
110
 
110
111
  var _size = size;
111
112
 
@@ -124,7 +125,8 @@ function (_super) {
124
125
  className: (0, _classnames["default"])('icon_container', className),
125
126
  style: {
126
127
  fontSize: _size,
127
- color: color
128
+ color: color,
129
+ fontWeight: bold ? 'bold' : 'normal'
128
130
  }
129
131
  }, rest), svg ? /*#__PURE__*/_react["default"].createElement("svg", {
130
132
  "aria-hidden": "true",
@@ -114,6 +114,7 @@ function (_super) {
114
114
  var data = this.props.data;
115
115
  var GAData = (0, _commonUtil.getGAData)(data);
116
116
  var isHorizontal = data.customize.layout.h5Layout === 'layout2';
117
+ var isFluidLayout = data.customize.layout.h5Layout === 'layout3' || data.customize.layout.h5Layout === 'layout4';
117
118
  var colNum = isHorizontal ? data.customize.rowNum : 1;
118
119
  var newData = data.groupSource.reduce(function (prev, curr, index) {
119
120
  var i = Math.floor(index / colNum);
@@ -122,7 +123,7 @@ function (_super) {
122
123
  }, []);
123
124
  return /*#__PURE__*/_react["default"].createElement("div", {
124
125
  className: "m-image-gallery-mobile"
125
- }, /*#__PURE__*/_react["default"].createElement("div", {
126
+ }, !isFluidLayout && /*#__PURE__*/_react["default"].createElement("div", {
126
127
  className: "content"
127
128
  }, newData.map(function (arr, index) {
128
129
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -150,7 +151,37 @@ function (_super) {
150
151
  maxWidth: "100%"
151
152
  }));
152
153
  }));
153
- })));
154
+ })), data.customize.layout.h5Layout === 'layout3' && /*#__PURE__*/_react["default"].createElement("div", {
155
+ className: "fluid-content"
156
+ }, /*#__PURE__*/_react["default"].createElement("div", {
157
+ className: "left-img"
158
+ }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
159
+ data: data.groupSource[0].image,
160
+ maxWidth: "100%"
161
+ })), /*#__PURE__*/_react["default"].createElement("div", {
162
+ className: "right-img"
163
+ }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
164
+ data: data.groupSource[1].image,
165
+ maxWidth: "100%"
166
+ }), /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
167
+ data: data.groupSource[2].image,
168
+ maxWidth: "100%"
169
+ }))), data.customize.layout.h5Layout === 'layout4' && /*#__PURE__*/_react["default"].createElement("div", {
170
+ className: "fluid-content"
171
+ }, /*#__PURE__*/_react["default"].createElement("div", {
172
+ className: "left-img"
173
+ }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
174
+ data: data.groupSource[0].image,
175
+ maxWidth: "100%"
176
+ }), /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
177
+ data: data.groupSource[1].image,
178
+ maxWidth: "100%"
179
+ })), /*#__PURE__*/_react["default"].createElement("div", {
180
+ className: "right-img"
181
+ }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
182
+ data: data.groupSource[2].image,
183
+ maxWidth: "100%"
184
+ }))));
154
185
  };
155
186
 
156
187
  ImageGalleryMobile.defaultProps = {
@@ -16,3 +16,18 @@
16
16
  align-items: center;
17
17
  justify-content: center;
18
18
  }
19
+ .m-image-gallery-mobile .fluid-content {
20
+ display: flex;
21
+ }
22
+ .m-image-gallery-mobile .fluid-content > div {
23
+ width: calc((100% - 0.4rem) / 2);
24
+ }
25
+ .m-image-gallery-mobile .fluid-content .left-img > div:nth-child(2) {
26
+ margin-top: 0.2rem;
27
+ }
28
+ .m-image-gallery-mobile .fluid-content .right-img {
29
+ margin-left: 0.4rem;
30
+ }
31
+ .m-image-gallery-mobile .fluid-content .right-img > div:nth-child(2) {
32
+ margin-top: 0.2rem;
33
+ }
@@ -202,6 +202,7 @@ var getDefaultJSON = function getDefaultJSON() {
202
202
  groupSource: [videoGroupSourceJSON(id)],
203
203
  pcHeight: 600,
204
204
  mobileHeight: 212,
205
+ arc: 0,
205
206
  share: {
206
207
  open: false,
207
208
  image: '',
@@ -124,7 +124,8 @@ function (_super) {
124
124
  key: group.id,
125
125
  className: "video-item-wrap",
126
126
  style: (0, _commonUtil.pxToRem)({
127
- height: data.mobileHeight
127
+ height: data.mobileHeight,
128
+ borderRadius: data.arc
128
129
  })
129
130
  }, /*#__PURE__*/_react["default"].createElement(_common.Video, {
130
131
  ref: function ref(el) {
@@ -6,6 +6,7 @@
6
6
  height: 4.24rem;
7
7
  position: relative;
8
8
  margin-bottom: 0.2rem;
9
+ overflow: hidden;
9
10
  }
10
11
  .video-layout1-wrap .video-item-wrap:last-child {
11
12
  margin-bottom: 0;
@@ -156,7 +156,8 @@ function (_super) {
156
156
  key: group.id,
157
157
  className: "video-item-wrap",
158
158
  style: (0, _commonUtil.pxToRem)({
159
- height: data.mobileHeight
159
+ height: data.mobileHeight,
160
+ borderRadius: data.arc
160
161
  })
161
162
  }, /*#__PURE__*/_react["default"].createElement(_common.Video, {
162
163
  ref: function ref(el) {
@@ -22,6 +22,7 @@
22
22
  position: relative;
23
23
  width: 100%;
24
24
  flex-shrink: 0;
25
+ overflow: hidden;
25
26
  }
26
27
  .video-layout2-wrap .slider-wrap .video-item-wrap:last-child {
27
28
  margin-bottom: 0;
@@ -126,7 +126,8 @@ function (_super) {
126
126
  key: group.id,
127
127
  className: "video-item-wrap",
128
128
  style: (0, _commonUtil.pxToRem)({
129
- height: data.mobileHeight
129
+ height: data.mobileHeight,
130
+ borderRadius: data.arc
130
131
  })
131
132
  }, /*#__PURE__*/_react["default"].createElement(_common.Video, {
132
133
  ref: function ref(el) {
@@ -17,6 +17,7 @@
17
17
  .video-layout3-wrap .video-item-wrap {
18
18
  height: 4.24rem;
19
19
  position: relative;
20
+ overflow: hidden;
20
21
  }
21
22
  .video-layout3-wrap .video-item-wrap:last-child {
22
23
  margin-bottom: 0;
@@ -123,7 +123,8 @@ function (_super) {
123
123
  key: group.id,
124
124
  className: "video-item-wrap",
125
125
  style: {
126
- height: data.pcHeight
126
+ height: data.pcHeight,
127
+ borderRadius: data.arc
127
128
  }
128
129
  }, /*#__PURE__*/_react["default"].createElement(_common.Video, {
129
130
  ref: function ref(el) {
@@ -16,6 +16,7 @@
16
16
  height: 792px;
17
17
  position: relative;
18
18
  margin-bottom: 10px;
19
+ overflow: hidden;
19
20
 
20
21
  &:last-child {
21
22
  margin-bottom: 0;
@@ -128,7 +128,10 @@ function (_super) {
128
128
  }
129
129
  }, firstGroup && /*#__PURE__*/_react["default"].createElement("div", {
130
130
  key: firstGroup.id,
131
- className: "video-left-wrap"
131
+ className: "video-left-wrap",
132
+ style: {
133
+ borderRadius: data.arc
134
+ }
132
135
  }, /*#__PURE__*/_react["default"].createElement(_common.Video, {
133
136
  ref: function ref(el) {
134
137
  if (!_this.videoRefMap[firstGroup.id]) {
@@ -181,7 +184,10 @@ function (_super) {
181
184
  var isPlaying = !!((_a = _this.videoRefMap[group.id]) === null || _a === void 0 ? void 0 : _a.playing);
182
185
  return /*#__PURE__*/_react["default"].createElement("div", {
183
186
  key: group.id,
184
- className: "video-item-wrap"
187
+ className: "video-item-wrap",
188
+ style: {
189
+ borderRadius: data.arc
190
+ }
185
191
  }, /*#__PURE__*/_react["default"].createElement(_common.Video, {
186
192
  ref: function ref(el) {
187
193
  if (!_this.videoRefMap[group.id]) {
@@ -24,6 +24,7 @@
24
24
  height: 100%;
25
25
  position: relative;
26
26
  width: 50%;
27
+ overflow: hidden;
27
28
 
28
29
  .play-btn {
29
30
  position: absolute;
@@ -48,6 +49,7 @@
48
49
  flex-direction: column;
49
50
  flex: 1;
50
51
  width: 100%;
52
+ overflow: hidden;
51
53
 
52
54
  .play-btn {
53
55
  position: absolute;
@@ -133,7 +133,10 @@ function (_super) {
133
133
  var isPlaying = !!((_a = _this.videoRefMap[group.id]) === null || _a === void 0 ? void 0 : _a.playing);
134
134
  return /*#__PURE__*/_react["default"].createElement("div", {
135
135
  key: group.id,
136
- className: "video-item-wrap"
136
+ className: "video-item-wrap",
137
+ style: {
138
+ borderRadius: data.arc
139
+ }
137
140
  }, /*#__PURE__*/_react["default"].createElement(_common.Video, {
138
141
  ref: function ref(el) {
139
142
  if (!_this.videoRefMap[group.id]) {
@@ -17,6 +17,7 @@
17
17
  position: relative;
18
18
  flex: 1;
19
19
  margin-right: 20px;
20
+ overflow: hidden;
20
21
 
21
22
  &:last-child {
22
23
  margin-right: 0;
@@ -126,7 +126,8 @@ function (_super) {
126
126
  key: group.id,
127
127
  className: "video-item-wrap",
128
128
  style: {
129
- height: data.pcHeight
129
+ height: data.pcHeight,
130
+ borderRadius: data.arc
130
131
  }
131
132
  }, /*#__PURE__*/_react["default"].createElement(_common.Video, {
132
133
  ref: function ref(el) {
@@ -17,6 +17,7 @@
17
17
  height: 212px;
18
18
  position: relative;
19
19
  width: 440px;
20
+ overflow: hidden;
20
21
 
21
22
  &:last-child {
22
23
  margin-bottom: 0;
@@ -126,7 +126,8 @@ function (_super) {
126
126
  key: group.id,
127
127
  className: "video-item-wrap",
128
128
  style: {
129
- height: data.pcHeight
129
+ height: data.pcHeight,
130
+ borderRadius: data.arc
130
131
  }
131
132
  }, /*#__PURE__*/_react["default"].createElement(_common.Video, {
132
133
  ref: function ref(el) {
@@ -19,6 +19,7 @@
19
19
  position: relative;
20
20
  // margin-bottom: 10px;
21
21
  width: 440px;
22
+ overflow: hidden;
22
23
 
23
24
  .play-btn {
24
25
  position: absolute;
@@ -131,6 +131,7 @@ function (_super) {
131
131
  })), /*#__PURE__*/_react["default"].createElement("div", {
132
132
  className: "btn_wrap"
133
133
  }, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
134
+ disabled: source.length >= 3,
134
135
  icon: "icon-add",
135
136
  onClick: this.onAddClick,
136
137
  type: "primary"
@@ -58,7 +58,7 @@ function ImageGalleryConfig(props) {
58
58
  component: "imageGallery",
59
59
  data: data.customize,
60
60
  isHideAlign: true,
61
- layoutSource: _layout.imageGalleryLayout,
61
+ layoutSource: (0, _coreUtil.isPc)() ? _layout.imageGalleryPcLayout : _layout.imageGalleryLayout,
62
62
  selectedLayoutFun: function selectedLayoutFun(v) {
63
63
  return getLayout(v);
64
64
  }
@@ -128,6 +128,18 @@ function (_super) {
128
128
  },
129
129
  unit: "px",
130
130
  value: data[(0, _coreUtil.isPc)() ? 'pcHeight' : 'mobileHeight']
131
+ })), /*#__PURE__*/_react["default"].createElement(_common.Field, {
132
+ title: "Arc"
133
+ }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
134
+ onChange: function onChange(_a) {
135
+ var count = _a.count;
136
+ data.arc = count;
137
+
138
+ _this.selfRender();
139
+ },
140
+ value: {
141
+ count: data.arc
142
+ }
131
143
  })))
132
144
  }, {
133
145
  key: 'Spacing',
@@ -49,47 +49,34 @@ function (_super) {
49
49
  __extends(BackgroundConfig, _super);
50
50
 
51
51
  function BackgroundConfig() {
52
- var _this = _super !== null && _super.apply(this, arguments) || this;
53
-
54
- _this.state = {};
55
- return _this;
52
+ return _super !== null && _super.apply(this, arguments) || this;
56
53
  }
57
54
 
58
55
  BackgroundConfig.prototype.render = function () {
59
56
  var _this = this;
60
57
 
61
- var _a, _b, _c, _d, _e;
62
-
63
- var _f = this.props,
64
- data = _f.data,
65
- component = _f.component;
66
-
67
- if (!data.tabBackground) {
68
- data.tabBackground = {
69
- opacity: 100,
70
- color: '#232F46',
71
- image: '',
72
- tabBgType: 'color'
73
- };
74
- }
75
-
58
+ var _a = this.props,
59
+ data = _a.data,
60
+ name = _a.name,
61
+ type = _a.type;
76
62
  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
77
- title: component === 'recommend' ? (0, _locale.i18n)('PRODUCT_BACKGROUND') : (0, _locale.i18n)('BACKGROUND')
78
- }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
63
+ title: name
64
+ }, type === 'all' && /*#__PURE__*/_react["default"].createElement(_antd.Select, {
79
65
  onChange: function onChange(bgType) {
80
66
  data.bgType = bgType;
67
+ data.tabBgType = bgType;
81
68
 
82
69
  _this.selfRender();
83
70
  },
84
71
  style: {
85
72
  marginBottom: '15px'
86
73
  },
87
- value: data.bgType
74
+ value: data.bgType || data.tabBgType
88
75
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
89
76
  value: "color"
90
77
  }, (0, _locale.i18n)('COLOR')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
91
78
  value: "image"
92
- }, (0, _locale.i18n)('IMAGE'))), data.bgType === 'color' ? /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
79
+ }, (0, _locale.i18n)('IMAGE'))), (type === 'color' || data.bgType === 'color' || data.tabBgType === 'color') && /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
93
80
  colorType: "rgba",
94
81
  onChange: function onChange(v) {
95
82
  data.opacity = 1;
@@ -98,7 +85,7 @@ function (_super) {
98
85
  _this.selfRender();
99
86
  },
100
87
  value: data.color
101
- }) : /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
88
+ }), (type === 'image' || data.bgType === 'image' || data.tabBgType === 'image') && /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
102
89
  imageSelectedWay: data.imageSelectedWay || {
103
90
  pc: '',
104
91
  mobile: ''
@@ -115,48 +102,6 @@ function (_super) {
115
102
  _this.selfRender();
116
103
  },
117
104
  value: data.image
118
- })), component === 'recommend' && /*#__PURE__*/_react["default"].createElement(_common.Field, {
119
- title: (0, _locale.i18n)('TAB_BACKGROUND')
120
- }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
121
- onChange: function onChange(tabBgType) {
122
- data.tabBackground.tabBgType = tabBgType;
123
-
124
- _this.selfRender();
125
- },
126
- style: {
127
- marginBottom: '15px'
128
- },
129
- value: (_a = data.tabBackground) === null || _a === void 0 ? void 0 : _a.tabBgType
130
- }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
131
- value: "color"
132
- }, (0, _locale.i18n)('COLOR')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
133
- value: "image"
134
- }, (0, _locale.i18n)('IMAGE'))), ((_b = data.tabBackground) === null || _b === void 0 ? void 0 : _b.tabBgType) === 'color' ? /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
135
- colorType: "rgba",
136
- onChange: function onChange(v) {
137
- data.tabBackground.opacity = 1;
138
- data.tabBackground.color = v;
139
-
140
- _this.selfRender();
141
- },
142
- value: (_c = data.tabBackground) === null || _c === void 0 ? void 0 : _c.color
143
- }) : /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
144
- imageSelectedWay: ((_d = data.tabBackground) === null || _d === void 0 ? void 0 : _d.imageSelectedWay) || {
145
- pc: '',
146
- mobile: ''
147
- },
148
- onChange: function onChange(v, way) {
149
- if (v) {
150
- data.tabBackground.image = v.url;
151
- }
152
-
153
- if (way) {
154
- data.tabBackground.imageSelectedWay = way;
155
- }
156
-
157
- _this.selfRender();
158
- },
159
- value: (_e = data.tabBackground) === null || _e === void 0 ? void 0 : _e.image
160
105
  })));
161
106
  };
162
107
 
@@ -166,13 +111,10 @@ function (_super) {
166
111
  color: '#232F46',
167
112
  image: '',
168
113
  bgType: 'color',
169
- tabBackground: {
170
- opacity: 100,
171
- color: '#232F46',
172
- image: '',
173
- tabBgType: 'color'
174
- }
175
- }
114
+ tabBgType: 'color'
115
+ },
116
+ name: (0, _locale.i18n)('BACKGROUND'),
117
+ type: 'all'
176
118
  };
177
119
  return BackgroundConfig;
178
120
  }(_BaseConfig["default"]);