@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
@@ -7,13 +7,13 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
10
+ var _coreUtil = require("../../../../utils/coreUtil");
11
11
 
12
- var _coreUtil = require("../../../../../utils/coreUtil");
12
+ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
13
13
 
14
- var _common = require("../../../../../common");
14
+ var _ButtonConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ButtonConfig"));
15
15
 
16
- var _locale = require("../../../../../locale");
16
+ var _locale = require("../../../../locale");
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
19
 
@@ -43,59 +43,61 @@ var __extends = void 0 && (void 0).__extends || function () {
43
43
  };
44
44
  }();
45
45
 
46
- var AComponent =
46
+ var debug = require('debug')('worker:TagSecondConfig');
47
+
48
+ var TagSecondConfig =
47
49
  /** @class */
48
50
  function (_super) {
49
- __extends(AComponent, _super);
51
+ __extends(TagSecondConfig, _super);
50
52
 
51
- function AComponent() {
53
+ function TagSecondConfig() {
52
54
  var _this = _super !== null && _super.apply(this, arguments) || this;
53
55
 
54
56
  _this.state = {};
55
57
 
56
- _this.reRender = function () {
57
- (0, _coreUtil.renderPreview)();
58
-
59
- _this.setState({});
58
+ _this.getContentPanel = function () {
59
+ var panelProps = _this.props.panelProps;
60
+ var source = [{
61
+ key: '1',
62
+ name: (0, _locale.i18n)('BUTTON_TAG'),
63
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
64
+ data: panelProps.button
65
+ }),
66
+ metaOption: panelProps.button
67
+ }];
68
+ return /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
69
+ headerSize: "middle",
70
+ onRefresh: function onRefresh() {
71
+ return (0, _coreUtil.renderPreview)();
72
+ },
73
+ showActiveColor: true,
74
+ source: source,
75
+ type: "switch"
76
+ });
60
77
  };
61
78
 
62
79
  return _this;
63
80
  }
64
81
 
65
- AComponent.prototype.render = function () {
66
- var panelProps = this.props.panelProps;
82
+ TagSecondConfig.prototype.render = function () {
67
83
  return /*#__PURE__*/_react["default"].createElement("div", {
68
- className: "recommend_content"
69
- }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
70
- headerSize: "middle",
71
- onRefresh: this.reRender,
84
+ className: "tag_second_conf_wrap"
85
+ }, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
86
+ divider: "bold",
87
+ headerSize: "large",
72
88
  source: [{
73
89
  key: '1',
74
- name: (0, _locale.i18n)('BUTTON'),
75
- value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
76
- data: panelProps.button
77
- }),
78
- metaOption: panelProps.button
79
- }, {
80
- key: '2',
81
- name: (0, _locale.i18n)('SECONDARY_BUTTON'),
82
- value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
83
- data: panelProps.secondaryButton
84
- }),
85
- metaOption: panelProps.secondaryButton
86
- }],
87
- type: "switch"
90
+ name: (0, _locale.i18n)('CONTENT'),
91
+ value: this.getContentPanel()
92
+ }]
88
93
  }));
89
94
  };
90
95
 
91
- AComponent.defaultProps = {
92
- panelProps: {
93
- button: {},
94
- secondaryButton: {}
95
- }
96
+ TagSecondConfig.defaultProps = {
97
+ panelProps: {}
96
98
  };
97
- return AComponent;
99
+ return TagSecondConfig;
98
100
  }(_react["default"].Component);
99
101
 
100
- var _default = AComponent;
102
+ var _default = TagSecondConfig;
101
103
  exports["default"] = _default;
@@ -0,0 +1,3 @@
1
+ .tag_second_conf_wrap {
2
+ width: 354px;
3
+ }
@@ -71,14 +71,14 @@ function (_super) {
71
71
  return /*#__PURE__*/_react["default"].createElement("img", {
72
72
  key: label.imgUrl || label.labelPictureUrl,
73
73
  alt: "img",
74
- className: (0, _classnames["default"])('image-label-wrap', 'img', (_a = {}, _a["position-" + (label.position || 'default')] = true, _a.small = small, _a)),
74
+ className: (0, _classnames["default"])('image-label-wrap', 'img', (_a = {}, _a["position-" + (label.position || 'null')] = true, _a.small = small, _a)),
75
75
  src: label.imgUrl || label.labelPictureUrl
76
76
  });
77
77
  }
78
78
 
79
79
  return /*#__PURE__*/_react["default"].createElement("div", {
80
80
  key: label.labelName,
81
- className: (0, _classnames["default"])('image-label-wrap', (_b = {}, _b["position-" + (label.position || 'default')] = true, _b))
81
+ className: (0, _classnames["default"])('image-label-wrap', (_b = {}, _b["position-" + (label.position || 'null')] = true, _b))
82
82
  }, label.labelName);
83
83
  });
84
84
  };
@@ -12,8 +12,7 @@
12
12
  }
13
13
  }
14
14
 
15
- &.position-1,
16
- &.position-default {
15
+ &.position-1 {
17
16
  top: 0;
18
17
  left: 0;
19
18
  }
@@ -32,4 +31,9 @@
32
31
  bottom: 0;
33
32
  right: 0;
34
33
  }
34
+
35
+ &.position-null {
36
+ top: 0;
37
+ left: 0;
38
+ }
35
39
  }
@@ -144,7 +144,7 @@ function (_super) {
144
144
  small: true
145
145
  })), /*#__PURE__*/_react["default"].createElement("div", {
146
146
  className: "content-wrap"
147
- }, panelProps.label.open && promotions.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
147
+ }, panelProps.label.open && /*#__PURE__*/_react["default"].createElement("div", {
148
148
  className: "promotions-wrap"
149
149
  }, promotions.map(function (promot, index) {
150
150
  return /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
@@ -4,14 +4,12 @@
4
4
  background: #FFFFFF;
5
5
  border: 1px solid #D2D9E5;
6
6
  width: 142px;
7
- border-radius: 8px;
7
+ cursor: pointer;
8
8
 
9
9
  .img-wrap {
10
10
  position: relative;
11
- border-radius: 8px;
12
11
 
13
12
  .product-img {
14
- border-radius: 8px;
15
13
  width: 140px;
16
14
  height: 140px;
17
15
  object-fit: cover;
@@ -24,10 +22,10 @@
24
22
  .promotions-wrap {
25
23
  display: flex;
26
24
  flex-wrap: wrap;
27
- margin-bottom: 5px;
28
25
 
29
26
  .promotion-item {
30
27
  margin-right: 5px;
28
+ margin-bottom: 5px;
31
29
 
32
30
  &:last-child {
33
31
  margin-right: 0;
@@ -36,7 +34,7 @@
36
34
  }
37
35
 
38
36
  .product-name {
39
- margin-bottom: 5px;
37
+ margin-bottom: 3px;
40
38
  // font-family: 'Montserrat';
41
39
  // font-style: normal;
42
40
  // font-weight: 500;
@@ -60,7 +58,7 @@
60
58
 
61
59
  .old-price-wrap {
62
60
  display: flex;
63
- margin-top: 3px;
61
+ margin-top: 0px;
64
62
  align-items: baseline;
65
63
  white-space: nowrap;
66
64
  overflow: hidden;
@@ -71,9 +69,11 @@
71
69
  font-family: 'Montserrat';
72
70
  font-style: normal;
73
71
  font-weight: 700;
74
- font-size: 12px;
72
+ font-size: 8px;
75
73
  line-height: 15px;
76
- color: #2F3043;
74
+ color: #fff;
75
+ padding: 0 4px;
76
+ background-color: #CE1126;
77
77
  }
78
78
 
79
79
  .old-price {
@@ -131,7 +131,7 @@
131
131
 
132
132
  &.fixHeight {
133
133
  .promotions-wrap {
134
- height: 17px;
134
+ height: 30px;
135
135
  }
136
136
 
137
137
  .product-name {
@@ -121,21 +121,32 @@ function (_super) {
121
121
  _this.props.store.setState({
122
122
  CarouselStore: __assign(__assign({}, _mobx.store.CarouselStore), (_a = {}, _a[id] = v, _a))
123
123
  });
124
+ } // 图文组件,移动端,只有第3个组件可选列数
125
+
126
+
127
+ if (component === 'imageText') {
128
+ if (!(0, _coreUtil.isPc)()) {
129
+ if (v === 'normal3') {
130
+ _this.setState({
131
+ showRowNum: true
132
+ });
133
+ } else {
134
+ _this.setState({
135
+ showRowNum: false
136
+ });
137
+ }
138
+ }
124
139
  } // 移动端导航特殊处理
140
+ // 更改需求,两个布局都需 可选行数
141
+ // if (component == 'mobileNavigation') {
142
+ // if (v === 'tile') {
143
+ // this.setState({ showRowNum: false });
144
+ // } else {
145
+ // this.setState({ showRowNum: true });
146
+ // }
147
+ // }
125
148
 
126
149
 
127
- if (component == 'mobileNavigation') {
128
- if (v === 'tile') {
129
- _this.setState({
130
- showRowNum: false
131
- });
132
- } else {
133
- _this.setState({
134
- showRowNum: true
135
- });
136
- }
137
- }
138
-
139
150
  _this.selfRender(); // this.setState({});
140
151
 
141
152
  };
@@ -192,7 +203,7 @@ function (_super) {
192
203
  rowNumArr.push(i);
193
204
  }
194
205
 
195
- var _showRowNum = showRowNum && ((0, _coreUtil.isPc)() && this.props.data.pcRowNum || !(0, _coreUtil.isPc)() && this.props.data.rowNum);
206
+ var _showRowNum = showRowNum && ((0, _coreUtil.isPc)() && data.pcRowNum || !(0, _coreUtil.isPc)() && data.rowNum);
196
207
 
197
208
  return /*#__PURE__*/_react["default"].createElement("div", {
198
209
  className: "m-customize-config"
@@ -65,14 +65,14 @@ function (_super) {
65
65
  configPaddingLR = _a.configPaddingLR,
66
66
  configCompSpace = _a.configCompSpace,
67
67
  configWidth = _a.configWidth;
68
- var obj = data[window.magicDesign.device];
68
+ var obj = data[window.magicDesign.device] || {};
69
69
  return /*#__PURE__*/_react["default"].createElement("div", {
70
70
  className: "spacing-config-container"
71
71
  }, configWidth && /*#__PURE__*/_react["default"].createElement(_common.Field, {
72
72
  title: "Width"
73
73
  }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
74
74
  maxVal: window.magicDesign.device === 'pc' ? 1240 : 375,
75
- minVal: window.magicDesign.device === 'pc' ? 1010 : 348,
75
+ minVal: window.magicDesign.device === 'pc' ? 806 : 348,
76
76
  onChange: function onChange(value) {
77
77
  obj.contentWidth = value.count;
78
78
 
@@ -89,46 +89,46 @@ function (_super) {
89
89
  className: "padding-item"
90
90
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
91
91
  type: "icon-padding-top"
92
- }), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
92
+ }), /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
93
93
  onChange: function onChange(e) {
94
- obj.paddingTop = e.target.value;
94
+ obj.paddingTop = e;
95
95
 
96
96
  _this.selfRender();
97
97
  },
98
- value: obj.paddingTop
98
+ value: obj.paddingTop || 0
99
99
  })), /*#__PURE__*/_react["default"].createElement("div", {
100
100
  className: "padding-item"
101
101
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
102
102
  type: "icon-padding-bottom"
103
- }), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
103
+ }), /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
104
104
  onChange: function onChange(e) {
105
- obj.paddingBottom = e.target.value;
105
+ obj.paddingBottom = e;
106
106
 
107
107
  _this.selfRender();
108
108
  },
109
- value: obj.paddingBottom
109
+ value: obj.paddingBottom || 0
110
110
  })), configPaddingLR && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
111
111
  className: "padding-item"
112
112
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
113
113
  type: "icon-padding-left"
114
- }), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
114
+ }), /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
115
115
  onChange: function onChange(e) {
116
- obj.paddingLeft = e.target.value;
116
+ obj.paddingLeft = e;
117
117
 
118
118
  _this.selfRender();
119
119
  },
120
- value: obj.paddingLeft
120
+ value: obj.paddingLeft || 0
121
121
  })), /*#__PURE__*/_react["default"].createElement("div", {
122
122
  className: "padding-item"
123
123
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
124
124
  type: "icon-padding-right"
125
- }), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
125
+ }), /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
126
126
  onChange: function onChange(e) {
127
- obj.paddingRight = e.target.value;
127
+ obj.paddingRight = e;
128
128
 
129
129
  _this.selfRender();
130
130
  },
131
- value: obj.paddingRight
131
+ value: obj.paddingRight || 0
132
132
  }))))), configCompSpace && /*#__PURE__*/_react["default"].createElement(_common.Field, {
133
133
  title: (0, _locale.i18n)('COMPONENT_SPACING')
134
134
  }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
@@ -146,23 +146,23 @@ function (_super) {
146
146
  };
147
147
 
148
148
  SpacingConfig.defaultProps = {
149
- configPaddingLR: false,
149
+ configPaddingLR: true,
150
150
  configCompSpace: true,
151
151
  configWidth: false,
152
152
  data: {
153
153
  pc: {
154
- paddingTop: 10,
155
- paddingBottom: 10,
156
- paddingLeft: 10,
157
- paddingRight: 10,
158
- marginBottom: 10
154
+ paddingTop: 0,
155
+ paddingBottom: 0,
156
+ paddingLeft: 0,
157
+ paddingRight: 0,
158
+ marginBottom: 0
159
159
  },
160
160
  mobile: {
161
- paddingTop: 10,
162
- paddingBottom: 10,
163
- paddingLeft: 10,
164
- paddingRight: 10,
165
- marginBottom: 10
161
+ paddingTop: 0,
162
+ paddingBottom: 0,
163
+ paddingLeft: 0,
164
+ paddingRight: 0,
165
+ marginBottom: 0
166
166
  }
167
167
  }
168
168
  };
@@ -8,11 +8,13 @@ exports.getDefaultJSON = void 0;
8
8
  var _uuid = require("uuid");
9
9
 
10
10
  var getDefaultJSON = function getDefaultJSON() {
11
+ var contentId = (0, _uuid.v4)();
11
12
  return {
12
13
  id: (0, _uuid.v4)(),
13
14
  type: 'FLASH_DEAL',
14
15
  title: {
15
16
  icon: {
17
+ id: (0, _uuid.v4)(),
16
18
  open: true,
17
19
  url: '/get/resource/platform/conf/20220722/picture/组633391550411058986147840.png'
18
20
  },
@@ -23,6 +25,7 @@ var getDefaultJSON = function getDefaultJSON() {
23
25
  specialContent: [],
24
26
  text: 'Flash Deal',
25
27
  content: {
28
+ sizeType: 'Customize font styles',
26
29
  fontFamily: 'Open Sans',
27
30
  fontWeight: 600,
28
31
  fontSize: 14,
@@ -48,6 +51,7 @@ var getDefaultJSON = function getDefaultJSON() {
48
51
  backgroundColor: ''
49
52
  },
50
53
  buttonText: {
54
+ sizeType: 'Customize font styles',
51
55
  fontFamily: 'Open Sans',
52
56
  fontWeight: 600,
53
57
  fontSize: 12,
@@ -60,6 +64,20 @@ var getDefaultJSON = function getDefaultJSON() {
60
64
  borderColor: '',
61
65
  borderRadius: 6
62
66
  },
67
+ spacing: {
68
+ pc: {
69
+ paddingTop: 2,
70
+ paddingBottom: 2,
71
+ paddingLeft: 5,
72
+ paddingRight: 5
73
+ },
74
+ mobile: {
75
+ paddingTop: 2,
76
+ paddingBottom: 2,
77
+ paddingLeft: 5,
78
+ paddingRight: 5
79
+ }
80
+ },
63
81
  buttonIcon: {
64
82
  iconUrl: '/get/resource/platform/conf/20220719/picture/icon-arrow-right-s1549371733179686912.png',
65
83
  layout: 'right'
@@ -68,9 +86,11 @@ var getDefaultJSON = function getDefaultJSON() {
68
86
  }
69
87
  },
70
88
  content: {
89
+ id: contentId,
71
90
  sortType: '1',
72
91
  label: {
73
92
  id: (0, _uuid.v4)(),
93
+ contentId: contentId,
74
94
  open: true,
75
95
  type: 'BUTTON',
76
96
  text: 'Button',
@@ -79,6 +99,7 @@ var getDefaultJSON = function getDefaultJSON() {
79
99
  backgroundColor: '#CC1D20'
80
100
  },
81
101
  buttonText: {
102
+ sizeType: 'Customize font styles',
82
103
  fontFamily: 'Open Sans',
83
104
  fontWeight: 600,
84
105
  fontSize: 8,
@@ -91,6 +112,20 @@ var getDefaultJSON = function getDefaultJSON() {
91
112
  borderColor: '',
92
113
  borderRadius: 7
93
114
  },
115
+ spacing: {
116
+ pc: {
117
+ paddingTop: 2,
118
+ paddingBottom: 2,
119
+ paddingLeft: 3,
120
+ paddingRight: 3
121
+ },
122
+ mobile: {
123
+ paddingTop: 2,
124
+ paddingBottom: 2,
125
+ paddingLeft: 3,
126
+ paddingRight: 3
127
+ }
128
+ },
94
129
  buttonIcon: {
95
130
  iconUrl: '',
96
131
  layout: 'right'
@@ -99,11 +134,13 @@ var getDefaultJSON = function getDefaultJSON() {
99
134
  },
100
135
  productName: {
101
136
  id: (0, _uuid.v4)(),
137
+ contentId: contentId,
102
138
  open: true,
103
139
  type: 'Text',
104
140
  specialContent: [],
105
141
  text: 'Flash Deal',
106
142
  content: {
143
+ sizeType: 'Customize font styles',
107
144
  fontFamily: 'Open Sans',
108
145
  fontWeight: 500,
109
146
  fontSize: 14,
@@ -121,11 +158,13 @@ var getDefaultJSON = function getDefaultJSON() {
121
158
  },
122
159
  activityPrice: {
123
160
  id: (0, _uuid.v4)(),
161
+ contentId: contentId,
124
162
  open: true,
125
163
  type: 'Text',
126
164
  specialContent: [],
127
165
  text: 'Flash Deal',
128
166
  content: {
167
+ sizeType: 'Customize font styles',
129
168
  fontFamily: 'Open Sans',
130
169
  fontWeight: 600,
131
170
  fontSize: 14,
@@ -143,11 +182,13 @@ var getDefaultJSON = function getDefaultJSON() {
143
182
  },
144
183
  salesPrice: {
145
184
  id: (0, _uuid.v4)(),
185
+ contentId: contentId,
146
186
  open: true,
147
187
  type: 'Text',
148
188
  specialContent: [],
149
189
  text: 'Flash Deal',
150
190
  content: {
191
+ sizeType: 'Customize font styles',
151
192
  fontFamily: 'Open Sans',
152
193
  fontWeight: 500,
153
194
  fontSize: 10,
@@ -167,9 +208,28 @@ var getDefaultJSON = function getDefaultJSON() {
167
208
  open: true
168
209
  }
169
210
  },
211
+ spacing: {
212
+ pc: {
213
+ paddingTop: 0,
214
+ paddingBottom: 0,
215
+ paddingLeft: 0,
216
+ paddingRight: 0,
217
+ marginBottom: window.magicDesign.compSpacing * 1.5
218
+ },
219
+ mobile: {
220
+ paddingTop: 0,
221
+ paddingBottom: 0,
222
+ paddingLeft: 0,
223
+ paddingRight: 0,
224
+ marginBottom: window.magicDesign.compSpacing
225
+ }
226
+ },
170
227
  customize: {
171
- layout: 'left',
172
- align: 'left'
228
+ layout: 'layout1',
229
+ align: 'left',
230
+ pcRowNum: 6,
231
+ pcMaxRowNum: 6,
232
+ pcMinRowNum: 5
173
233
  },
174
234
  background: {
175
235
  opacity: 100,
@@ -9,6 +9,8 @@ var _react = _interopRequireWildcard(require("react"));
9
9
 
10
10
  var _mobile = _interopRequireDefault(require("./mobile"));
11
11
 
12
+ var _pc = _interopRequireDefault(require("./pc"));
13
+
12
14
  var _defaultJSON = require("./defaultJSON");
13
15
 
14
16
  var _coreUtil = require("../../../../utils/coreUtil");
@@ -70,7 +72,9 @@ function (_super) {
70
72
 
71
73
  FlashDeal.prototype.render = function () {
72
74
  var nodeData = this.props.nodeData;
73
- return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
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"], {
74
78
  panelProps: nodeData
75
79
  }));
76
80
  };
@@ -64,7 +64,6 @@
64
64
  overflow-x: auto;
65
65
  overflow-y: hidden;
66
66
  white-space: nowrap;
67
- border-radius: 9px;
68
67
  display: flex;
69
68
  align-items: flex-start;
70
69
  position: relative;