@fonixtree/magic-design 0.0.78 → 0.0.80

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 (339) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +24 -12
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +24 -12
  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/layout-navigation-normal.png +0 -0
  9. package/es/assets/less/common.less +2 -2
  10. package/es/assets/less/modal.less +7 -2
  11. package/es/common/Button/index.js +2 -1
  12. package/es/common/Button/index.less +5 -0
  13. package/es/common/ButtonIconLayout/index.less +4 -2
  14. package/es/common/Collapse/index.js +14 -4
  15. package/es/common/FontStyles/index.less +1 -1
  16. package/es/common/GroupList/index.js +4 -3
  17. package/es/common/ImageModal/index.js +31 -26
  18. package/es/common/ImageModal/index.less +6 -1
  19. package/es/common/ImgArea/components/Crop.js +267 -0
  20. package/es/common/ImgArea/components/Icons.js +44 -0
  21. package/es/common/ImgArea/components/MultiCrops.js +210 -0
  22. package/es/common/ImgArea/index.js +11 -0
  23. package/es/common/LinkModal/BundleCampaign/index.js +17 -17
  24. package/es/common/LinkModal/CustomTable/index.js +1 -0
  25. package/es/common/LinkModal/FilteredProductModal/index.js +3 -3
  26. package/es/common/LinkModal/FilteredProductModal/index.less +2 -3
  27. package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
  28. package/es/common/LinkModal/index.less +1 -1
  29. package/es/common/MagicLink/index.js +89 -0
  30. package/es/common/MagicLink/index.less +0 -0
  31. package/es/common/ProductModal/index.js +1 -1
  32. package/es/common/ProductModal/index.less +12 -7
  33. package/es/common/UrlPicker/index.js +6 -2
  34. package/es/common/UrlPicker/index.less +12 -1
  35. package/es/common/index.js +8 -0
  36. package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
  37. package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -10
  38. package/es/composite-comp/bol/components/Banner/pc/index.js +3 -6
  39. package/es/composite-comp/bol/components/Button/defaultJSON.js +40 -70
  40. package/es/composite-comp/bol/components/Button/index.js +8 -14
  41. package/es/composite-comp/bol/components/Button/index.less +1 -0
  42. package/es/composite-comp/bol/components/Carousel/defaultJSON.js +12 -16
  43. package/es/composite-comp/bol/components/Carousel/index.js +1 -6
  44. package/es/composite-comp/bol/components/Carousel/mobile/index.js +4 -8
  45. package/es/composite-comp/bol/components/Carousel/pc/index.js +15 -7
  46. package/es/composite-comp/bol/components/Carousel/pc/index.less +13 -5
  47. package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
  48. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +27 -167
  49. package/es/composite-comp/bol/components/ImageText/mobile/index.js +2 -5
  50. package/es/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
  51. package/es/composite-comp/bol/components/ImageText/pc/index.js +46 -18
  52. package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  53. package/es/composite-comp/bol/components/Newsletter/index.js +1 -6
  54. package/es/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
  55. package/es/composite-comp/bol/components/Tag/index.js +8 -14
  56. package/es/composite-comp/bol/components/Tag/index.less +1 -0
  57. package/es/composite-comp/bol/components/Text/defaultJSON.js +4 -6
  58. package/es/composite-comp/bol/components/Text/index.js +4 -8
  59. package/es/composite-comp/bol/components/Text/index.less +3 -3
  60. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
  61. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +141 -0
  62. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
  63. package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  64. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
  65. package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -0
  66. package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
  67. package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
  68. package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
  69. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
  70. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +141 -0
  71. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
  72. package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
  73. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
  74. package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  75. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
  76. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
  77. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
  78. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
  79. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
  80. package/es/composite-comp/bol/{config-panels/ButtonCompConfig/ButtonConfigContent → second-config-panels/TagSecondConfig}/index.js +40 -38
  81. package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
  82. package/es/composite-comp/common/components/ImageLabel/index.js +2 -2
  83. package/es/composite-comp/common/components/ImageLabel/index.less +6 -2
  84. package/es/composite-comp/common/components/ProductItem/index.js +1 -1
  85. package/es/composite-comp/common/components/ProductItem/index.less +9 -9
  86. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +24 -13
  87. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +25 -25
  88. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +62 -2
  89. package/es/composite-comp/dito/components/FlashDeal/index.js +5 -1
  90. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -1
  91. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  92. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  93. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  94. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +578 -0
  95. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +121 -0
  96. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
  97. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
  98. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
  99. package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +131 -0
  100. package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
  101. package/es/composite-comp/dito/components/PcNavigation/index.js +85 -0
  102. package/es/composite-comp/dito/components/PcNavigation/pc/index.js +478 -0
  103. package/es/composite-comp/dito/components/PcNavigation/pc/index.less +98 -0
  104. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +30 -12
  105. package/es/composite-comp/dito/components/Recommend/index.js +5 -6
  106. package/es/composite-comp/dito/components/Recommend/mobile/index.js +45 -37
  107. package/es/composite-comp/dito/components/Recommend/mobile/index.less +10 -2
  108. package/es/composite-comp/dito/components/Recommend/pc/index.js +134 -22
  109. package/es/composite-comp/dito/components/Recommend/pc/index.less +54 -12
  110. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +45 -19
  111. package/es/composite-comp/dito/components/SearchBar/index.js +7 -2
  112. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +29 -26
  113. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +13 -3
  114. package/es/composite-comp/dito/components/SearchBar/pc/index.js +151 -0
  115. package/es/composite-comp/dito/components/SearchBar/pc/index.less +59 -0
  116. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
  117. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
  118. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +12 -2
  119. package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
  120. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
  121. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
  122. package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
  123. package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
  124. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +16 -3
  125. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
  126. package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +15 -51
  127. package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
  128. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
  129. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
  130. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
  131. package/es/constants/component-types.js +13 -3
  132. package/es/constants/index.js +20 -2
  133. package/es/constants/layout.js +34 -8
  134. package/es/core/Designer/CompListPanel/index.js +8 -33
  135. package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
  136. package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
  137. package/es/core/Designer/ConfigPanel/index.js +72 -23
  138. package/es/core/Designer/ConfigPanel/index.less +4 -0
  139. package/es/core/Designer/History/index.js +34 -28
  140. package/es/core/Designer/PageCompList/index.js +13 -3
  141. package/es/core/Designer/PageCompList/index.less +10 -10
  142. package/es/core/Designer/QuickMenuBar/index.js +1 -1
  143. package/es/core/Designer/ViewArea/index.js +20 -6
  144. package/es/core/Designer/index.js +43 -37
  145. package/es/core/Renderer/index.js +21 -5
  146. package/es/decorator/compositeDecorator.js +45 -12
  147. package/es/decorator/index.js +8 -0
  148. package/es/decorator/metaDecorator.js +4 -3
  149. package/es/decorator/updateConfigDecorator.js +76 -0
  150. package/es/locale/en/en.json +14 -1
  151. package/es/locale/es/es.json +14 -1
  152. package/es/locale/id/id.json +14 -1
  153. package/es/meta-comp/components/Button/editable.js +114 -0
  154. package/es/meta-comp/components/Button/editable.less +6 -0
  155. package/es/meta-comp/components/Button/index.js +14 -33
  156. package/es/meta-comp/components/Button/index.less +3 -2
  157. package/es/meta-comp/components/Image/index.js +39 -8
  158. package/es/meta-comp/components/Image/index.less +7 -4
  159. package/es/meta-comp/components/Text/index.js +28 -11
  160. package/es/meta-comp/config-panels/BaseConfig.js +8 -10
  161. package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -3
  162. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
  163. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
  164. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
  165. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
  166. package/es/meta-comp/config-panels/ImageConfig/index.js +17 -4
  167. package/es/meta-comp/config-panels/TextConfig/index.js +15 -6
  168. package/es/mobx/Store.js +6 -10
  169. package/es/utils/coreUtil.js +15 -2
  170. package/lib/assets/fonts/magic-box-iconfont.css +24 -12
  171. package/lib/assets/fonts/magic-box-iconfont.css.bak +24 -12
  172. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  173. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  174. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  175. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  176. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  177. package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
  178. package/lib/assets/less/common.less +2 -2
  179. package/lib/assets/less/modal.less +7 -2
  180. package/lib/common/Button/index.js +2 -1
  181. package/lib/common/Button/index.less +5 -0
  182. package/lib/common/ButtonIconLayout/index.less +4 -2
  183. package/lib/common/Collapse/index.js +14 -4
  184. package/lib/common/FontStyles/index.less +1 -1
  185. package/lib/common/GroupList/index.js +4 -3
  186. package/lib/common/ImageModal/index.js +31 -26
  187. package/lib/common/ImageModal/index.less +6 -1
  188. package/lib/common/ImgArea/components/Crop.js +267 -0
  189. package/lib/common/ImgArea/components/Icons.js +44 -0
  190. package/lib/common/ImgArea/components/MultiCrops.js +210 -0
  191. package/lib/common/ImgArea/index.js +11 -0
  192. package/lib/common/LinkModal/BundleCampaign/index.js +17 -17
  193. package/lib/common/LinkModal/CustomTable/index.js +1 -0
  194. package/lib/common/LinkModal/FilteredProductModal/index.js +3 -3
  195. package/lib/common/LinkModal/FilteredProductModal/index.less +2 -3
  196. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  197. package/lib/common/LinkModal/index.less +1 -1
  198. package/lib/common/MagicLink/index.js +89 -0
  199. package/lib/common/MagicLink/index.less +0 -0
  200. package/lib/common/ProductModal/index.js +1 -1
  201. package/lib/common/ProductModal/index.less +12 -7
  202. package/lib/common/UrlPicker/index.js +6 -2
  203. package/lib/common/UrlPicker/index.less +12 -1
  204. package/lib/common/index.js +8 -0
  205. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
  206. package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -10
  207. package/lib/composite-comp/bol/components/Banner/pc/index.js +3 -6
  208. package/lib/composite-comp/bol/components/Button/defaultJSON.js +40 -70
  209. package/lib/composite-comp/bol/components/Button/index.js +8 -14
  210. package/lib/composite-comp/bol/components/Button/index.less +1 -0
  211. package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +12 -16
  212. package/lib/composite-comp/bol/components/Carousel/index.js +1 -6
  213. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +4 -8
  214. package/lib/composite-comp/bol/components/Carousel/pc/index.js +15 -7
  215. package/lib/composite-comp/bol/components/Carousel/pc/index.less +13 -5
  216. package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
  217. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +27 -167
  218. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +2 -5
  219. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
  220. package/lib/composite-comp/bol/components/ImageText/pc/index.js +46 -18
  221. package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  222. package/lib/composite-comp/bol/components/Newsletter/index.js +1 -6
  223. package/lib/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
  224. package/lib/composite-comp/bol/components/Tag/index.js +8 -14
  225. package/lib/composite-comp/bol/components/Tag/index.less +1 -0
  226. package/lib/composite-comp/bol/components/Text/defaultJSON.js +4 -6
  227. package/lib/composite-comp/bol/components/Text/index.js +4 -8
  228. package/lib/composite-comp/bol/components/Text/index.less +3 -3
  229. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
  230. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +141 -0
  231. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
  232. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  233. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
  234. package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -0
  235. package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
  236. package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
  237. package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
  238. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
  239. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +141 -0
  240. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
  241. package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
  242. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
  243. package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  244. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
  245. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
  246. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
  247. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
  248. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
  249. package/lib/composite-comp/bol/{config-panels/ButtonCompConfig/ButtonConfigContent → second-config-panels/TagSecondConfig}/index.js +40 -38
  250. package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
  251. package/lib/composite-comp/common/components/ImageLabel/index.js +2 -2
  252. package/lib/composite-comp/common/components/ImageLabel/index.less +6 -2
  253. package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
  254. package/lib/composite-comp/common/components/ProductItem/index.less +9 -9
  255. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +24 -13
  256. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +25 -25
  257. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +62 -2
  258. package/lib/composite-comp/dito/components/FlashDeal/index.js +5 -1
  259. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -1
  260. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  261. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  262. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  263. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +578 -0
  264. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +121 -0
  265. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
  266. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
  267. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
  268. package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +131 -0
  269. package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
  270. package/lib/composite-comp/dito/components/PcNavigation/index.js +85 -0
  271. package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +478 -0
  272. package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +98 -0
  273. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +30 -12
  274. package/lib/composite-comp/dito/components/Recommend/index.js +5 -6
  275. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +45 -37
  276. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +10 -2
  277. package/lib/composite-comp/dito/components/Recommend/pc/index.js +134 -22
  278. package/lib/composite-comp/dito/components/Recommend/pc/index.less +54 -12
  279. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +45 -19
  280. package/lib/composite-comp/dito/components/SearchBar/index.js +7 -2
  281. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +29 -26
  282. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +13 -3
  283. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +151 -0
  284. package/lib/composite-comp/dito/components/SearchBar/pc/index.less +59 -0
  285. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
  286. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
  287. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +12 -2
  288. package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
  289. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
  290. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
  291. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
  292. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
  293. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +16 -3
  294. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
  295. package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +15 -51
  296. package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
  297. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
  298. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
  299. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
  300. package/lib/constants/component-types.js +13 -3
  301. package/lib/constants/index.js +20 -2
  302. package/lib/constants/layout.js +34 -8
  303. package/lib/core/Designer/CompListPanel/index.js +8 -33
  304. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
  305. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
  306. package/lib/core/Designer/ConfigPanel/index.js +72 -23
  307. package/lib/core/Designer/ConfigPanel/index.less +4 -0
  308. package/lib/core/Designer/History/index.js +34 -28
  309. package/lib/core/Designer/PageCompList/index.js +13 -3
  310. package/lib/core/Designer/PageCompList/index.less +10 -10
  311. package/lib/core/Designer/QuickMenuBar/index.js +1 -1
  312. package/lib/core/Designer/ViewArea/index.js +20 -6
  313. package/lib/core/Designer/index.js +43 -37
  314. package/lib/core/Renderer/index.js +21 -5
  315. package/lib/decorator/compositeDecorator.js +45 -12
  316. package/lib/decorator/index.js +8 -0
  317. package/lib/decorator/metaDecorator.js +4 -3
  318. package/lib/decorator/updateConfigDecorator.js +76 -0
  319. package/lib/locale/en/en.json +14 -1
  320. package/lib/locale/es/es.json +14 -1
  321. package/lib/locale/id/id.json +14 -1
  322. package/lib/meta-comp/components/Button/editable.js +114 -0
  323. package/lib/meta-comp/components/Button/editable.less +6 -0
  324. package/lib/meta-comp/components/Button/index.js +14 -33
  325. package/lib/meta-comp/components/Button/index.less +3 -2
  326. package/lib/meta-comp/components/Image/index.js +39 -8
  327. package/lib/meta-comp/components/Image/index.less +7 -4
  328. package/lib/meta-comp/components/Text/index.js +28 -11
  329. package/lib/meta-comp/config-panels/BaseConfig.js +8 -10
  330. package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -3
  331. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
  332. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
  333. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
  334. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
  335. package/lib/meta-comp/config-panels/ImageConfig/index.js +17 -4
  336. package/lib/meta-comp/config-panels/TextConfig/index.js +15 -6
  337. package/lib/mobx/Store.js +6 -10
  338. package/lib/utils/coreUtil.js +15 -2
  339. package/package.json +5 -3
@@ -1,17 +1,17 @@
1
1
  .m-recommend-pc {
2
2
  display: flex;
3
3
  flex-direction: column;
4
+ position: relative;
4
5
 
5
6
  .ant-tabs-nav-operations {
6
7
  display: none !important;
7
8
  }
8
9
 
9
- ::-webkit-scrollbar {
10
- width: 0;
11
- height: 0;
12
- display: none;
13
- }
14
-
10
+ // ::-webkit-scrollbar {
11
+ // width: 0;
12
+ // height: 0;
13
+ // display: none;
14
+ // }
15
15
 
16
16
  .tab-select-wrap {
17
17
  display: flex;
@@ -25,7 +25,8 @@
25
25
  .tabTitle {
26
26
  display: flex;
27
27
  align-items: center;
28
- padding: 0 24px;
28
+ // padding: 0 24px;
29
+ min-width: 100px;
29
30
  height: 100%;
30
31
  justify-content: center;
31
32
  white-space: nowrap;
@@ -49,16 +50,47 @@
49
50
  }
50
51
  }
51
52
 
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
+
52
83
  .macyContainer {
53
84
  display: flex;
54
- margin: 0 16px;
85
+ margin: 0;
55
86
  }
56
87
 
57
88
  .scrollContainer {
58
89
  display: flex;
59
90
  flex-direction: row;
60
91
  align-items: center;
61
- margin: 0 16px;
92
+ flex: 1;
93
+ margin: 0;
62
94
  overflow-x: auto;
63
95
  padding-bottom: 15px;
64
96
 
@@ -66,8 +98,14 @@
66
98
  padding-left: 100px;
67
99
  }
68
100
 
69
- .productCard {
70
- margin-right: 12px;
101
+ .scrollProductList {
102
+ display: flex;
103
+ flex-direction: row;
104
+ align-items: flex-start;
105
+
106
+ .productCard {
107
+ margin-right: 20px;
108
+ }
71
109
  }
72
110
  }
73
111
 
@@ -75,6 +113,10 @@
75
113
  display: block;
76
114
  width: fit-content;
77
115
  min-width: 80px;
78
- margin: 0 auto;
116
+ flex: none;
117
+
118
+ &.line {
119
+ margin: 0 auto 10px auto;
120
+ }
79
121
  }
80
122
  }
@@ -17,28 +17,54 @@ var getDefaultJSON = function getDefaultJSON() {
17
17
  return {
18
18
  id: (0, _uuid.v4)(),
19
19
  type: 'SEARCH',
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: ''
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: _ditoLogo["default"],
29
+ pcImgSrc: _ditoLogo["default"],
30
+ clickUrl: ''
31
+ },
32
+ hover: {
33
+ open: false,
34
+ backgroundType: 'enlarge',
35
+ magnification: 1.5,
36
+ pcImgHoverUrl: '',
37
+ h5ImgHoverUrl: ''
38
+ }
30
39
  },
31
- hover: {
32
- open: false,
33
- backgroundType: 'enlarge',
34
- magnification: 1.5,
35
- pcImgHoverUrl: '',
36
- h5ImgHoverUrl: ''
40
+ box: {
41
+ id: (0, _uuid.v4)(),
42
+ open: true,
43
+ color: {
44
+ pc: '#D92929',
45
+ mobile: '#D92929'
46
+ }
47
+ },
48
+ icon: {
49
+ id: (0, _uuid.v4)(),
50
+ open: true,
51
+ color: {
52
+ pc: '#D92929',
53
+ mobile: '#D92929'
54
+ }
37
55
  }
38
56
  },
39
- icon: {
40
- open: true,
41
- color: '#2F54EB'
57
+ spacing: {
58
+ pc: {
59
+ paddingTop: 20,
60
+ paddingBottom: 30,
61
+ marginBottom: 0
62
+ },
63
+ mobile: {
64
+ paddingTop: 8,
65
+ paddingBottom: 8,
66
+ marginBottom: 0
67
+ }
42
68
  },
43
69
  customize: {
44
70
  layout: 'left',
@@ -11,6 +11,8 @@ var _defaultJSON = require("./defaultJSON");
11
11
 
12
12
  var _index = _interopRequireDefault(require("./mobile/index"));
13
13
 
14
+ var _index2 = _interopRequireDefault(require("./pc/index"));
15
+
14
16
  var _coreUtil = require("../../../../utils/coreUtil");
15
17
 
16
18
  var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
@@ -69,8 +71,11 @@ function (_super) {
69
71
  }
70
72
 
71
73
  SearchBar.prototype.render = function () {
72
- var nodeData = this.props.nodeData;
73
- return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? null : /*#__PURE__*/_react["default"].createElement(_index["default"], {
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"], {
74
79
  data: nodeData
75
80
  }));
76
81
  };
@@ -233,50 +233,53 @@ function (_super) {
233
233
 
234
234
  SearchMobile.prototype.render = function () {
235
235
  var data = this.props.data;
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
- }
236
+ console.log('----search ', data);
237
+ var messageNum = this.state.messageNum; // let styleWrap = {};
238
+ // if (data.content.background.bgType === 'color') {
239
+ // styleWrap = {
240
+ // backgroundColor: data.content.background.color,
241
+ // opacity: data.content.background.opacity,
242
+ // };
243
+ // } else {
244
+ // styleWrap = {
245
+ // backgroundImage: `url(${data.content.background.image})`,
246
+ // backgroundPosition: 'center',
247
+ // backgroundRepeat: 'no-repeat',
248
+ // backgroundSize: '100%',
249
+ // };
250
+ // }
252
251
 
253
252
  return /*#__PURE__*/_react["default"].createElement("div", {
254
- className: "m-search-bar",
255
- style: styleWrap
253
+ className: "m-search-bar"
256
254
  }, /*#__PURE__*/_react["default"].createElement("div", {
257
255
  className: "right"
258
- }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
259
- color: "#2C2C2C",
256
+ }, data.content && data.content.box.open && /*#__PURE__*/_react["default"].createElement("div", {
257
+ className: "search-input-wrap",
260
258
  onClick: function onClick() {
261
259
  return (0, _coreUtil.clickUrl)('/search-page');
262
260
  },
261
+ style: {
262
+ borderColor: data.content.box.color.mobile
263
+ }
264
+ }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
265
+ color: data.content.box.color.mobile,
263
266
  size: 24,
264
267
  type: "icon-search2"
265
- }), /*#__PURE__*/_react["default"].createElement("div", {
268
+ })), data.content && data.content.icon.open && /*#__PURE__*/_react["default"].createElement("div", {
266
269
  className: "message-wrap"
267
270
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
268
- color: "#2C2C2C",
271
+ color: data.content.icon.color.mobile,
269
272
  onClick: function onClick() {
270
273
  return (0, _coreUtil.clickUrl)('/message-center');
271
274
  },
272
275
  size: 24,
273
- type: "icon-message"
276
+ type: "icon-ChatDots"
274
277
  }), !!messageNum && /*#__PURE__*/_react["default"].createElement("span", {
275
278
  className: "num"
276
- }, messageNum))), data.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
277
- data: data.logo,
279
+ }, messageNum))), data.content && data.content.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
280
+ data: data.content.logo,
278
281
  style: {
279
- height: 20
282
+ height: 30
280
283
  }
281
284
  }));
282
285
  };
@@ -1,6 +1,6 @@
1
1
  .m-search-bar {
2
- height: 44px;
3
- padding: 10px 16px;
2
+ height: 48px;
3
+ padding: 8px 16px;
4
4
  display: flex;
5
5
  flex-direction: row-reverse;
6
6
  align-items: center;
@@ -8,13 +8,23 @@
8
8
  width: 100%;
9
9
 
10
10
  .right {
11
- width: 60px;
12
11
  display: flex;
13
12
  align-items: center;
14
13
  justify-content: space-between;
15
14
 
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
+
16
25
  .message-wrap {
17
26
  position: relative;
27
+ margin-left: 16px;
18
28
 
19
29
  .num {
20
30
  position: absolute;
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ require("./index.less");
11
+
12
+ var _antd = require("antd");
13
+
14
+ var _locale = require("../../../../../locale");
15
+
16
+ var _components = require("../../../../../meta-comp/components");
17
+
18
+ var _common = require("../../../../../common");
19
+
20
+ var _coreUtil = require("../../../../../utils/coreUtil");
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
24
+ var __extends = void 0 && (void 0).__extends || function () {
25
+ var _extendStatics = function extendStatics(d, b) {
26
+ _extendStatics = Object.setPrototypeOf || {
27
+ __proto__: []
28
+ } instanceof Array && function (d, b) {
29
+ d.__proto__ = b;
30
+ } || function (d, b) {
31
+ for (var p in b) {
32
+ if (b.hasOwnProperty(p)) d[p] = b[p];
33
+ }
34
+ };
35
+
36
+ return _extendStatics(d, b);
37
+ };
38
+
39
+ return function (d, b) {
40
+ _extendStatics(d, b);
41
+
42
+ function __() {
43
+ this.constructor = d;
44
+ }
45
+
46
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
+ };
48
+ }();
49
+
50
+ var SearchPc =
51
+ /** @class */
52
+ function (_super) {
53
+ __extends(SearchPc, _super);
54
+
55
+ function SearchPc() {
56
+ var _this = _super !== null && _super.apply(this, arguments) || this;
57
+
58
+ _this.state = {
59
+ // messageNum: '',
60
+ inputVal: ''
61
+ };
62
+
63
+ _this.onChangeVal = function (val) {
64
+ // console.log('--onChangeVal', val);
65
+ _this.setState({
66
+ inputVal: val
67
+ });
68
+ };
69
+
70
+ _this.searchProduct = function () {
71
+ console.log('--input', _this.state.inputVal);
72
+ (0, _coreUtil.clickUrl)({
73
+ pathname: "/product/list?q=" + _this.state.inputVal
74
+ });
75
+ };
76
+
77
+ _this.keyUp = function (e) {
78
+ if (e.keyCode === 13) {
79
+ _this.searchProduct();
80
+ }
81
+ };
82
+
83
+ return _this;
84
+ }
85
+
86
+ SearchPc.prototype.componentDidMount = function () {};
87
+
88
+ SearchPc.prototype.render = function () {
89
+ var _this = this;
90
+
91
+ var data = this.props.data;
92
+ var inputVal = this.state.inputVal;
93
+ console.log('--pc data', data);
94
+ return /*#__PURE__*/_react["default"].createElement("div", {
95
+ className: "pc-search-bar"
96
+ }, /*#__PURE__*/_react["default"].createElement("div", {
97
+ className: "right"
98
+ }, data.content && data.content.box.open && /*#__PURE__*/_react["default"].createElement("div", {
99
+ className: "search-input-wrap",
100
+ style: {
101
+ borderColor: data.content.box.color.pc
102
+ }
103
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
104
+ className: "search-input",
105
+ onChange: function onChange(e) {
106
+ return _this.onChangeVal(e.target.value);
107
+ },
108
+ onKeyUp: this.keyUp,
109
+ placeholder: (0, _locale.i18n)('PLEASE_INPUT_KEYWORDS'),
110
+ value: inputVal
111
+ }), /*#__PURE__*/_react["default"].createElement("div", {
112
+ className: "search-icon",
113
+ onClick: this.searchProduct,
114
+ style: {
115
+ background: data.content.box.color.pc
116
+ }
117
+ }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
118
+ color: "#fff",
119
+ size: 24,
120
+ type: "icon-search2"
121
+ }))), data.content && data.content.icon.open && /*#__PURE__*/_react["default"].createElement("div", {
122
+ className: "shopping-wrap",
123
+ onClick: function onClick() {
124
+ return (0, _coreUtil.clickUrl)('/cart');
125
+ },
126
+ style: {
127
+ borderColor: data.content.icon.color.pc,
128
+ color: data.content.icon.color.pc
129
+ }
130
+ }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
131
+ color: data.content.icon.color.pc,
132
+ size: 16,
133
+ type: "icon-ShoppingCartSimple"
134
+ }), /*#__PURE__*/_react["default"].createElement("span", {
135
+ className: "shopping-txt"
136
+ }, (0, _locale.i18n)('SHOPPING_CART')))), data.content && data.content.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
137
+ data: data.content.logo,
138
+ style: {
139
+ height: 40
140
+ }
141
+ }));
142
+ };
143
+
144
+ SearchPc.defaultProps = {
145
+ data: {}
146
+ };
147
+ return SearchPc;
148
+ }(_react["default"].Component);
149
+
150
+ var _default = SearchPc;
151
+ exports["default"] = _default;
@@ -0,0 +1,59 @@
1
+ .pc-search-bar {
2
+ // height: 48px;
3
+ // padding: 20px 100px 30px;
4
+ display: flex;
5
+ flex-direction: row-reverse;
6
+ align-items: flex-start;
7
+ justify-content: space-between;
8
+ width: 100%;
9
+
10
+ .right {
11
+ display: flex;
12
+ flex: 1;
13
+ margin-left: 90px;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+
17
+ .search-input-wrap {
18
+ border: 1px solid #2F54EB;
19
+ border-radius: 6px;
20
+ height: 40px;
21
+ display: flex;
22
+ flex: 1;
23
+ .search-input {
24
+ border: none;
25
+ height: 38px;
26
+ box-shadow: none;
27
+ font-family: 'Open Sans';
28
+ font-style: normal;
29
+ font-weight: 400;
30
+ font-size: 14px;
31
+ }
32
+ .search-icon {
33
+ cursor: pointer;
34
+ height: 100%;
35
+ // width: 40px;
36
+ text-align: center;
37
+ padding: 8px;
38
+ }
39
+ }
40
+
41
+ .shopping-wrap {
42
+ border-radius: 4px;
43
+ margin-left: 16px;
44
+ padding: 8px 16px;
45
+ font-family: 'Open Sans';
46
+ font-style: normal;
47
+ font-weight: 400;
48
+ font-size: 14px;
49
+ line-height: 22px;
50
+ display: flex;
51
+ align-items: center;
52
+ cursor: pointer;
53
+ border: 1px solid #2F54EB;
54
+ .shopping-txt {
55
+ margin-left: 6px;
56
+ }
57
+ }
58
+ }
59
+ }
@@ -19,6 +19,8 @@ var _common = require("../../../../../common");
19
19
 
20
20
  var _locale = require("../../../../../locale");
21
21
 
22
+ require("./index.less");
23
+
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
25
 
24
26
  var __extends = void 0 && (void 0).__extends || function () {
@@ -116,14 +118,22 @@ function (_super) {
116
118
  data: panelProps.salesPrice
117
119
  }),
118
120
  metaOption: panelProps.salesPrice
119
- }, {
120
- key: '5',
121
- name: (0, _locale.i18n)('SALES_PROGRESS'),
122
- value: null,
123
- metaOption: panelProps.salesProgressVisible
124
121
  }],
125
122
  type: "switch"
126
- }));
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
+ })));
127
137
  };
128
138
 
129
139
  AComponent.defaultProps = {
@@ -0,0 +1,20 @@
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,6 +13,8 @@ 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
+
16
18
  var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
17
19
 
18
20
  var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
@@ -42,18 +44,26 @@ function FlashDealConfig(props) {
42
44
  })
43
45
  }, {
44
46
  key: '3',
47
+ name: (0, _locale.i18n)('SPACING'),
48
+ value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
49
+ configCompSpace: true,
50
+ configPaddingLR: false,
51
+ data: data.spacing
52
+ })
53
+ }, {
54
+ key: '4',
45
55
  name: (0, _locale.i18n)('CUSTOMIZE'),
46
56
  value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
47
57
  data: data.customize,
48
58
  isHideAlign: true,
49
59
  layoutSource: [{
50
60
  id: 'layout1',
51
- name: 'left',
61
+ name: 'layout1',
52
62
  image: _layout["default"]
53
63
  }]
54
64
  })
55
65
  }, {
56
- key: '4',
66
+ key: '5',
57
67
  name: (0, _locale.i18n)('BACKGROUND'),
58
68
  value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
59
69
  data: data.background
@@ -19,6 +19,8 @@ var _defaultJSON = require("../../../components/MobileNavigation/defaultJSON");
19
19
 
20
20
  var _locale = require("../../../../../locale");
21
21
 
22
+ var _decorator = require("../../../../../decorator");
23
+
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
25
 
24
26
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
@@ -118,7 +120,7 @@ function (_super) {
118
120
  ImageTextConfigGroup.defaultProps = {
119
121
  source: []
120
122
  };
121
- ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], ImageTextConfigGroup);
123
+ ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], ImageTextConfigGroup);
122
124
  return ImageTextConfigGroup;
123
125
  }(_react["default"].Component);
124
126