@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
@@ -13,8 +13,6 @@ require("./index.less");
13
13
 
14
14
  var _classnames = _interopRequireDefault(require("classnames"));
15
15
 
16
- var _lodash = _interopRequireDefault(require("lodash.throttle"));
17
-
18
16
  var _mobx = require("../../../../../mobx");
19
17
 
20
18
  var _ProductItem = _interopRequireDefault(require("../../../../common/components/ProductItem"));
@@ -27,8 +25,6 @@ var _commonUtil = require("../../../../../utils/commonUtil");
27
25
 
28
26
  var _coreUtil = require("../../../../../utils/coreUtil");
29
27
 
30
- var _Iconfont = _interopRequireDefault(require("../../../../../common/Iconfont"));
31
-
32
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
33
29
 
34
30
  var __extends = void 0 && (void 0).__extends || function () {
@@ -232,24 +228,16 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
232
228
 
233
229
  var LAYOUT_IMAGE_SIZE = {
234
230
  layout1: {
235
- w: '100%',
231
+ w: 180,
236
232
  h: 180
237
233
  },
238
- layout2_col6: {
234
+ layout2: {
239
235
  w: 160,
240
236
  h: 160
241
237
  },
242
- layout2_col5: {
243
- w: 200,
244
- h: 200
245
- },
246
- layout3_col6: {
247
- w: 160,
248
- h: 160
249
- },
250
- layout3_col5: {
251
- w: 200,
252
- h: 200
238
+ layout3: {
239
+ w: 180,
240
+ h: 180
253
241
  }
254
242
  };
255
243
 
@@ -266,27 +254,14 @@ function (_super) {
266
254
  _this._cache = (0, _coreUtil.isDesignMode)() ? {} : (0, _commonUtil.ensure)(function () {
267
255
  return (0, _storeUtil.getMagicStore)("recommend_" + _this.props.panelProps.id);
268
256
  }, {});
269
- _this.scrollRef = /*#__PURE__*/_react["default"].createRef();
270
257
  _this.state = __assign({
271
258
  tabIndex: 0,
272
259
  tabLeft: 0,
273
260
  tabWidth: 0,
274
261
  groupSource: [],
275
- hideTabs: false,
276
- scrollToLeftDisabled: true,
277
- scrollToRightDisabled: true
262
+ hideTabs: false
278
263
  }, _this._cache);
279
264
 
280
- _this.setScrollDisabled = function (scrollDom) {
281
- var scrollToLeftDisabled = scrollDom.scrollLeft === 0;
282
- var scrollToRightDisabled = scrollDom.clientWidth + scrollDom.scrollLeft >= scrollDom.scrollWidth;
283
-
284
- _this.setState({
285
- scrollToLeftDisabled: scrollToLeftDisabled,
286
- scrollToRightDisabled: scrollToRightDisabled
287
- });
288
- };
289
-
290
265
  _this.initTab = function (index, hideTabs) {
291
266
  var selectedTabDom = document.querySelector(".tab-select-wrap .tabTitle:nth-child(" + (index + 1) + ")");
292
267
  var tabLeft = 0;
@@ -475,7 +450,8 @@ function (_super) {
475
450
 
476
451
  _this.onTabClick = function (e, index) {
477
452
  var tabIndex = _this.state.tabIndex;
478
- if (tabIndex === index) return; // e.currentTarget.scrollIntoView(false);
453
+ if (tabIndex === index) return;
454
+ e.currentTarget.scrollIntoView(false);
479
455
 
480
456
  _this.setState({
481
457
  tabIndex: index
@@ -486,34 +462,6 @@ function (_super) {
486
462
  });
487
463
 
488
464
  _this.getProductList(index);
489
-
490
- setTimeout(function () {
491
- var scrollDom = _this.scrollRef.current;
492
-
493
- if (scrollDom) {
494
- _this.setScrollDisabled(scrollDom);
495
-
496
- scrollDom.onscroll = (0, _lodash["default"])(function () {
497
- _this.setScrollDisabled(scrollDom);
498
- }, 500);
499
- }
500
- }, 0);
501
- };
502
-
503
- _this.scrollToRight = function () {
504
- var scrollDom = _this.scrollRef.current;
505
-
506
- if (scrollDom.clientWidth + scrollDom.scrollLeft < scrollDom.scrollWidth) {
507
- scrollDom.scrollTo(scrollDom.scrollLeft + scrollDom.clientWidth, 0);
508
- }
509
- };
510
-
511
- _this.scrollToLeft = function () {
512
- var scrollDom = _this.scrollRef.current;
513
-
514
- if (scrollDom.scrollLeft > 0) {
515
- scrollDom.scrollTo(scrollDom.scrollLeft - scrollDom.clientWidth, 0);
516
- }
517
465
  };
518
466
 
519
467
  return _this;
@@ -535,17 +483,6 @@ function (_super) {
535
483
 
536
484
  _this.getProductList(0);
537
485
  });
538
- setTimeout(function () {
539
- var scrollDom = _this.scrollRef.current;
540
-
541
- if (scrollDom) {
542
- _this.setScrollDisabled(scrollDom);
543
-
544
- scrollDom.onscroll = (0, _lodash["default"])(function () {
545
- _this.setScrollDisabled(scrollDom);
546
- }, 500);
547
- }
548
- }, 0);
549
486
  };
550
487
 
551
488
  RecommendMobile.prototype.componentWillReceiveProps = function () {
@@ -587,21 +524,10 @@ function (_super) {
587
524
  hideTabs: hideTabs
588
525
  });
589
526
  });
590
- var curLayout = JSON.stringify(panelProps.customize);
527
+ var curLayout = panelProps.customize.layout.pcLayout;
591
528
 
592
529
  if (curLayout !== this.preLayout) {
593
530
  this.resetLayout();
594
- setTimeout(function () {
595
- var scrollDom = _this.scrollRef.current;
596
-
597
- if (scrollDom) {
598
- _this.setScrollDisabled(scrollDom);
599
-
600
- scrollDom.onscroll = (0, _lodash["default"])(function () {
601
- _this.setScrollDisabled(scrollDom);
602
- }, 500);
603
- }
604
- }, 0);
605
531
  }
606
532
 
607
533
  this.preLayout = curLayout;
@@ -616,12 +542,10 @@ function (_super) {
616
542
  tabLeft = _a.tabLeft,
617
543
  tabWidth = _a.tabWidth,
618
544
  groupSource = _a.groupSource,
619
- hideTabs = _a.hideTabs,
620
- scrollToLeftDisabled = _a.scrollToLeftDisabled,
621
- scrollToRightDisabled = _a.scrollToRightDisabled;
545
+ hideTabs = _a.hideTabs;
622
546
  var bgStyle = this.getBackgroundStyle();
623
547
  var products = this.state["products" + tabIndex] || [];
624
- var isDivide = groupSource.length <= 10;
548
+ var isDivide = groupSource.length <= 3;
625
549
  var layout = panelProps.customize.layout.pcLayout;
626
550
 
627
551
  var _seeAll = (0, _commonUtil.ensure)(function () {
@@ -629,10 +553,10 @@ function (_super) {
629
553
  }, '');
630
554
 
631
555
  var imgHeight = (0, _commonUtil.ensure)(function () {
632
- return layout === 'layout1' ? LAYOUT_IMAGE_SIZE[layout].h : LAYOUT_IMAGE_SIZE[layout + "_col" + panelProps.customize.pcRowNum].h;
556
+ return LAYOUT_IMAGE_SIZE[layout].h;
633
557
  }, 140);
634
558
  var imgWidth = (0, _commonUtil.ensure)(function () {
635
- return layout === 'layout1' ? LAYOUT_IMAGE_SIZE[layout].w : LAYOUT_IMAGE_SIZE[layout + "_col" + panelProps.customize.pcRowNum].w;
559
+ return LAYOUT_IMAGE_SIZE[layout].w;
636
560
  }, 140);
637
561
  return /*#__PURE__*/_react["default"].createElement("div", {
638
562
  className: "m-recommend-pc",
@@ -674,22 +598,8 @@ function (_super) {
674
598
  transform: "translateX(" + tabLeft + "px)",
675
599
  background: this.getTabBarActiveColor(panelProps)
676
600
  }
677
- })), /*#__PURE__*/_react["default"].createElement("div", {
678
- className: "tab-content"
679
- }, layout !== 'layout1' && /*#__PURE__*/_react["default"].createElement("div", {
680
- className: "arrow-icon left",
681
- onClick: function onClick() {
682
- return _this.scrollToLeft();
683
- }
684
- }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
685
- color: scrollToLeftDisabled ? '#BDC1C8' : '#232F46',
686
- size: 20,
687
- type: "icon-outlined-left"
688
- })), layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement("div", {
689
- className: "tab-list"
690
- }, /*#__PURE__*/_react["default"].createElement("div", {
601
+ })), layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
691
602
  key: "macyContainer",
692
- ref: this.scrollRef,
693
603
  className: "macyContainer"
694
604
  }, products.map(function (item) {
695
605
  return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
@@ -699,24 +609,19 @@ function (_super) {
699
609
  imgHeight: imgHeight,
700
610
  imgWidth: imgWidth,
701
611
  onItemClick: function onItemClick() {
702
- return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId);
612
+ return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
703
613
  },
704
614
  panelProps: panelProps.content,
705
615
  showProgress: false
706
616
  });
707
617
  })), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
708
- className: (0, _classnames["default"])('btnSeeAll', {
709
- line: layout === 'layout1'
710
- }),
618
+ className: "btnSeeAll",
711
619
  data: _seeAll
712
620
  })) : /*#__PURE__*/_react["default"].createElement("div", {
713
621
  key: "scrollContainer",
714
- ref: this.scrollRef,
715
622
  className: (0, _classnames["default"])('scrollContainer', {
716
623
  pl_100: layout === 'layout3'
717
624
  })
718
- }, /*#__PURE__*/_react["default"].createElement("div", {
719
- className: "productList"
720
625
  }, products.map(function (item) {
721
626
  return /*#__PURE__*/_react["default"].createElement("div", {
722
627
  className: "productCard"
@@ -727,24 +632,15 @@ function (_super) {
727
632
  imgHeight: imgHeight,
728
633
  imgWidth: imgWidth,
729
634
  onItemClick: function onItemClick() {
730
- return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId);
635
+ return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
731
636
  },
732
637
  panelProps: panelProps.content,
733
638
  showProgress: false
734
639
  }));
735
- })), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
640
+ }), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
736
641
  className: "btnSeeAll",
737
642
  data: _seeAll
738
- })), layout !== 'layout1' && /*#__PURE__*/_react["default"].createElement("div", {
739
- className: "arrow-icon right",
740
- onClick: function onClick() {
741
- return _this.scrollToRight();
742
- }
743
- }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
744
- color: scrollToRightDisabled ? '#BDC1C8' : '#232F46',
745
- size: 20,
746
- type: "icon-outlined-right"
747
- }))));
643
+ })));
748
644
  };
749
645
 
750
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,8 +25,7 @@
25
25
  .tabTitle {
26
26
  display: flex;
27
27
  align-items: center;
28
- // padding: 0 24px;
29
- min-width: 100px;
28
+ padding: 0 24px;
30
29
  height: 100%;
31
30
  justify-content: center;
32
31
  white-space: nowrap;
@@ -50,47 +49,16 @@
50
49
  }
51
50
  }
52
51
 
53
- .tab-content {
54
- display: flex;
55
- flex-direction: row;
56
- align-items: center;
57
-
58
- .tab-list {
59
- width: 100%;
60
- }
61
- }
62
-
63
- .arrow-icon {
64
- display: block;
65
- width: 36px;
66
- height: 36px;
67
- line-height: 42px;
68
- text-align: center;
69
- background: #FFFFFF;
70
- box-shadow: -1px -1px 4px rgba(45, 48, 64, 0.08), 1px 1px 4px rgba(45, 48, 64, 0.08);
71
- border-radius: 100px;
72
- cursor: pointer;
73
-
74
- &.left {
75
- margin-right: 40px;
76
- }
77
-
78
- &.right {
79
- margin-left: 40px;
80
- }
81
- }
82
-
83
52
  .macyContainer {
84
53
  display: flex;
85
- margin: 0;
54
+ margin: 0 16px;
86
55
  }
87
56
 
88
57
  .scrollContainer {
89
58
  display: flex;
90
59
  flex-direction: row;
91
60
  align-items: center;
92
- flex: 1;
93
- margin: 0;
61
+ margin: 0 16px;
94
62
  overflow-x: auto;
95
63
  padding-bottom: 15px;
96
64
 
@@ -98,14 +66,8 @@
98
66
  padding-left: 100px;
99
67
  }
100
68
 
101
- .productList {
102
- display: flex;
103
- flex-direction: row;
104
- align-items: flex-start;
105
-
106
- .productCard {
107
- margin-right: 20px;
108
- }
69
+ .productCard {
70
+ margin-right: 12px;
109
71
  }
110
72
  }
111
73
 
@@ -113,9 +75,6 @@
113
75
  display: block;
114
76
  width: fit-content;
115
77
  min-width: 80px;
116
-
117
- &.line {
118
- margin: 0 auto 10px auto;
119
- }
78
+ margin: 0 auto;
120
79
  }
121
80
  }
@@ -25,7 +25,7 @@ var getDefaultJSON = function getDefaultJSON() {
25
25
  h5Name: 'name2',
26
26
  pcName: 'name2',
27
27
  h5ImgSrc: _ditoLogo["default"],
28
- pcImgSrc: _ditoLogo["default"],
28
+ pcImgSrc: 'https://online.iwhalecloud.com/static/banner3.d4d11f4b.webp',
29
29
  clickUrl: ''
30
30
  },
31
31
  hover: {
@@ -36,33 +36,9 @@ var getDefaultJSON = function getDefaultJSON() {
36
36
  h5ImgHoverUrl: ''
37
37
  }
38
38
  },
39
- box: {
40
- id: (0, _uuid.v4)(),
41
- open: true,
42
- color: {
43
- pc: '#D92929',
44
- mobile: '#D92929'
45
- }
46
- },
47
39
  icon: {
48
- id: (0, _uuid.v4)(),
49
40
  open: true,
50
- color: {
51
- pc: '#D92929',
52
- mobile: '#D92929'
53
- }
54
- },
55
- spacing: {
56
- pc: {
57
- paddingTop: 20,
58
- paddingBottom: 30,
59
- marginBottom: 0
60
- },
61
- mobile: {
62
- paddingTop: 8,
63
- paddingBottom: 8,
64
- marginBottom: 0
65
- }
41
+ color: '#2F54EB'
66
42
  },
67
43
  customize: {
68
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
  };
@@ -233,47 +233,44 @@ function (_super) {
233
233
 
234
234
  SearchMobile.prototype.render = function () {
235
235
  var data = this.props.data;
236
- console.log('----search ', data);
237
- var messageNum = this.state.messageNum; // let styleWrap = {};
238
- // if (data.background.bgType === 'color') {
239
- // styleWrap = {
240
- // backgroundColor: data.background.color,
241
- // opacity: data.background.opacity,
242
- // };
243
- // } else {
244
- // styleWrap = {
245
- // backgroundImage: `url(${data.background.image})`,
246
- // backgroundPosition: 'center',
247
- // backgroundRepeat: 'no-repeat',
248
- // backgroundSize: '100%',
249
- // };
250
- // }
236
+ var messageNum = this.state.messageNum;
237
+ var styleWrap = {};
238
+
239
+ if (data.background.bgType === 'color') {
240
+ styleWrap = {
241
+ backgroundColor: data.background.color,
242
+ opacity: data.background.opacity
243
+ };
244
+ } else {
245
+ styleWrap = {
246
+ backgroundImage: "url(" + data.background.image + ")",
247
+ backgroundPosition: 'center',
248
+ backgroundRepeat: 'no-repeat',
249
+ backgroundSize: '100%'
250
+ };
251
+ }
251
252
 
252
253
  return /*#__PURE__*/_react["default"].createElement("div", {
253
- className: "m-search-bar"
254
+ className: "m-search-bar",
255
+ style: styleWrap
254
256
  }, /*#__PURE__*/_react["default"].createElement("div", {
255
257
  className: "right"
256
- }, data.box.open && /*#__PURE__*/_react["default"].createElement("div", {
257
- className: "search-input-wrap",
258
+ }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
259
+ color: "#2C2C2C",
258
260
  onClick: function onClick() {
259
261
  return (0, _coreUtil.clickUrl)('/search-page');
260
262
  },
261
- style: {
262
- borderColor: data.box.color.mobile
263
- }
264
- }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
265
- color: data.box.color.mobile,
266
263
  size: 24,
267
264
  type: "icon-search2"
268
- })), data.icon.open && /*#__PURE__*/_react["default"].createElement("div", {
265
+ }), /*#__PURE__*/_react["default"].createElement("div", {
269
266
  className: "message-wrap"
270
267
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
271
- color: data.icon.color.mobile,
268
+ color: "#2C2C2C",
272
269
  onClick: function onClick() {
273
270
  return (0, _coreUtil.clickUrl)('/message-center');
274
271
  },
275
272
  size: 24,
276
- type: "icon-ChatDots"
273
+ type: "icon-message"
277
274
  }), !!messageNum && /*#__PURE__*/_react["default"].createElement("span", {
278
275
  className: "num"
279
276
  }, messageNum))), data.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
@@ -1,6 +1,6 @@
1
1
  .m-search-bar {
2
- height: 48px;
3
- padding: 8px 16px;
2
+ height: 44px;
3
+ padding: 10px 16px;
4
4
  display: flex;
5
5
  flex-direction: row-reverse;
6
6
  align-items: center;
@@ -8,23 +8,13 @@
8
8
  width: 100%;
9
9
 
10
10
  .right {
11
+ width: 60px;
11
12
  display: flex;
12
13
  align-items: center;
13
14
  justify-content: space-between;
14
15
 
15
- .search-input-wrap {
16
- width: 195px;
17
- background: #fff;
18
- border-radius: 4px;
19
- border: 1px solid #D2D9E5;
20
- padding: 4px 12px;
21
- height: 32px;
22
- text-align: right;
23
- }
24
-
25
16
  .message-wrap {
26
17
  position: relative;
27
- margin-left: 16px;
28
18
 
29
19
  .num {
30
20
  position: absolute;
@@ -19,8 +19,6 @@ var _common = require("../../../../../common");
19
19
 
20
20
  var _locale = require("../../../../../locale");
21
21
 
22
- require("./index.less");
23
-
24
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
23
 
26
24
  var __extends = void 0 && (void 0).__extends || function () {
@@ -118,22 +116,14 @@ function (_super) {
118
116
  data: panelProps.salesPrice
119
117
  }),
120
118
  metaOption: panelProps.salesPrice
119
+ }, {
120
+ key: '5',
121
+ name: (0, _locale.i18n)('SALES_PROGRESS'),
122
+ value: null,
123
+ metaOption: panelProps.salesProgressVisible
121
124
  }],
122
125
  type: "switch"
123
- }), /*#__PURE__*/_react["default"].createElement("div", {
124
- className: "sales_progress_wrap"
125
- }, /*#__PURE__*/_react["default"].createElement("span", {
126
- className: "label"
127
- }, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
128
- checked: panelProps.salesProgressVisible.open,
129
- onChange: function onChange(v) {
130
- panelProps.salesProgressVisible = {
131
- open: v
132
- };
133
-
134
- _this.reRender();
135
- }
136
- })));
126
+ }));
137
127
  };
138
128
 
139
129
  AComponent.defaultProps = {
@@ -1,20 +0,0 @@
1
- .flash_sale_content {
2
-
3
- .sales_progress_wrap {
4
- border-top: 1px solid #EDF0F4;
5
- padding-top: 20px;
6
- padding-bottom: 10px;
7
- display: flex;
8
- justify-content: space-between;
9
-
10
- .label {
11
- font-size: 16px !important;
12
- line-height: 24px !important;
13
- height: 24px !important;
14
- font-weight: 600 !important;
15
- color: #232F46;
16
- font-family: 'Open Sans';
17
- font-style: normal;
18
- }
19
- }
20
- }
@@ -13,27 +13,18 @@ var _FlashDealConfigContent = _interopRequireDefault(require("./FlashDealConfigC
13
13
 
14
14
  var _layout = _interopRequireDefault(require("./imgs/layout1.png"));
15
15
 
16
- var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
17
-
18
16
  var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
19
17
 
20
18
  var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
21
19
 
22
20
  var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
23
21
 
24
- var _mobx = require("../../../../mobx");
25
-
26
22
  var _locale = require("../../../../locale");
27
23
 
28
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
25
 
30
26
  function FlashDealConfig(props) {
31
27
  var data = props.data;
32
-
33
- var getIsContentActive = function getIsContentActive(content) {
34
- return JSON.stringify(content).includes(_mobx.store.clickedMetaParent);
35
- };
36
-
37
28
  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
38
29
  divider: "bold",
39
30
  headerSize: "large",
@@ -48,30 +39,21 @@ function FlashDealConfig(props) {
48
39
  name: (0, _locale.i18n)('CONTENT'),
49
40
  value: /*#__PURE__*/_react["default"].createElement(_FlashDealConfigContent["default"], {
50
41
  panelProps: data.content
51
- }),
52
- active: getIsContentActive(data.content)
53
- }, {
54
- key: '3',
55
- name: (0, _locale.i18n)('SPACING'),
56
- value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
57
- configCompSpace: true,
58
- configPaddingLR: true,
59
- data: data.spacing
60
42
  })
61
43
  }, {
62
- key: '4',
44
+ key: '3',
63
45
  name: (0, _locale.i18n)('CUSTOMIZE'),
64
46
  value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
65
47
  data: data.customize,
66
48
  isHideAlign: true,
67
49
  layoutSource: [{
68
50
  id: 'layout1',
69
- name: 'layout1',
51
+ name: 'left',
70
52
  image: _layout["default"]
71
53
  }]
72
54
  })
73
55
  }, {
74
- key: '5',
56
+ key: '4',
75
57
  name: (0, _locale.i18n)('BACKGROUND'),
76
58
  value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
77
59
  data: data.background