@fonixtree/magic-design 0.0.104 → 0.0.106

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 (435) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +12 -28
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +12 -28
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  4. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  6. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  8. package/es/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
  9. package/es/assets/less/button.less +0 -23
  10. package/es/assets/less/common.less +2 -2
  11. package/es/assets/less/index.less +1 -2
  12. package/es/assets/less/modal.less +2 -7
  13. package/es/common/Button/index.js +1 -2
  14. package/es/common/Button/index.less +0 -5
  15. package/es/common/ButtonIconLayout/index.less +2 -4
  16. package/es/common/Collapse/index.js +4 -14
  17. package/es/common/FontStyles/index.less +1 -1
  18. package/es/common/GroupList/index.js +3 -4
  19. package/es/common/ImageModal/index.js +26 -31
  20. package/es/common/ImageModal/index.less +1 -6
  21. package/es/common/LinkModal/BundleCampaign/index.js +17 -17
  22. package/es/common/LinkModal/CustomTable/index.js +2 -3
  23. package/es/common/LinkModal/FilteredProductModal/index.js +7 -7
  24. package/es/common/LinkModal/FilteredProductModal/index.less +3 -2
  25. package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
  26. package/es/common/LinkModal/index.less +1 -1
  27. package/es/common/ProductModal/index.js +1 -1
  28. package/es/common/ProductModal/index.less +7 -12
  29. package/es/common/UrlPicker/index.js +2 -6
  30. package/es/common/UrlPicker/index.less +1 -12
  31. package/es/common/index.js +0 -16
  32. package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
  33. package/es/composite-comp/bol/components/Banner/mobile/index.js +11 -48
  34. package/es/composite-comp/bol/components/Banner/pc/index.js +20 -50
  35. package/es/composite-comp/bol/components/Button/defaultJSON.js +70 -40
  36. package/es/composite-comp/bol/components/Button/index.js +14 -8
  37. package/es/composite-comp/bol/components/Button/index.less +9 -9
  38. package/es/composite-comp/bol/components/Carousel/defaultJSON.js +20 -16
  39. package/es/composite-comp/bol/components/Carousel/index.js +6 -1
  40. package/es/composite-comp/bol/components/Carousel/mobile/index.js +38 -58
  41. package/es/composite-comp/bol/components/Carousel/mobile/index.less +9 -22
  42. package/es/composite-comp/bol/components/Carousel/pc/index.js +34 -67
  43. package/es/composite-comp/bol/components/Carousel/pc/index.less +16 -29
  44. package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +10 -19
  45. package/es/composite-comp/bol/components/ImageGallery/index.js +1 -5
  46. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +15 -77
  47. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +66 -15
  48. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +179 -57
  49. package/es/composite-comp/bol/components/ImageText/mobile/index.js +5 -3
  50. package/es/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
  51. package/es/composite-comp/bol/components/ImageText/pc/index.js +18 -46
  52. package/es/composite-comp/bol/components/ImageText/pc/index.less +0 -2
  53. package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +3 -3
  54. package/es/composite-comp/bol/components/Newsletter/index.js +8 -16
  55. package/es/composite-comp/bol/components/Newsletter/index.less +1 -1
  56. package/es/composite-comp/bol/components/Tag/defaultJSON.js +48 -38
  57. package/es/composite-comp/bol/components/Tag/index.js +14 -8
  58. package/es/composite-comp/bol/components/Tag/index.less +0 -1
  59. package/es/composite-comp/bol/components/Text/defaultJSON.js +7 -5
  60. package/es/composite-comp/bol/components/Text/index.js +8 -4
  61. package/es/composite-comp/bol/components/Text/index.less +3 -3
  62. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +1 -3
  63. package/{lib/composite-comp/bol/second-config-panels/TagSecondConfig → es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent}/index.js +38 -40
  64. package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
  65. package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
  66. package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  67. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +2 -4
  68. package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -1
  69. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +2 -4
  70. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +4 -20
  71. package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +1 -3
  72. package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +1 -2
  73. package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -6
  74. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +17 -9
  75. package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -7
  76. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +1 -3
  77. package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  78. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +13 -8
  79. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +17 -6
  80. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +5 -10
  81. package/es/composite-comp/common/components/ImageLabel/index.less +0 -1
  82. package/es/composite-comp/common/components/ProductItem/index.js +6 -26
  83. package/es/composite-comp/common/components/ProductItem/index.less +10 -11
  84. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +25 -52
  85. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +29 -40
  86. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +8 -67
  87. package/es/composite-comp/dito/components/FlashDeal/index.js +1 -5
  88. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +38 -24
  89. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -1
  90. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -5
  91. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +3 -13
  92. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +2 -3
  93. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +15 -33
  94. package/es/composite-comp/dito/components/Recommend/index.js +6 -5
  95. package/es/composite-comp/dito/components/Recommend/mobile/index.js +72 -93
  96. package/es/composite-comp/dito/components/Recommend/mobile/index.less +2 -11
  97. package/es/composite-comp/dito/components/Recommend/pc/index.js +53 -184
  98. package/es/composite-comp/dito/components/Recommend/pc/index.less +12 -56
  99. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +20 -49
  100. package/es/composite-comp/dito/components/SearchBar/index.js +2 -7
  101. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +26 -31
  102. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +3 -15
  103. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +6 -16
  104. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -20
  105. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +2 -11
  106. package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +1 -3
  107. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
  108. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -18
  109. package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +51 -16
  110. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +29 -39
  111. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +49 -80
  112. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +1 -13
  113. package/es/constants/component-types.js +3 -15
  114. package/es/constants/index.js +2 -21
  115. package/es/constants/layout.js +14 -35
  116. package/es/core/Designer/CompListPanel/CompCard/index.js +1 -3
  117. package/es/core/Designer/CompListPanel/index.js +36 -11
  118. package/es/core/Designer/ConfigPanel/index.js +23 -73
  119. package/es/core/Designer/ConfigPanel/index.less +0 -4
  120. package/es/core/Designer/History/index.js +28 -34
  121. package/es/core/Designer/PageCompList/index.js +8 -44
  122. package/es/core/Designer/PageCompList/index.less +10 -10
  123. package/es/core/Designer/QuickMenuBar/index.js +4 -38
  124. package/es/core/Designer/QuickMenuBar/index.less +0 -34
  125. package/es/core/Designer/ViewArea/index.js +8 -48
  126. package/es/core/Designer/ViewArea/index.less +4 -40
  127. package/es/core/Designer/index.js +41 -93
  128. package/es/core/Renderer/index.js +5 -23
  129. package/es/decorator/compositeDecorator.js +17 -147
  130. package/es/decorator/index.js +0 -8
  131. package/es/decorator/metaDecorator.js +8 -41
  132. package/es/locale/en/en.json +3 -21
  133. package/es/locale/es/es.json +1 -19
  134. package/es/locale/id/id.json +3 -21
  135. package/es/meta-comp/components/Button/index.js +33 -14
  136. package/es/meta-comp/components/Button/index.less +2 -3
  137. package/es/meta-comp/components/Image/index.js +8 -47
  138. package/es/meta-comp/components/Image/index.less +3 -7
  139. package/es/meta-comp/components/Text/index.js +11 -38
  140. package/es/meta-comp/config-panels/BaseConfig.js +10 -8
  141. package/es/meta-comp/config-panels/ButtonConfig/index.js +3 -2
  142. package/es/meta-comp/config-panels/ImageConfig/index.js +4 -17
  143. package/es/meta-comp/config-panels/TextConfig/index.js +7 -16
  144. package/es/mobx/Store.js +10 -9
  145. package/es/mobx/index.js +3 -9
  146. package/es/utils/businessUtil.js +3 -3
  147. package/es/utils/coreUtil.js +2 -15
  148. package/lib/assets/fonts/magic-box-iconfont.css +12 -28
  149. package/lib/assets/fonts/magic-box-iconfont.css.bak +12 -28
  150. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  151. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  152. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  153. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  154. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  155. package/lib/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
  156. package/lib/assets/less/button.less +0 -23
  157. package/lib/assets/less/common.less +2 -2
  158. package/lib/assets/less/index.less +1 -2
  159. package/lib/assets/less/modal.less +2 -7
  160. package/lib/common/Button/index.js +1 -2
  161. package/lib/common/Button/index.less +0 -5
  162. package/lib/common/ButtonIconLayout/index.less +2 -4
  163. package/lib/common/Collapse/index.js +4 -14
  164. package/lib/common/FontStyles/index.less +1 -1
  165. package/lib/common/GroupList/index.js +3 -4
  166. package/lib/common/ImageModal/index.js +26 -31
  167. package/lib/common/ImageModal/index.less +1 -6
  168. package/lib/common/LinkModal/BundleCampaign/index.js +17 -17
  169. package/lib/common/LinkModal/CustomTable/index.js +2 -3
  170. package/lib/common/LinkModal/FilteredProductModal/index.js +7 -7
  171. package/lib/common/LinkModal/FilteredProductModal/index.less +3 -2
  172. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  173. package/lib/common/LinkModal/index.less +1 -1
  174. package/lib/common/ProductModal/index.js +1 -1
  175. package/lib/common/ProductModal/index.less +7 -12
  176. package/lib/common/UrlPicker/index.js +2 -6
  177. package/lib/common/UrlPicker/index.less +1 -12
  178. package/lib/common/index.js +0 -16
  179. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
  180. package/lib/composite-comp/bol/components/Banner/mobile/index.js +11 -48
  181. package/lib/composite-comp/bol/components/Banner/pc/index.js +20 -50
  182. package/lib/composite-comp/bol/components/Button/defaultJSON.js +70 -40
  183. package/lib/composite-comp/bol/components/Button/index.js +14 -8
  184. package/lib/composite-comp/bol/components/Button/index.less +9 -9
  185. package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +20 -16
  186. package/lib/composite-comp/bol/components/Carousel/index.js +6 -1
  187. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +38 -58
  188. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +9 -22
  189. package/lib/composite-comp/bol/components/Carousel/pc/index.js +34 -67
  190. package/lib/composite-comp/bol/components/Carousel/pc/index.less +16 -29
  191. package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +10 -19
  192. package/lib/composite-comp/bol/components/ImageGallery/index.js +1 -5
  193. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +15 -77
  194. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +66 -15
  195. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +179 -57
  196. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +5 -3
  197. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
  198. package/lib/composite-comp/bol/components/ImageText/pc/index.js +18 -46
  199. package/lib/composite-comp/bol/components/ImageText/pc/index.less +0 -2
  200. package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +3 -3
  201. package/lib/composite-comp/bol/components/Newsletter/index.js +8 -16
  202. package/lib/composite-comp/bol/components/Newsletter/index.less +1 -1
  203. package/lib/composite-comp/bol/components/Tag/defaultJSON.js +48 -38
  204. package/lib/composite-comp/bol/components/Tag/index.js +14 -8
  205. package/lib/composite-comp/bol/components/Tag/index.less +0 -1
  206. package/lib/composite-comp/bol/components/Text/defaultJSON.js +7 -5
  207. package/lib/composite-comp/bol/components/Text/index.js +8 -4
  208. package/lib/composite-comp/bol/components/Text/index.less +3 -3
  209. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +1 -3
  210. package/{es/composite-comp/bol/second-config-panels/TagSecondConfig → lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent}/index.js +38 -40
  211. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
  212. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
  213. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  214. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +2 -4
  215. package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -1
  216. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +2 -4
  217. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +4 -20
  218. package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +1 -3
  219. package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +1 -2
  220. package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -6
  221. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +17 -9
  222. package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -7
  223. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +1 -3
  224. package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  225. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +13 -8
  226. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +17 -6
  227. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +5 -10
  228. package/lib/composite-comp/common/components/ImageLabel/index.less +0 -1
  229. package/lib/composite-comp/common/components/ProductItem/index.js +6 -26
  230. package/lib/composite-comp/common/components/ProductItem/index.less +10 -11
  231. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +25 -52
  232. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +29 -40
  233. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +8 -67
  234. package/lib/composite-comp/dito/components/FlashDeal/index.js +1 -5
  235. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +38 -24
  236. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -1
  237. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -5
  238. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +3 -13
  239. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +2 -3
  240. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +15 -33
  241. package/lib/composite-comp/dito/components/Recommend/index.js +6 -5
  242. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +72 -93
  243. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +2 -11
  244. package/lib/composite-comp/dito/components/Recommend/pc/index.js +53 -184
  245. package/lib/composite-comp/dito/components/Recommend/pc/index.less +12 -56
  246. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +20 -49
  247. package/lib/composite-comp/dito/components/SearchBar/index.js +2 -7
  248. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +26 -31
  249. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +3 -15
  250. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +6 -16
  251. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -20
  252. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +2 -11
  253. package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +1 -3
  254. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
  255. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -18
  256. package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +51 -16
  257. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +29 -39
  258. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +49 -80
  259. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +1 -13
  260. package/lib/constants/component-types.js +3 -15
  261. package/lib/constants/index.js +2 -21
  262. package/lib/constants/layout.js +14 -35
  263. package/lib/core/Designer/CompListPanel/CompCard/index.js +1 -3
  264. package/lib/core/Designer/CompListPanel/index.js +36 -11
  265. package/lib/core/Designer/ConfigPanel/index.js +23 -73
  266. package/lib/core/Designer/ConfigPanel/index.less +0 -4
  267. package/lib/core/Designer/History/index.js +28 -34
  268. package/lib/core/Designer/PageCompList/index.js +8 -44
  269. package/lib/core/Designer/PageCompList/index.less +10 -10
  270. package/lib/core/Designer/QuickMenuBar/index.js +4 -38
  271. package/lib/core/Designer/QuickMenuBar/index.less +0 -34
  272. package/lib/core/Designer/ViewArea/index.js +8 -48
  273. package/lib/core/Designer/ViewArea/index.less +4 -40
  274. package/lib/core/Designer/index.js +41 -93
  275. package/lib/core/Renderer/index.js +5 -23
  276. package/lib/decorator/compositeDecorator.js +17 -147
  277. package/lib/decorator/index.js +0 -8
  278. package/lib/decorator/metaDecorator.js +8 -41
  279. package/lib/locale/en/en.json +3 -21
  280. package/lib/locale/es/es.json +1 -19
  281. package/lib/locale/id/id.json +3 -21
  282. package/lib/meta-comp/components/Button/index.js +33 -14
  283. package/lib/meta-comp/components/Button/index.less +2 -3
  284. package/lib/meta-comp/components/Image/index.js +8 -47
  285. package/lib/meta-comp/components/Image/index.less +3 -7
  286. package/lib/meta-comp/components/Text/index.js +11 -38
  287. package/lib/meta-comp/config-panels/BaseConfig.js +10 -8
  288. package/lib/meta-comp/config-panels/ButtonConfig/index.js +3 -2
  289. package/lib/meta-comp/config-panels/ImageConfig/index.js +4 -17
  290. package/lib/meta-comp/config-panels/TextConfig/index.js +7 -16
  291. package/lib/mobx/Store.js +10 -9
  292. package/lib/mobx/index.js +3 -9
  293. package/lib/utils/businessUtil.js +3 -3
  294. package/lib/utils/coreUtil.js +2 -15
  295. package/package.json +3 -5
  296. package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
  297. package/es/assets/less/datepicker.less +0 -11
  298. package/es/common/ImgArea/components/Crop.js +0 -267
  299. package/es/common/ImgArea/components/Icons.js +0 -44
  300. package/es/common/ImgArea/components/MultiCrops.js +0 -210
  301. package/es/common/ImgArea/index.js +0 -11
  302. package/es/common/MagicLink/index.js +0 -89
  303. package/es/common/MagicLink/index.less +0 -0
  304. package/es/common/SystemNotification/Confirm/index.js +0 -263
  305. package/es/common/SystemNotification/Confirm/index.less +0 -33
  306. package/es/common/SystemNotification/index.js +0 -115
  307. package/es/composite-comp/bol/components/Carousel/imgs/pcDefImg1.png +0 -0
  308. package/es/composite-comp/bol/components/ImageGallery/imgs/defImg1.png +0 -0
  309. package/es/composite-comp/bol/components/ImageGallery/imgs/defImg2.png +0 -0
  310. package/es/composite-comp/bol/components/ImageGallery/imgs/defImg3.png +0 -0
  311. package/es/composite-comp/bol/components/ImageGallery/imgs/defImg4.png +0 -0
  312. package/es/composite-comp/bol/components/ImageGallery/imgs/defImg5.png +0 -0
  313. package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg1.png +0 -0
  314. package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg2.png +0 -0
  315. package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg3.png +0 -0
  316. package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg4.png +0 -0
  317. package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg5.png +0 -0
  318. package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg6.png +0 -0
  319. package/es/composite-comp/bol/components/ImageGallery/pc/index.js +0 -166
  320. package/es/composite-comp/bol/components/ImageGallery/pc/index.less +0 -23
  321. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -143
  322. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +0 -16
  323. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +0 -143
  324. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +0 -16
  325. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +0 -103
  326. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +0 -3
  327. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +0 -8
  328. package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +0 -3
  329. package/es/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg.png +0 -0
  330. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg.png +0 -0
  331. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  332. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  333. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  334. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +0 -567
  335. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +0 -122
  336. package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -136
  337. package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +0 -6
  338. package/es/composite-comp/dito/components/PcNavigation/index.js +0 -85
  339. package/es/composite-comp/dito/components/PcNavigation/pc/index.js +0 -482
  340. package/es/composite-comp/dito/components/PcNavigation/pc/index.less +0 -107
  341. package/es/composite-comp/dito/components/SearchBar/imgs/xt-logo.png +0 -0
  342. package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -149
  343. package/es/composite-comp/dito/components/SearchBar/pc/index.less +0 -60
  344. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -129
  345. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +0 -128
  346. package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +0 -222
  347. package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -194
  348. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +0 -140
  349. package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
  350. package/es/core/Designer/AppointmentModal/index.js +0 -87
  351. package/es/core/Designer/AppointmentModal/index.less +0 -23
  352. package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +0 -73
  353. package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +0 -29
  354. package/es/decorator/updateConfigDecorator.js +0 -76
  355. package/es/meta-comp/components/Button/editable.js +0 -114
  356. package/es/meta-comp/components/Button/editable.less +0 -6
  357. package/es/meta-comp/components/Image/image/h5DefImg.png +0 -0
  358. package/es/meta-comp/components/Image/image/h5Img.png +0 -0
  359. package/es/meta-comp/components/Image/image/pcDefImg.png +0 -0
  360. package/es/meta-comp/components/Image/image/pcImg.png +0 -0
  361. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +0 -164
  362. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +0 -26
  363. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +0 -133
  364. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +0 -17
  365. package/es/mobx/Frame.js +0 -64
  366. package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
  367. package/lib/assets/less/datepicker.less +0 -11
  368. package/lib/common/ImgArea/components/Crop.js +0 -267
  369. package/lib/common/ImgArea/components/Icons.js +0 -44
  370. package/lib/common/ImgArea/components/MultiCrops.js +0 -210
  371. package/lib/common/ImgArea/index.js +0 -11
  372. package/lib/common/MagicLink/index.js +0 -89
  373. package/lib/common/MagicLink/index.less +0 -0
  374. package/lib/common/SystemNotification/Confirm/index.js +0 -263
  375. package/lib/common/SystemNotification/Confirm/index.less +0 -33
  376. package/lib/common/SystemNotification/index.js +0 -115
  377. package/lib/composite-comp/bol/components/Carousel/imgs/pcDefImg1.png +0 -0
  378. package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg1.png +0 -0
  379. package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg2.png +0 -0
  380. package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg3.png +0 -0
  381. package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg4.png +0 -0
  382. package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg5.png +0 -0
  383. package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg1.png +0 -0
  384. package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg2.png +0 -0
  385. package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg3.png +0 -0
  386. package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg4.png +0 -0
  387. package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg5.png +0 -0
  388. package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg6.png +0 -0
  389. package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +0 -166
  390. package/lib/composite-comp/bol/components/ImageGallery/pc/index.less +0 -23
  391. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -143
  392. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +0 -16
  393. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +0 -143
  394. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +0 -16
  395. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +0 -103
  396. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +0 -3
  397. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +0 -8
  398. package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +0 -3
  399. package/lib/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg.png +0 -0
  400. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg.png +0 -0
  401. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  402. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  403. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  404. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +0 -567
  405. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +0 -122
  406. package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -136
  407. package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +0 -6
  408. package/lib/composite-comp/dito/components/PcNavigation/index.js +0 -85
  409. package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +0 -482
  410. package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +0 -107
  411. package/lib/composite-comp/dito/components/SearchBar/imgs/xt-logo.png +0 -0
  412. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -149
  413. package/lib/composite-comp/dito/components/SearchBar/pc/index.less +0 -60
  414. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -129
  415. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +0 -128
  416. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +0 -222
  417. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -194
  418. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +0 -140
  419. package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
  420. package/lib/core/Designer/AppointmentModal/index.js +0 -87
  421. package/lib/core/Designer/AppointmentModal/index.less +0 -23
  422. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +0 -73
  423. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +0 -29
  424. package/lib/decorator/updateConfigDecorator.js +0 -76
  425. package/lib/meta-comp/components/Button/editable.js +0 -114
  426. package/lib/meta-comp/components/Button/editable.less +0 -6
  427. package/lib/meta-comp/components/Image/image/h5DefImg.png +0 -0
  428. package/lib/meta-comp/components/Image/image/h5Img.png +0 -0
  429. package/lib/meta-comp/components/Image/image/pcDefImg.png +0 -0
  430. package/lib/meta-comp/components/Image/image/pcImg.png +0 -0
  431. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +0 -164
  432. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +0 -26
  433. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +0 -133
  434. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +0 -17
  435. package/lib/mobx/Frame.js +0 -64
@@ -13,10 +13,6 @@ require("./index.less");
13
13
 
14
14
  var _classnames = _interopRequireDefault(require("classnames"));
15
15
 
16
- var _lodash = require("lodash");
17
-
18
- var _lodash2 = _interopRequireDefault(require("lodash.throttle"));
19
-
20
16
  var _mobx = require("../../../../../mobx");
21
17
 
22
18
  var _ProductItem = _interopRequireDefault(require("../../../../common/components/ProductItem"));
@@ -29,8 +25,6 @@ var _commonUtil = require("../../../../../utils/commonUtil");
29
25
 
30
26
  var _coreUtil = require("../../../../../utils/coreUtil");
31
27
 
32
- var _Iconfont = _interopRequireDefault(require("../../../../../common/Iconfont"));
33
-
34
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
35
29
 
36
30
  var __extends = void 0 && (void 0).__extends || function () {
@@ -234,24 +228,16 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
234
228
 
235
229
  var LAYOUT_IMAGE_SIZE = {
236
230
  layout1: {
237
- w: '100%',
238
- h: ''
231
+ w: 180,
232
+ h: 180
239
233
  },
240
- layout2_col6: {
234
+ layout2: {
241
235
  w: 160,
242
236
  h: 160
243
237
  },
244
- layout2_col5: {
245
- w: 200,
246
- h: 200
247
- },
248
- layout3_col6: {
249
- w: 160,
250
- h: 160
251
- },
252
- layout3_col5: {
253
- w: 200,
254
- h: 200
238
+ layout3: {
239
+ w: 180,
240
+ h: 180
255
241
  }
256
242
  };
257
243
 
@@ -265,42 +251,17 @@ function (_super) {
265
251
 
266
252
  _this.preData = {};
267
253
  _this.preLayout = '';
268
- _this.preContent = '';
269
- _this.preSpacing = '';
270
254
  _this._cache = (0, _coreUtil.isDesignMode)() ? {} : (0, _commonUtil.ensure)(function () {
271
255
  return (0, _storeUtil.getMagicStore)("recommend_" + _this.props.panelProps.id);
272
256
  }, {});
273
- _this.scrollRef = /*#__PURE__*/_react["default"].createRef();
274
257
  _this.state = __assign({
275
- contentWidth: 0,
276
258
  tabIndex: 0,
277
259
  tabLeft: 0,
278
260
  tabWidth: 0,
279
261
  groupSource: [],
280
- hideTabs: false,
281
- scrollToLeftDisabled: true,
282
- scrollToRightDisabled: true
262
+ hideTabs: false
283
263
  }, _this._cache);
284
264
 
285
- _this.listenWidth = function () {
286
- setTimeout(function () {
287
- var renderContainer = document.querySelector(".macyContainer_" + _this.props.panelProps.id);
288
- if (renderContainer) _this.setState({
289
- contentWidth: renderContainer.offsetWidth
290
- });
291
- });
292
- };
293
-
294
- _this.setScrollDisabled = function (scrollDom) {
295
- var scrollToLeftDisabled = scrollDom.scrollLeft === 0;
296
- var scrollToRightDisabled = scrollDom.clientWidth + scrollDom.scrollLeft >= scrollDom.scrollWidth;
297
-
298
- _this.setState({
299
- scrollToLeftDisabled: scrollToLeftDisabled,
300
- scrollToRightDisabled: scrollToRightDisabled
301
- });
302
- };
303
-
304
265
  _this.initTab = function (index, hideTabs) {
305
266
  var selectedTabDom = document.querySelector(".tab-select-wrap .tabTitle:nth-child(" + (index + 1) + ")");
306
267
  var tabLeft = 0;
@@ -361,11 +322,8 @@ function (_super) {
361
322
  _k.label = 1;
362
323
 
363
324
  case 1:
364
- _k.trys.push([1, 9,, 10]);
325
+ _k.trys.push([1, 7,, 8]);
365
326
 
366
- if (!(groupSource.length > 0)) return [3
367
- /*break*/
368
- , 7];
369
327
  if (!(sourceType === 'select')) return [3
370
328
  /*break*/
371
329
  , 3];
@@ -422,22 +380,13 @@ function (_super) {
422
380
  , 8];
423
381
 
424
382
  case 7:
425
- newData = [];
426
- _k.label = 8;
427
-
428
- case 8:
429
- return [3
430
- /*break*/
431
- , 10];
432
-
433
- case 9:
434
383
  e_1 = _k.sent();
435
384
  newData = [];
436
385
  return [3
437
386
  /*break*/
438
- , 10];
387
+ , 8];
439
388
 
440
- case 10:
389
+ case 8:
441
390
  if (!(0, _coreUtil.isDesignMode)()) {
442
391
  _cache = (0, _storeUtil.getMagicStore)("recommend_" + recommendId);
443
392
  (0, _storeUtil.setMagicStore)("recommend_" + recommendId, __assign(__assign({}, _cache), (_h = {}, _h["products" + index] = newData, _h.endTime = Date.now() + 3 * 60 * 1000, _h)));
@@ -458,8 +407,8 @@ function (_super) {
458
407
  var customize = _this.props.panelProps.customize;
459
408
  if (customize.layout.pcLayout !== 'layout1') return;
460
409
  setTimeout(function () {
461
- if (document.querySelector(".macyContainer_" + _this.props.panelProps.id)) {
462
- _this.getMacy(".macyContainer_" + _this.props.panelProps.id, customize.pcRowNum);
410
+ if (document.querySelector('.macyContainer')) {
411
+ _this.getMacy('.macyContainer', customize.pcRowNum);
463
412
  }
464
413
  });
465
414
  };
@@ -481,9 +430,28 @@ function (_super) {
481
430
  }, true);
482
431
  };
483
432
 
433
+ _this.getBackgroundStyle = function () {
434
+ var panelProps = _this.props.panelProps;
435
+ var bgStyle = {};
436
+
437
+ if (panelProps.background.bgType === 'color') {
438
+ bgStyle = {
439
+ backgroundColor: (0, _commonUtil.getColorRgba)(panelProps.background.color || '#fff', panelProps.background.opacity / 100 || 1)
440
+ };
441
+ } else {
442
+ bgStyle = {
443
+ background: "url(" + panelProps.background.image + ") no-repeat center",
444
+ backgroundSize: '100%'
445
+ };
446
+ }
447
+
448
+ return bgStyle;
449
+ };
450
+
484
451
  _this.onTabClick = function (e, index) {
485
452
  var tabIndex = _this.state.tabIndex;
486
- if (tabIndex === index) return; // e.currentTarget.scrollIntoView(false);
453
+ if (tabIndex === index) return;
454
+ e.currentTarget.scrollIntoView(false);
487
455
 
488
456
  _this.setState({
489
457
  tabIndex: index
@@ -494,34 +462,6 @@ function (_super) {
494
462
  });
495
463
 
496
464
  _this.getProductList(index);
497
-
498
- setTimeout(function () {
499
- var scrollDom = _this.scrollRef.current;
500
-
501
- if (scrollDom) {
502
- _this.setScrollDisabled(scrollDom);
503
-
504
- scrollDom.onscroll = (0, _lodash2["default"])(function () {
505
- _this.setScrollDisabled(scrollDom);
506
- }, 500);
507
- }
508
- }, 0);
509
- };
510
-
511
- _this.scrollToRight = function () {
512
- var scrollDom = _this.scrollRef.current;
513
-
514
- if (scrollDom.clientWidth + scrollDom.scrollLeft < scrollDom.scrollWidth) {
515
- scrollDom.scrollTo(scrollDom.scrollLeft + scrollDom.clientWidth, 0);
516
- }
517
- };
518
-
519
- _this.scrollToLeft = function () {
520
- var scrollDom = _this.scrollRef.current;
521
-
522
- if (scrollDom.scrollLeft > 0) {
523
- scrollDom.scrollTo(scrollDom.scrollLeft - scrollDom.clientWidth, 0);
524
- }
525
465
  };
526
466
 
527
467
  return _this;
@@ -543,30 +483,13 @@ function (_super) {
543
483
 
544
484
  _this.getProductList(0);
545
485
  });
546
- setTimeout(function () {
547
- var scrollDom = _this.scrollRef.current;
548
-
549
- if (scrollDom) {
550
- _this.setScrollDisabled(scrollDom);
551
-
552
- scrollDom.onscroll = (0, _lodash2["default"])(function () {
553
- _this.setScrollDisabled(scrollDom);
554
- }, 500);
555
- }
556
- }, 0);
557
- this.listenWidth();
558
- window.addEventListener('resize', (0, _lodash.debounce)(this.listenWidth));
559
- };
560
-
561
- RecommendMobile.prototype.componentWillUnmount = function () {
562
- window.removeEventListener('resize', this.listenWidth);
563
486
  };
564
487
 
565
- RecommendMobile.prototype.componentWillReceiveProps = function (nextProps) {
488
+ RecommendMobile.prototype.componentWillReceiveProps = function () {
566
489
  var _this = this;
567
490
 
568
491
  var tabIndex = this.state.tabIndex;
569
- var panelProps = nextProps.panelProps;
492
+ var panelProps = this.props.panelProps;
570
493
  var source = [];
571
494
  var hideTabs = false;
572
495
  panelProps.groupSource.map(function (m) {
@@ -574,8 +497,8 @@ function (_super) {
574
497
  if (show) source.push(m);
575
498
  });
576
499
 
577
- if (source.length === 0) {
578
- if (panelProps.groupSource.length > 0) source.push(panelProps.groupSource[0]);
500
+ if (source.length === 0 && panelProps.groupSource.length > 0) {
501
+ source.push(panelProps.groupSource[0]);
579
502
  hideTabs = true;
580
503
  }
581
504
 
@@ -601,37 +524,13 @@ function (_super) {
601
524
  hideTabs: hideTabs
602
525
  });
603
526
  });
604
- var curLayout = JSON.stringify(panelProps.customize);
527
+ var curLayout = panelProps.customize.layout.pcLayout;
605
528
 
606
529
  if (curLayout !== this.preLayout) {
607
530
  this.resetLayout();
608
- setTimeout(function () {
609
- var scrollDom = _this.scrollRef.current;
610
-
611
- if (scrollDom) {
612
- _this.setScrollDisabled(scrollDom);
613
-
614
- scrollDom.onscroll = (0, _lodash2["default"])(function () {
615
- _this.setScrollDisabled(scrollDom);
616
- }, 500);
617
- }
618
- }, 0);
619
531
  }
620
532
 
621
533
  this.preLayout = curLayout;
622
- var curContent = JSON.stringify(panelProps.content);
623
- var curSpacing = JSON.stringify(panelProps.spacing);
624
-
625
- if (curSpacing !== this.preSpacing) {
626
- this.listenWidth();
627
- }
628
-
629
- if (curContent !== this.preContent || curSpacing !== this.preSpacing) {
630
- this.resetLayout();
631
- }
632
-
633
- this.preContent = curContent;
634
- this.preSpacing = curSpacing;
635
534
  };
636
535
 
637
536
  RecommendMobile.prototype.render = function () {
@@ -643,27 +542,25 @@ function (_super) {
643
542
  tabLeft = _a.tabLeft,
644
543
  tabWidth = _a.tabWidth,
645
544
  groupSource = _a.groupSource,
646
- hideTabs = _a.hideTabs,
647
- scrollToLeftDisabled = _a.scrollToLeftDisabled,
648
- scrollToRightDisabled = _a.scrollToRightDisabled,
649
- contentWidth = _a.contentWidth;
545
+ hideTabs = _a.hideTabs;
546
+ var bgStyle = this.getBackgroundStyle();
650
547
  var products = this.state["products" + tabIndex] || [];
651
- var isDivide = groupSource.length <= 10;
548
+ var isDivide = groupSource.length <= 3;
652
549
  var layout = panelProps.customize.layout.pcLayout;
653
550
 
654
551
  var _seeAll = (0, _commonUtil.ensure)(function () {
655
552
  return groupSource[tabIndex].seeAll;
656
553
  }, '');
657
554
 
658
- var imgWidth = (0, _commonUtil.ensure)(function () {
659
- return layout === 'layout1' ? LAYOUT_IMAGE_SIZE[layout].w : LAYOUT_IMAGE_SIZE[layout + "_col" + panelProps.customize.pcRowNum].w;
660
- }, 140);
661
555
  var imgHeight = (0, _commonUtil.ensure)(function () {
662
- return layout === 'layout1' ? LAYOUT_IMAGE_SIZE[layout].h : LAYOUT_IMAGE_SIZE[layout + "_col" + panelProps.customize.pcRowNum].h;
556
+ return LAYOUT_IMAGE_SIZE[layout].h;
557
+ }, 140);
558
+ var imgWidth = (0, _commonUtil.ensure)(function () {
559
+ return LAYOUT_IMAGE_SIZE[layout].w;
663
560
  }, 140);
664
- if (layout === 'layout1' && contentWidth) imgHeight = (contentWidth - 12 * (panelProps.customize.pcRowNum - 1)) / panelProps.customize.pcRowNum;
665
561
  return /*#__PURE__*/_react["default"].createElement("div", {
666
- className: "m-recommend-pc"
562
+ className: "m-recommend-pc",
563
+ style: bgStyle
667
564
  }, !hideTabs && /*#__PURE__*/_react["default"].createElement("div", {
668
565
  className: "tab-select-wrap"
669
566
  }, groupSource.map(function (tab, index) {
@@ -701,23 +598,9 @@ function (_super) {
701
598
  transform: "translateX(" + tabLeft + "px)",
702
599
  background: this.getTabBarActiveColor(panelProps)
703
600
  }
704
- })), /*#__PURE__*/_react["default"].createElement("div", {
705
- className: "tab-content"
706
- }, layout !== 'layout1' && /*#__PURE__*/_react["default"].createElement("div", {
707
- className: "arrow-icon left",
708
- onClick: function onClick() {
709
- return _this.scrollToLeft();
710
- }
711
- }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
712
- color: scrollToLeftDisabled ? '#BDC1C8' : '#232F46',
713
- size: 20,
714
- type: "icon-outlined-left"
715
- })), layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement("div", {
716
- className: "tab-list"
717
- }, /*#__PURE__*/_react["default"].createElement("div", {
601
+ })), layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
718
602
  key: "macyContainer",
719
- ref: this.scrollRef,
720
- className: "macyContainer macyContainer_" + panelProps.id
603
+ className: "macyContainer"
721
604
  }, products.map(function (item) {
722
605
  return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
723
606
  key: item.productId,
@@ -726,24 +609,19 @@ function (_super) {
726
609
  imgHeight: imgHeight,
727
610
  imgWidth: imgWidth,
728
611
  onItemClick: function onItemClick() {
729
- return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId);
612
+ return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
730
613
  },
731
614
  panelProps: panelProps.content,
732
615
  showProgress: false
733
616
  });
734
617
  })), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
735
- className: (0, _classnames["default"])('btnSeeAll', {
736
- line: layout === 'layout1'
737
- }),
618
+ className: "btnSeeAll",
738
619
  data: _seeAll
739
620
  })) : /*#__PURE__*/_react["default"].createElement("div", {
740
621
  key: "scrollContainer",
741
- ref: this.scrollRef,
742
622
  className: (0, _classnames["default"])('scrollContainer', {
743
623
  pl_100: layout === 'layout3'
744
624
  })
745
- }, /*#__PURE__*/_react["default"].createElement("div", {
746
- className: "scrollProductList"
747
625
  }, products.map(function (item) {
748
626
  return /*#__PURE__*/_react["default"].createElement("div", {
749
627
  className: "productCard"
@@ -754,24 +632,15 @@ function (_super) {
754
632
  imgHeight: imgHeight,
755
633
  imgWidth: imgWidth,
756
634
  onItemClick: function onItemClick() {
757
- return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId);
635
+ return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
758
636
  },
759
637
  panelProps: panelProps.content,
760
638
  showProgress: false
761
639
  }));
762
- })), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
640
+ }), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
763
641
  className: "btnSeeAll",
764
642
  data: _seeAll
765
- })), layout !== 'layout1' && /*#__PURE__*/_react["default"].createElement("div", {
766
- className: "arrow-icon right",
767
- onClick: function onClick() {
768
- return _this.scrollToRight();
769
- }
770
- }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
771
- color: scrollToRightDisabled ? '#BDC1C8' : '#232F46',
772
- size: 20,
773
- type: "icon-outlined-right"
774
- }))));
643
+ })));
775
644
  };
776
645
 
777
646
  RecommendMobile.defaultProps = {
@@ -1,17 +1,17 @@
1
1
  .m-recommend-pc {
2
2
  display: flex;
3
3
  flex-direction: column;
4
- position: relative;
5
4
 
6
5
  .ant-tabs-nav-operations {
7
6
  display: none !important;
8
7
  }
9
8
 
10
- // ::-webkit-scrollbar {
11
- // width: 0;
12
- // height: 0;
13
- // display: none;
14
- // }
9
+ ::-webkit-scrollbar {
10
+ width: 0;
11
+ height: 0;
12
+ display: none;
13
+ }
14
+
15
15
 
16
16
  .tab-select-wrap {
17
17
  display: flex;
@@ -25,14 +25,11 @@
25
25
  .tabTitle {
26
26
  display: flex;
27
27
  align-items: center;
28
- text-align: center;
29
- // padding: 0 24px;
30
- min-width: 100px;
28
+ padding: 0 24px;
31
29
  height: 100%;
32
30
  justify-content: center;
33
31
  white-space: nowrap;
34
32
  flex-direction: column;
35
- cursor: pointer;
36
33
 
37
34
  img {
38
35
  height: 16px;
@@ -52,47 +49,16 @@
52
49
  }
53
50
  }
54
51
 
55
- .tab-content {
56
- display: flex;
57
- flex-direction: row;
58
- align-items: center;
59
-
60
- .tab-list {
61
- width: 100%;
62
- }
63
- }
64
-
65
- .arrow-icon {
66
- display: block;
67
- width: 36px;
68
- height: 36px;
69
- line-height: 42px;
70
- text-align: center;
71
- background: #FFFFFF;
72
- box-shadow: -1px -1px 4px rgba(45, 48, 64, 0.08), 1px 1px 4px rgba(45, 48, 64, 0.08);
73
- border-radius: 100px;
74
- cursor: pointer;
75
-
76
- &.left {
77
- margin-right: 40px;
78
- }
79
-
80
- &.right {
81
- margin-left: 40px;
82
- }
83
- }
84
-
85
52
  .macyContainer {
86
53
  display: flex;
87
- margin: 0;
54
+ margin: 0 16px;
88
55
  }
89
56
 
90
57
  .scrollContainer {
91
58
  display: flex;
92
59
  flex-direction: row;
93
60
  align-items: center;
94
- flex: 1;
95
- margin: 0;
61
+ margin: 0 16px;
96
62
  overflow-x: auto;
97
63
  padding-bottom: 15px;
98
64
 
@@ -100,14 +66,8 @@
100
66
  padding-left: 100px;
101
67
  }
102
68
 
103
- .scrollProductList {
104
- display: flex;
105
- flex-direction: row;
106
- align-items: flex-start;
107
-
108
- .productCard {
109
- margin-right: 20px;
110
- }
69
+ .productCard {
70
+ margin-right: 12px;
111
71
  }
112
72
  }
113
73
 
@@ -115,10 +75,6 @@
115
75
  display: block;
116
76
  width: fit-content;
117
77
  min-width: 80px;
118
- flex: none;
119
-
120
- &.line {
121
- margin: 0 auto 10px auto;
122
- }
78
+ margin: 0 auto;
123
79
  }
124
80
  }
@@ -7,7 +7,7 @@ exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
- var _xtLogo = _interopRequireDefault(require("./imgs/xt-logo.png"));
10
+ var _ditoLogo = _interopRequireDefault(require("./imgs/dito-logo.svg"));
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
13
 
@@ -17,57 +17,28 @@ var getDefaultJSON = function getDefaultJSON() {
17
17
  return {
18
18
  id: (0, _uuid.v4)(),
19
19
  type: 'SEARCH',
20
- content: {
21
- logo: {
22
- id: (0, _uuid.v4)(),
23
- open: true,
24
- type: 'IMAGE',
25
- content: {
26
- h5Name: 'name2',
27
- pcName: 'name2',
28
- h5ImgSrc: _xtLogo["default"],
29
- pcImgSrc: _xtLogo["default"],
30
- clickUrl: ''
31
- },
32
- hover: {
33
- open: false,
34
- backgroundType: 'enlarge',
35
- magnification: 1.5,
36
- pcImgHoverUrl: '',
37
- h5ImgHoverUrl: ''
38
- }
20
+ logo: {
21
+ id: (0, _uuid.v4)(),
22
+ open: true,
23
+ type: 'IMAGE',
24
+ content: {
25
+ h5Name: 'name2',
26
+ pcName: 'name2',
27
+ h5ImgSrc: _ditoLogo["default"],
28
+ pcImgSrc: 'https://online.iwhalecloud.com/static/banner3.d4d11f4b.webp',
29
+ clickUrl: ''
39
30
  },
40
- box: {
41
- id: (0, _uuid.v4)(),
42
- open: true,
43
- color: {
44
- pc: '#D92929',
45
- mobile: '#8493AF'
46
- }
47
- },
48
- icon: {
49
- id: (0, _uuid.v4)(),
50
- open: true,
51
- color: {
52
- pc: '#D92929',
53
- mobile: '#232F46'
54
- }
31
+ hover: {
32
+ open: false,
33
+ backgroundType: 'enlarge',
34
+ magnification: 1.5,
35
+ pcImgHoverUrl: '',
36
+ h5ImgHoverUrl: ''
55
37
  }
56
38
  },
57
- spacing: {
58
- pc: {
59
- paddingTop: 20,
60
- paddingBottom: 30,
61
- marginBottom: 0,
62
- fillUp: false
63
- },
64
- mobile: {
65
- paddingTop: 8,
66
- paddingBottom: 8,
67
- paddingLeft: 15,
68
- paddingRight: 15,
69
- marginBottom: 0
70
- }
39
+ icon: {
40
+ open: true,
41
+ color: '#2F54EB'
71
42
  },
72
43
  customize: {
73
44
  layout: 'left',
@@ -11,8 +11,6 @@ var _defaultJSON = require("./defaultJSON");
11
11
 
12
12
  var _index = _interopRequireDefault(require("./mobile/index"));
13
13
 
14
- var _index2 = _interopRequireDefault(require("./pc/index"));
15
-
16
14
  var _coreUtil = require("../../../../utils/coreUtil");
17
15
 
18
16
  var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
@@ -71,11 +69,8 @@ function (_super) {
71
69
  }
72
70
 
73
71
  SearchBar.prototype.render = function () {
74
- var nodeData = this.props.nodeData; // console.log('search nodeData', nodeData);
75
-
76
- return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(_index2["default"], {
77
- data: nodeData
78
- }) : /*#__PURE__*/_react["default"].createElement(_index["default"], {
72
+ var nodeData = this.props.nodeData;
73
+ return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? null : /*#__PURE__*/_react["default"].createElement(_index["default"], {
79
74
  data: nodeData
80
75
  }));
81
76
  };