@fonixtree/magic-design 0.0.71 → 0.0.72

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 (323) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +12 -24
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +12 -24
  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/less/modal.less +2 -7
  9. package/es/common/Button/index.js +1 -2
  10. package/es/common/Button/index.less +0 -5
  11. package/es/common/ButtonIconLayout/index.less +2 -4
  12. package/es/common/Collapse/index.js +4 -14
  13. package/es/common/GroupList/index.js +3 -2
  14. package/es/common/ImageModal/index.js +26 -31
  15. package/es/common/ImageModal/index.less +1 -6
  16. package/es/common/LinkModal/BundleCampaign/index.js +17 -17
  17. package/es/common/LinkModal/CustomTable/index.js +1 -2
  18. package/es/common/LinkModal/FilteredProductModal/index.js +2 -2
  19. package/es/common/LinkModal/FilteredProductModal/index.less +2 -6
  20. package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
  21. package/es/common/LinkModal/index.less +1 -1
  22. package/es/common/ProductModal/index.js +1 -1
  23. package/es/common/ProductModal/index.less +7 -12
  24. package/es/common/UrlPicker/index.js +2 -6
  25. package/es/common/UrlPicker/index.less +1 -12
  26. package/es/common/index.js +0 -8
  27. package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
  28. package/es/composite-comp/bol/components/Banner/mobile/index.js +10 -4
  29. package/es/composite-comp/bol/components/Banner/pc/index.js +6 -3
  30. package/es/composite-comp/bol/components/Button/defaultJSON.js +70 -40
  31. package/es/composite-comp/bol/components/Button/index.js +14 -8
  32. package/es/composite-comp/bol/components/Button/index.less +0 -1
  33. package/es/composite-comp/bol/components/Carousel/defaultJSON.js +16 -12
  34. package/es/composite-comp/bol/components/Carousel/index.js +6 -1
  35. package/es/composite-comp/bol/components/Carousel/mobile/index.js +7 -4
  36. package/es/composite-comp/bol/components/Carousel/pc/index.js +7 -12
  37. package/es/composite-comp/bol/components/Carousel/pc/index.less +5 -13
  38. package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
  39. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +166 -26
  40. package/es/composite-comp/bol/components/ImageText/mobile/index.js +5 -2
  41. package/es/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
  42. package/es/composite-comp/bol/components/ImageText/pc/index.js +18 -46
  43. package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  44. package/es/composite-comp/bol/components/Newsletter/index.js +6 -1
  45. package/es/composite-comp/bol/components/Tag/defaultJSON.js +48 -38
  46. package/es/composite-comp/bol/components/Tag/index.js +14 -8
  47. package/es/composite-comp/bol/components/Tag/index.less +0 -1
  48. package/es/composite-comp/bol/components/Text/defaultJSON.js +4 -4
  49. package/es/composite-comp/bol/components/Text/index.js +8 -4
  50. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +1 -3
  51. package/{lib/composite-comp/bol/second-config-panels/TagSecondConfig → es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent}/index.js +38 -40
  52. package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  53. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +2 -4
  54. package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -1
  55. package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +1 -3
  56. package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +1 -2
  57. package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -6
  58. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +17 -9
  59. package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -7
  60. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +1 -3
  61. package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  62. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +13 -8
  63. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +5 -10
  64. package/es/composite-comp/common/components/ImageLabel/index.js +2 -2
  65. package/es/composite-comp/common/components/ImageLabel/index.less +2 -6
  66. package/es/composite-comp/common/components/ProductItem/index.less +10 -9
  67. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -24
  68. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +8 -8
  69. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +2 -62
  70. package/es/composite-comp/dito/components/FlashDeal/index.js +1 -5
  71. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -0
  72. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -5
  73. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +3 -13
  74. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +2 -3
  75. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +12 -30
  76. package/es/composite-comp/dito/components/Recommend/index.js +6 -5
  77. package/es/composite-comp/dito/components/Recommend/mobile/index.js +35 -40
  78. package/es/composite-comp/dito/components/Recommend/mobile/index.less +3 -10
  79. package/es/composite-comp/dito/components/Recommend/pc/index.js +19 -123
  80. package/es/composite-comp/dito/components/Recommend/pc/index.less +12 -53
  81. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -26
  82. package/es/composite-comp/dito/components/SearchBar/index.js +2 -7
  83. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +23 -26
  84. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +3 -13
  85. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +6 -16
  86. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -20
  87. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +3 -21
  88. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -17
  89. package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +5 -42
  90. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +29 -39
  91. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +49 -80
  92. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +1 -13
  93. package/es/constants/component-types.js +3 -13
  94. package/es/constants/index.js +2 -20
  95. package/es/constants/layout.js +8 -34
  96. package/es/core/Designer/CompListPanel/index.js +33 -8
  97. package/es/core/Designer/ConfigPanel/index.js +23 -72
  98. package/es/core/Designer/ConfigPanel/index.less +0 -4
  99. package/es/core/Designer/History/index.js +28 -34
  100. package/es/core/Designer/PageCompList/index.js +3 -13
  101. package/es/core/Designer/PageCompList/index.less +10 -10
  102. package/es/core/Designer/QuickMenuBar/index.js +1 -1
  103. package/es/core/Designer/ViewArea/index.js +6 -20
  104. package/es/core/Designer/index.js +37 -42
  105. package/es/core/Renderer/index.js +2 -17
  106. package/es/decorator/compositeDecorator.js +12 -45
  107. package/es/decorator/index.js +0 -8
  108. package/es/decorator/metaDecorator.js +2 -2
  109. package/es/locale/en/en.json +1 -14
  110. package/es/locale/es/es.json +1 -14
  111. package/es/locale/id/id.json +1 -14
  112. package/es/meta-comp/components/Button/index.js +13 -32
  113. package/es/meta-comp/components/Button/index.less +2 -10
  114. package/es/meta-comp/components/Image/index.js +7 -38
  115. package/es/meta-comp/components/Image/index.less +0 -2
  116. package/es/meta-comp/components/Text/index.js +11 -27
  117. package/es/meta-comp/config-panels/BaseConfig.js +10 -8
  118. package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -2
  119. package/es/meta-comp/config-panels/ImageConfig/index.js +4 -17
  120. package/es/meta-comp/config-panels/TextConfig/index.js +3 -10
  121. package/es/mobx/Store.js +10 -6
  122. package/es/utils/coreUtil.js +3 -17
  123. package/lib/assets/fonts/magic-box-iconfont.css +12 -24
  124. package/lib/assets/fonts/magic-box-iconfont.css.bak +12 -24
  125. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  126. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  127. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  128. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  129. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  130. package/lib/assets/less/modal.less +2 -7
  131. package/lib/common/Button/index.js +1 -2
  132. package/lib/common/Button/index.less +0 -5
  133. package/lib/common/ButtonIconLayout/index.less +2 -4
  134. package/lib/common/Collapse/index.js +4 -14
  135. package/lib/common/GroupList/index.js +3 -2
  136. package/lib/common/ImageModal/index.js +26 -31
  137. package/lib/common/ImageModal/index.less +1 -6
  138. package/lib/common/LinkModal/BundleCampaign/index.js +17 -17
  139. package/lib/common/LinkModal/CustomTable/index.js +1 -2
  140. package/lib/common/LinkModal/FilteredProductModal/index.js +2 -2
  141. package/lib/common/LinkModal/FilteredProductModal/index.less +2 -6
  142. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  143. package/lib/common/LinkModal/index.less +1 -1
  144. package/lib/common/ProductModal/index.js +1 -1
  145. package/lib/common/ProductModal/index.less +7 -12
  146. package/lib/common/UrlPicker/index.js +2 -6
  147. package/lib/common/UrlPicker/index.less +1 -12
  148. package/lib/common/index.js +0 -8
  149. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
  150. package/lib/composite-comp/bol/components/Banner/mobile/index.js +10 -4
  151. package/lib/composite-comp/bol/components/Banner/pc/index.js +6 -3
  152. package/lib/composite-comp/bol/components/Button/defaultJSON.js +70 -40
  153. package/lib/composite-comp/bol/components/Button/index.js +14 -8
  154. package/lib/composite-comp/bol/components/Button/index.less +0 -1
  155. package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +16 -12
  156. package/lib/composite-comp/bol/components/Carousel/index.js +6 -1
  157. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +7 -4
  158. package/lib/composite-comp/bol/components/Carousel/pc/index.js +7 -12
  159. package/lib/composite-comp/bol/components/Carousel/pc/index.less +5 -13
  160. package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
  161. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +166 -26
  162. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +5 -2
  163. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
  164. package/lib/composite-comp/bol/components/ImageText/pc/index.js +18 -46
  165. package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  166. package/lib/composite-comp/bol/components/Newsletter/index.js +6 -1
  167. package/lib/composite-comp/bol/components/Tag/defaultJSON.js +48 -38
  168. package/lib/composite-comp/bol/components/Tag/index.js +14 -8
  169. package/lib/composite-comp/bol/components/Tag/index.less +0 -1
  170. package/lib/composite-comp/bol/components/Text/defaultJSON.js +4 -4
  171. package/lib/composite-comp/bol/components/Text/index.js +8 -4
  172. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +1 -3
  173. package/{es/composite-comp/bol/second-config-panels/TagSecondConfig → lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent}/index.js +38 -40
  174. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  175. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +2 -4
  176. package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -1
  177. package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +1 -3
  178. package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +1 -2
  179. package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -6
  180. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +17 -9
  181. package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -7
  182. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +1 -3
  183. package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  184. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +13 -8
  185. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +5 -10
  186. package/lib/composite-comp/common/components/ImageLabel/index.js +2 -2
  187. package/lib/composite-comp/common/components/ImageLabel/index.less +2 -6
  188. package/lib/composite-comp/common/components/ProductItem/index.less +10 -9
  189. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -24
  190. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +8 -8
  191. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +2 -62
  192. package/lib/composite-comp/dito/components/FlashDeal/index.js +1 -5
  193. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -0
  194. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -5
  195. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +3 -13
  196. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +2 -3
  197. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +12 -30
  198. package/lib/composite-comp/dito/components/Recommend/index.js +6 -5
  199. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +35 -40
  200. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +3 -10
  201. package/lib/composite-comp/dito/components/Recommend/pc/index.js +19 -123
  202. package/lib/composite-comp/dito/components/Recommend/pc/index.less +12 -53
  203. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -26
  204. package/lib/composite-comp/dito/components/SearchBar/index.js +2 -7
  205. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +23 -26
  206. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +3 -13
  207. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +6 -16
  208. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -20
  209. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +3 -21
  210. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -17
  211. package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +5 -42
  212. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +29 -39
  213. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +49 -80
  214. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +1 -13
  215. package/lib/constants/component-types.js +3 -13
  216. package/lib/constants/index.js +2 -20
  217. package/lib/constants/layout.js +8 -34
  218. package/lib/core/Designer/CompListPanel/index.js +33 -8
  219. package/lib/core/Designer/ConfigPanel/index.js +23 -72
  220. package/lib/core/Designer/ConfigPanel/index.less +0 -4
  221. package/lib/core/Designer/History/index.js +28 -34
  222. package/lib/core/Designer/PageCompList/index.js +3 -13
  223. package/lib/core/Designer/PageCompList/index.less +10 -10
  224. package/lib/core/Designer/QuickMenuBar/index.js +1 -1
  225. package/lib/core/Designer/ViewArea/index.js +6 -20
  226. package/lib/core/Designer/index.js +37 -42
  227. package/lib/core/Renderer/index.js +2 -17
  228. package/lib/decorator/compositeDecorator.js +12 -45
  229. package/lib/decorator/index.js +0 -8
  230. package/lib/decorator/metaDecorator.js +2 -2
  231. package/lib/locale/en/en.json +1 -14
  232. package/lib/locale/es/es.json +1 -14
  233. package/lib/locale/id/id.json +1 -14
  234. package/lib/meta-comp/components/Button/index.js +13 -32
  235. package/lib/meta-comp/components/Button/index.less +2 -10
  236. package/lib/meta-comp/components/Image/index.js +7 -38
  237. package/lib/meta-comp/components/Image/index.less +0 -2
  238. package/lib/meta-comp/components/Text/index.js +11 -27
  239. package/lib/meta-comp/config-panels/BaseConfig.js +10 -8
  240. package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -2
  241. package/lib/meta-comp/config-panels/ImageConfig/index.js +4 -17
  242. package/lib/meta-comp/config-panels/TextConfig/index.js +3 -10
  243. package/lib/mobx/Store.js +10 -6
  244. package/lib/utils/coreUtil.js +3 -17
  245. package/package.json +3 -5
  246. package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
  247. package/es/common/ImgArea/components/Crop.js +0 -267
  248. package/es/common/ImgArea/components/Icons.js +0 -44
  249. package/es/common/ImgArea/components/MultiCrops.js +0 -210
  250. package/es/common/ImgArea/index.js +0 -11
  251. package/es/common/MagicLink/index.js +0 -89
  252. package/es/common/MagicLink/index.less +0 -0
  253. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -141
  254. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +0 -16
  255. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +0 -141
  256. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +0 -16
  257. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +0 -103
  258. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +0 -3
  259. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +0 -8
  260. package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +0 -3
  261. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  262. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  263. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  264. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +0 -578
  265. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +0 -121
  266. package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -131
  267. package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +0 -6
  268. package/es/composite-comp/dito/components/PcNavigation/index.js +0 -85
  269. package/es/composite-comp/dito/components/PcNavigation/pc/index.js +0 -478
  270. package/es/composite-comp/dito/components/PcNavigation/pc/index.less +0 -98
  271. package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -151
  272. package/es/composite-comp/dito/components/SearchBar/pc/index.less +0 -59
  273. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -130
  274. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +0 -128
  275. package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +0 -222
  276. package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -195
  277. package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
  278. package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +0 -73
  279. package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +0 -29
  280. package/es/decorator/updateConfigDecorator.js +0 -76
  281. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +0 -164
  282. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +0 -26
  283. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +0 -133
  284. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +0 -17
  285. package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
  286. package/lib/common/ImgArea/components/Crop.js +0 -267
  287. package/lib/common/ImgArea/components/Icons.js +0 -44
  288. package/lib/common/ImgArea/components/MultiCrops.js +0 -210
  289. package/lib/common/ImgArea/index.js +0 -11
  290. package/lib/common/MagicLink/index.js +0 -89
  291. package/lib/common/MagicLink/index.less +0 -0
  292. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -141
  293. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +0 -16
  294. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +0 -141
  295. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +0 -16
  296. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +0 -103
  297. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +0 -3
  298. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +0 -8
  299. package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +0 -3
  300. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  301. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  302. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  303. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +0 -578
  304. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +0 -121
  305. package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -131
  306. package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +0 -6
  307. package/lib/composite-comp/dito/components/PcNavigation/index.js +0 -85
  308. package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +0 -478
  309. package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +0 -98
  310. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -151
  311. package/lib/composite-comp/dito/components/SearchBar/pc/index.less +0 -59
  312. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -130
  313. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +0 -128
  314. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +0 -222
  315. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -195
  316. package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
  317. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +0 -73
  318. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +0 -29
  319. package/lib/decorator/updateConfigDecorator.js +0 -76
  320. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +0 -164
  321. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +0 -26
  322. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +0 -133
  323. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +0 -17
@@ -39,7 +39,7 @@ var MobileNavGroupSourceJSON = function MobileNavGroupSourceJSON() {
39
39
  specialContent: [],
40
40
  text: 'name',
41
41
  content: {
42
- sizeType: 'Customize font styles',
42
+ sizeType: 'Headline 1',
43
43
  fontFamily: 'Open Sans',
44
44
  fontWeight: 600,
45
45
  fontSize: 12,
@@ -66,19 +66,18 @@ var getDefaultJSON = function getDefaultJSON() {
66
66
  pc: {
67
67
  paddingTop: 10,
68
68
  paddingBottom: 10,
69
- marginBottom: window.magicDesign.compSpacing * 1.5
69
+ marginBottom: 0
70
70
  },
71
71
  mobile: {
72
72
  paddingTop: 10,
73
73
  paddingBottom: 10,
74
- marginBottom: window.magicDesign.compSpacing
74
+ marginBottom: 0
75
75
  }
76
76
  },
77
77
  customize: {
78
78
  layout: 'newline',
79
79
  rowNum: 4,
80
- mobileMaxRowNum: 5,
81
- mobileMinRowNum: 3
80
+ mobileMaxRowNum: 5
82
81
  },
83
82
  background: {
84
83
  opacity: 100,
@@ -50,27 +50,17 @@ function (_super) {
50
50
  var _this = _super !== null && _super.apply(this, arguments) || this;
51
51
 
52
52
  _this.calcWidth = function (num) {
53
- return (100 - (num - 1) * 3) / num + "%";
54
- };
55
-
56
- _this.tileCalcWidth = function (num) {
57
- return (100 - (num - 1) * 3) / (num + 0.5) + "%";
53
+ return (100 - (num - 1) * 2) / num + "%";
58
54
  };
59
55
 
60
56
  _this.getCardStyle = function (source, i) {
61
57
  var data = _this.props.data;
62
58
  var cardStyle = {};
59
+ cardStyle.marginRight = (1 + i) % data.customize.rowNum !== 0 ? '2%' : 0;
63
60
 
64
61
  if (data.customize.layout === 'newline') {
65
- if (i > data.customize.rowNum - 1) {
66
- cardStyle.marginTop = 12;
67
- }
68
-
69
- cardStyle.marginRight = (1 + i) % data.customize.rowNum !== 0 ? '3%' : 0;
62
+ cardStyle.marginBottom = 12;
70
63
  cardStyle.width = _this.calcWidth(data.customize.rowNum);
71
- } else {
72
- cardStyle.marginRight = '3%';
73
- cardStyle.width = _this.tileCalcWidth(data.customize.rowNum);
74
64
  }
75
65
 
76
66
  return cardStyle;
@@ -1,7 +1,7 @@
1
1
  .mobile-navigation-mobile {
2
2
  // display: flex;
3
3
  // flex-direction: column;
4
- padding-top: 18px;
4
+ padding: 18px 0;
5
5
  .group-wrap {
6
6
  padding: 0 20px;
7
7
  display: flex;
@@ -29,10 +29,9 @@
29
29
  overflow-x: auto;
30
30
  flex-wrap: nowrap;
31
31
  scroll-snap-type: x;
32
- padding: 0 15px;
33
32
  .one-card {
34
- flex-shrink: 0;
35
33
  scroll-snap-align: end;
34
+ min-width: 30%;
36
35
  }
37
36
  }
38
37
  }
@@ -7,16 +7,13 @@ exports.recommendGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
- var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo, text) {
10
+ var recommendGroupSourceJSON = function recommendGroupSourceJSON(logo, text) {
11
11
  var groupId = (0, _uuid.v4)();
12
- var imageId = (0, _uuid.v4)();
13
- var groupNameId = (0, _uuid.v4)();
14
12
  return {
15
13
  id: groupId,
16
- parentId: parentId,
17
14
  image: {
18
15
  parentId: groupId,
19
- id: imageId,
16
+ id: (0, _uuid.v4)(),
20
17
  open: true,
21
18
  type: 'IMAGE',
22
19
  content: {
@@ -36,13 +33,12 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
36
33
  },
37
34
  groupName: {
38
35
  parentId: groupId,
39
- id: groupNameId,
36
+ id: (0, _uuid.v4)(),
40
37
  open: true,
41
38
  type: 'TEXT',
42
39
  specialContent: [],
43
40
  text: text,
44
41
  content: {
45
- sizeType: 'Customize font styles',
46
42
  fontFamily: 'Open Sans',
47
43
  fontWeight: 400,
48
44
  fontSize: 14,
@@ -56,7 +52,6 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
56
52
  vertical: {}
57
53
  },
58
54
  seeAll: {
59
- parentId: groupId,
60
55
  id: (0, _uuid.v4)(),
61
56
  open: true,
62
57
  type: 'BUTTON',
@@ -66,7 +61,6 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
66
61
  backgroundColor: '#fff'
67
62
  },
68
63
  buttonText: {
69
- sizeType: 'Customize font styles',
70
64
  fontFamily: 'Open Sans',
71
65
  fontWeight: 400,
72
66
  fontSize: 12,
@@ -104,10 +98,10 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
104
98
  intelligentValue: [],
105
99
  maxProdNum: 10,
106
100
  hover: {
107
- open: false,
101
+ open: true,
108
102
  image: {
109
103
  parentId: groupId,
110
- id: imageId,
104
+ id: (0, _uuid.v4)(),
111
105
  open: false,
112
106
  type: 'IMAGE',
113
107
  content: {
@@ -127,13 +121,12 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
127
121
  },
128
122
  groupName: {
129
123
  parentId: groupId,
130
- id: groupNameId,
124
+ id: (0, _uuid.v4)(),
131
125
  open: false,
132
126
  type: 'TEXT',
133
127
  specialContent: [],
134
128
  text: text,
135
129
  content: {
136
- sizeType: 'Customize font styles',
137
130
  fontFamily: 'Open Sans',
138
131
  fontWeight: 600,
139
132
  fontSize: 14,
@@ -153,11 +146,10 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
153
146
  exports.recommendGroupSourceJSON = recommendGroupSourceJSON;
154
147
 
155
148
  var getDefaultJSON = function getDefaultJSON() {
156
- var groupId = (0, _uuid.v4)();
157
149
  return {
158
- id: groupId,
150
+ id: (0, _uuid.v4)(),
159
151
  type: 'RECOMMEND',
160
- groupSource: [recommendGroupSourceJSON(groupId, '', 'Tab1'), recommendGroupSourceJSON(groupId, '', 'Tab2')],
152
+ groupSource: [recommendGroupSourceJSON('', 'Tab1'), recommendGroupSourceJSON('', 'Tab2')],
161
153
  content: {
162
154
  label: {
163
155
  id: (0, _uuid.v4)(),
@@ -169,7 +161,6 @@ var getDefaultJSON = function getDefaultJSON() {
169
161
  backgroundColor: '#CE1126'
170
162
  },
171
163
  buttonText: {
172
- sizeType: 'Customize font styles',
173
164
  fontFamily: 'Open Sans',
174
165
  fontWeight: 600,
175
166
  fontSize: 8,
@@ -208,7 +199,6 @@ var getDefaultJSON = function getDefaultJSON() {
208
199
  specialContent: [],
209
200
  text: 'Flash Deal',
210
201
  content: {
211
- sizeType: 'Customize font styles',
212
202
  fontFamily: 'Open Sans',
213
203
  fontWeight: 700,
214
204
  fontSize: 14,
@@ -231,7 +221,6 @@ var getDefaultJSON = function getDefaultJSON() {
231
221
  specialContent: [],
232
222
  text: 'Flash Deal',
233
223
  content: {
234
- sizeType: 'Customize font styles',
235
224
  fontFamily: 'Open Sans',
236
225
  fontWeight: 700,
237
226
  fontSize: 14,
@@ -254,7 +243,6 @@ var getDefaultJSON = function getDefaultJSON() {
254
243
  specialContent: [],
255
244
  text: 'Flash Deal',
256
245
  content: {
257
- sizeType: 'Customize font styles',
258
246
  fontFamily: 'Open Sans',
259
247
  fontWeight: 500,
260
248
  fontSize: 10,
@@ -280,25 +268,19 @@ var getDefaultJSON = function getDefaultJSON() {
280
268
  paddingBottom: 0,
281
269
  paddingLeft: 0,
282
270
  paddingRight: 0,
283
- marginBottom: window.magicDesign.compSpacing * 1.5
271
+ marginBottom: 0
284
272
  },
285
273
  mobile: {
286
274
  paddingTop: 0,
287
275
  paddingBottom: 0,
288
276
  paddingLeft: 0,
289
277
  paddingRight: 0,
290
- marginBottom: window.magicDesign.compSpacing
278
+ marginBottom: 0
291
279
  }
292
280
  },
293
281
  customize: {
294
- layout: {
295
- pcLayout: 'layout1',
296
- h5Layout: 'layout1'
297
- },
298
- align: 'left',
299
- pcRowNum: 6,
300
- pcMaxRowNum: 6,
301
- pcMinRowNum: 5
282
+ layout: 'left',
283
+ align: 'left'
302
284
  },
303
285
  background: {
304
286
  opacity: 100,
@@ -9,14 +9,14 @@ var _react = _interopRequireWildcard(require("react"));
9
9
 
10
10
  var _mobile = _interopRequireDefault(require("./mobile"));
11
11
 
12
- var _pc = _interopRequireDefault(require("./pc"));
13
-
14
12
  var _defaultJSON = require("./defaultJSON");
15
13
 
16
14
  var _coreUtil = require("../../../../utils/coreUtil");
17
15
 
18
16
  var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
19
17
 
18
+ var _businessUtil = require("../../../../utils/businessUtil");
19
+
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
21
 
22
22
  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); }
@@ -72,9 +72,10 @@ function (_super) {
72
72
 
73
73
  Recommend.prototype.render = function () {
74
74
  var nodeData = this.props.nodeData;
75
- return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
76
- panelProps: nodeData
77
- }) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
75
+ var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
76
+ return /*#__PURE__*/_react["default"].createElement("div", {
77
+ style: wrapStyle
78
+ }, (0, _coreUtil.isPc)() ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
78
79
  panelProps: nodeData
79
80
  }));
80
81
  };
@@ -227,6 +227,10 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
227
227
  };
228
228
 
229
229
  var LAYOUT_IMAGE_SIZE = {
230
+ left: {
231
+ w: '100%',
232
+ h: 165
233
+ },
230
234
  layout1: {
231
235
  w: '100%',
232
236
  h: 164
@@ -288,10 +292,9 @@ function (_super) {
288
292
 
289
293
  _this.getTabBarActiveColor = function (_panelProps) {
290
294
  var tabIndex = _this.state.tabIndex;
291
- var activeHoverGroupName = _panelProps.groupSource[tabIndex].hover;
292
- return activeHoverGroupName.open ? (0, _commonUtil.ensure)(function () {
293
- return activeHoverGroupName.groupName.content.color;
294
- }, '#CE1126') : '#CE1126';
295
+ return (0, _commonUtil.ensure)(function () {
296
+ return _panelProps.groupSource[tabIndex].hover.groupName.content.color;
297
+ }, '#1890ff');
295
298
  };
296
299
 
297
300
  _this.getProductList = function (index) {
@@ -413,8 +416,10 @@ function (_super) {
413
416
  };
414
417
 
415
418
  _this.resetLayout = function () {
416
- var layout = _this.props.panelProps.customize.layout.h5Layout;
419
+ var layout = _this.props.panelProps.customize.layout.h5Layout || _this.props.panelProps.customize.layout; // 后面删除
420
+
417
421
  var LAYOUT_COLUMN = {
422
+ left: 2,
418
423
  layout1: 2,
419
424
  layout2: 1,
420
425
  layout3: 3
@@ -464,7 +469,8 @@ function (_super) {
464
469
 
465
470
  _this.onTabClick = function (e, index) {
466
471
  var tabIndex = _this.state.tabIndex;
467
- if (tabIndex === index) return; // e.currentTarget.scrollIntoView(false);
472
+ if (tabIndex === index) return;
473
+ e.currentTarget.scrollIntoView(false);
468
474
 
469
475
  _this.setState({
470
476
  tabIndex: index
@@ -537,7 +543,7 @@ function (_super) {
537
543
  hideTabs: hideTabs
538
544
  });
539
545
  });
540
- var curLayout = panelProps.customize.layout.h5Layout;
546
+ var curLayout = panelProps.customize.layout.h5Layout || panelProps.customize.layout; // 后面删除
541
547
 
542
548
  if (curLayout !== this.preLayout) {
543
549
  this.resetLayout();
@@ -558,12 +564,9 @@ function (_super) {
558
564
  hideTabs = _a.hideTabs;
559
565
  var bgStyle = this.getBackgroundStyle();
560
566
  var products = this.state["products" + tabIndex] || [];
561
- var isDivide = groupSource.length <= 4;
562
- var layout = panelProps.customize.layout.h5Layout;
563
-
564
- var _seeAll = (0, _commonUtil.ensure)(function () {
565
- return groupSource[tabIndex].seeAll;
566
- }, '');
567
+ var isDivide = groupSource.length <= 3;
568
+ var layout = panelProps.customize.layout.h5Layout || panelProps.customize.layout; // 后面删除
569
+ // const _seeAll = ensure(() => groupSource[tabIndex].seeAll, '');
567
570
 
568
571
  var imgHeight = (0, _commonUtil.ensure)(function () {
569
572
  return LAYOUT_IMAGE_SIZE[layout].h;
@@ -611,33 +614,11 @@ function (_super) {
611
614
  transform: "translateX(" + tabLeft + "px)",
612
615
  background: this.getTabBarActiveColor(panelProps)
613
616
  }
614
- })), ['layout1', 'layout2', 'layout3'].includes(layout) ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
615
- key: "macyContainer",
616
- className: "macyContainer"
617
- }, products.map(function (item) {
618
- return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
619
- key: item.productId,
620
- data: item,
621
- fixHeight: layout === 'layout3',
622
- imgHeight: imgHeight,
623
- imgWidth: imgWidth,
624
- layout: layout === 'layout2' ? 'horizontal' : 'vertical',
625
- onItemClick: function onItemClick() {
626
- return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
627
- },
628
- panelProps: panelProps.content,
629
- showProgress: false
630
- });
631
- })), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
632
- className: "btnSeeAll",
633
- data: _seeAll
634
- })) : /*#__PURE__*/_react["default"].createElement("div", {
617
+ })), ['layout4', 'layout5'].includes(layout) ? /*#__PURE__*/_react["default"].createElement("div", {
635
618
  key: "scrollContainer",
636
619
  className: (0, _classnames["default"])('scrollContainer', {
637
620
  pl_100: layout === 'layout5'
638
621
  })
639
- }, /*#__PURE__*/_react["default"].createElement("div", {
640
- className: "productList"
641
622
  }, products.map(function (item) {
642
623
  return /*#__PURE__*/_react["default"].createElement("div", {
643
624
  className: "productCard"
@@ -653,10 +634,24 @@ function (_super) {
653
634
  panelProps: panelProps.content,
654
635
  showProgress: false
655
636
  }));
656
- })), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
657
- className: "btnSeeAll",
658
- data: _seeAll
659
- })));
637
+ })) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
638
+ key: "macyContainer",
639
+ className: "macyContainer"
640
+ }, products.map(function (item) {
641
+ return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
642
+ key: item.productId,
643
+ data: item,
644
+ fixHeight: layout === 'layout3',
645
+ imgHeight: imgHeight,
646
+ imgWidth: imgWidth,
647
+ layout: layout === 'layout2' ? 'horizontal' : 'vertical',
648
+ onItemClick: function onItemClick() {
649
+ return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
650
+ },
651
+ panelProps: panelProps.content,
652
+ showProgress: false
653
+ });
654
+ }))));
660
655
  };
661
656
 
662
657
  RecommendMobile.defaultProps = {
@@ -25,8 +25,7 @@
25
25
  .tabTitle {
26
26
  display: flex;
27
27
  align-items: center;
28
- // padding: 0 24px;
29
- min-width: 80px;
28
+ padding: 0 24px;
30
29
  height: 100%;
31
30
  justify-content: center;
32
31
  white-space: nowrap;
@@ -67,14 +66,8 @@
67
66
  padding-left: 100px;
68
67
  }
69
68
 
70
- .productList {
71
- display: flex;
72
- flex-direction: row;
73
- align-items: flex-start;
74
-
75
- .productCard {
76
- margin-right: 12px;
77
- }
69
+ .productCard {
70
+ margin-right: 12px;
78
71
  }
79
72
  }
80
73