@fonixtree/magic-design 0.0.70 → 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 (313) 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 +24 -29
  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/ProductDetailPage/index.js +3 -3
  19. package/es/common/LinkModal/index.less +1 -1
  20. package/es/common/UrlPicker/index.js +2 -6
  21. package/es/common/UrlPicker/index.less +1 -12
  22. package/es/common/index.js +0 -8
  23. package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
  24. package/es/composite-comp/bol/components/Banner/mobile/index.js +10 -4
  25. package/es/composite-comp/bol/components/Banner/pc/index.js +6 -3
  26. package/es/composite-comp/bol/components/Button/defaultJSON.js +70 -40
  27. package/es/composite-comp/bol/components/Button/index.js +14 -8
  28. package/es/composite-comp/bol/components/Button/index.less +0 -1
  29. package/es/composite-comp/bol/components/Carousel/defaultJSON.js +16 -12
  30. package/es/composite-comp/bol/components/Carousel/index.js +6 -1
  31. package/es/composite-comp/bol/components/Carousel/mobile/index.js +7 -3
  32. package/es/composite-comp/bol/components/Carousel/pc/index.js +2 -2
  33. package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
  34. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +166 -26
  35. package/es/composite-comp/bol/components/ImageText/mobile/index.js +5 -2
  36. package/es/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
  37. package/es/composite-comp/bol/components/ImageText/pc/index.js +18 -46
  38. package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  39. package/es/composite-comp/bol/components/Newsletter/index.js +6 -1
  40. package/es/composite-comp/bol/components/Tag/defaultJSON.js +48 -38
  41. package/es/composite-comp/bol/components/Tag/index.js +14 -8
  42. package/es/composite-comp/bol/components/Tag/index.less +0 -1
  43. package/es/composite-comp/bol/components/Text/defaultJSON.js +4 -4
  44. package/es/composite-comp/bol/components/Text/index.js +8 -4
  45. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +1 -3
  46. package/{lib/composite-comp/bol/second-config-panels/TagSecondConfig → es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent}/index.js +38 -40
  47. package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  48. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +2 -4
  49. package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -1
  50. package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +1 -3
  51. package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +1 -2
  52. package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -6
  53. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +17 -9
  54. package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -7
  55. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +1 -3
  56. package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  57. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +13 -8
  58. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +5 -10
  59. package/es/composite-comp/common/components/ImageLabel/index.js +2 -2
  60. package/es/composite-comp/common/components/ImageLabel/index.less +2 -6
  61. package/es/composite-comp/common/components/ProductItem/index.less +10 -9
  62. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -24
  63. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +8 -8
  64. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +2 -62
  65. package/es/composite-comp/dito/components/FlashDeal/index.js +1 -5
  66. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -0
  67. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -5
  68. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +3 -13
  69. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +2 -3
  70. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +12 -30
  71. package/es/composite-comp/dito/components/Recommend/index.js +6 -5
  72. package/es/composite-comp/dito/components/Recommend/mobile/index.js +33 -39
  73. package/es/composite-comp/dito/components/Recommend/mobile/index.less +6 -13
  74. package/es/composite-comp/dito/components/Recommend/pc/index.js +17 -122
  75. package/es/composite-comp/dito/components/Recommend/pc/index.less +15 -56
  76. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -26
  77. package/es/composite-comp/dito/components/SearchBar/index.js +2 -7
  78. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +23 -26
  79. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +3 -13
  80. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +6 -16
  81. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -20
  82. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +3 -21
  83. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -17
  84. package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +5 -42
  85. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +29 -39
  86. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +49 -80
  87. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +1 -13
  88. package/es/constants/component-types.js +3 -13
  89. package/es/constants/index.js +2 -20
  90. package/es/constants/layout.js +8 -34
  91. package/es/core/Designer/CompListPanel/index.js +33 -8
  92. package/es/core/Designer/ConfigPanel/index.js +23 -72
  93. package/es/core/Designer/ConfigPanel/index.less +0 -4
  94. package/es/core/Designer/History/index.js +28 -34
  95. package/es/core/Designer/PageCompList/index.js +1 -9
  96. package/es/core/Designer/PageCompList/index.less +10 -10
  97. package/es/core/Designer/QuickMenuBar/index.js +1 -1
  98. package/es/core/Designer/ViewArea/index.js +6 -20
  99. package/es/core/Designer/index.js +37 -42
  100. package/es/core/Renderer/index.js +2 -17
  101. package/es/decorator/compositeDecorator.js +12 -45
  102. package/es/decorator/index.js +0 -8
  103. package/es/decorator/metaDecorator.js +2 -2
  104. package/es/locale/en/en.json +1 -14
  105. package/es/locale/es/es.json +1 -14
  106. package/es/locale/id/id.json +1 -14
  107. package/es/meta-comp/components/Button/index.js +13 -32
  108. package/es/meta-comp/components/Button/index.less +2 -10
  109. package/es/meta-comp/components/Image/index.js +7 -38
  110. package/es/meta-comp/components/Image/index.less +0 -2
  111. package/es/meta-comp/components/Text/index.js +11 -27
  112. package/es/meta-comp/config-panels/BaseConfig.js +10 -8
  113. package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -2
  114. package/es/meta-comp/config-panels/ImageConfig/index.js +4 -17
  115. package/es/meta-comp/config-panels/TextConfig/index.js +3 -10
  116. package/es/mobx/Store.js +10 -6
  117. package/es/utils/coreUtil.js +3 -17
  118. package/lib/assets/fonts/magic-box-iconfont.css +12 -24
  119. package/lib/assets/fonts/magic-box-iconfont.css.bak +12 -24
  120. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  121. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  122. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  123. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  124. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  125. package/lib/assets/less/modal.less +2 -7
  126. package/lib/common/Button/index.js +1 -2
  127. package/lib/common/Button/index.less +0 -5
  128. package/lib/common/ButtonIconLayout/index.less +2 -4
  129. package/lib/common/Collapse/index.js +4 -14
  130. package/lib/common/GroupList/index.js +3 -2
  131. package/lib/common/ImageModal/index.js +24 -29
  132. package/lib/common/ImageModal/index.less +1 -6
  133. package/lib/common/LinkModal/BundleCampaign/index.js +17 -17
  134. package/lib/common/LinkModal/CustomTable/index.js +1 -2
  135. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  136. package/lib/common/LinkModal/index.less +1 -1
  137. package/lib/common/UrlPicker/index.js +2 -6
  138. package/lib/common/UrlPicker/index.less +1 -12
  139. package/lib/common/index.js +0 -8
  140. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
  141. package/lib/composite-comp/bol/components/Banner/mobile/index.js +10 -4
  142. package/lib/composite-comp/bol/components/Banner/pc/index.js +6 -3
  143. package/lib/composite-comp/bol/components/Button/defaultJSON.js +70 -40
  144. package/lib/composite-comp/bol/components/Button/index.js +14 -8
  145. package/lib/composite-comp/bol/components/Button/index.less +0 -1
  146. package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +16 -12
  147. package/lib/composite-comp/bol/components/Carousel/index.js +6 -1
  148. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +7 -3
  149. package/lib/composite-comp/bol/components/Carousel/pc/index.js +2 -2
  150. package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
  151. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +166 -26
  152. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +5 -2
  153. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
  154. package/lib/composite-comp/bol/components/ImageText/pc/index.js +18 -46
  155. package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  156. package/lib/composite-comp/bol/components/Newsletter/index.js +6 -1
  157. package/lib/composite-comp/bol/components/Tag/defaultJSON.js +48 -38
  158. package/lib/composite-comp/bol/components/Tag/index.js +14 -8
  159. package/lib/composite-comp/bol/components/Tag/index.less +0 -1
  160. package/lib/composite-comp/bol/components/Text/defaultJSON.js +4 -4
  161. package/lib/composite-comp/bol/components/Text/index.js +8 -4
  162. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +1 -3
  163. package/{es/composite-comp/bol/second-config-panels/TagSecondConfig → lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent}/index.js +38 -40
  164. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  165. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +2 -4
  166. package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -1
  167. package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +1 -3
  168. package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +1 -2
  169. package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -6
  170. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +17 -9
  171. package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -7
  172. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +1 -3
  173. package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  174. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +13 -8
  175. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +5 -10
  176. package/lib/composite-comp/common/components/ImageLabel/index.js +2 -2
  177. package/lib/composite-comp/common/components/ImageLabel/index.less +2 -6
  178. package/lib/composite-comp/common/components/ProductItem/index.less +10 -9
  179. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -24
  180. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +8 -8
  181. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +2 -62
  182. package/lib/composite-comp/dito/components/FlashDeal/index.js +1 -5
  183. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -0
  184. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -5
  185. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +3 -13
  186. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +2 -3
  187. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +12 -30
  188. package/lib/composite-comp/dito/components/Recommend/index.js +6 -5
  189. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +33 -39
  190. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +6 -13
  191. package/lib/composite-comp/dito/components/Recommend/pc/index.js +17 -122
  192. package/lib/composite-comp/dito/components/Recommend/pc/index.less +15 -56
  193. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -26
  194. package/lib/composite-comp/dito/components/SearchBar/index.js +2 -7
  195. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +23 -26
  196. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +3 -13
  197. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +6 -16
  198. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -20
  199. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +3 -21
  200. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -17
  201. package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +5 -42
  202. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +29 -39
  203. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +49 -80
  204. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +1 -13
  205. package/lib/constants/component-types.js +3 -13
  206. package/lib/constants/index.js +2 -20
  207. package/lib/constants/layout.js +8 -34
  208. package/lib/core/Designer/CompListPanel/index.js +33 -8
  209. package/lib/core/Designer/ConfigPanel/index.js +23 -72
  210. package/lib/core/Designer/ConfigPanel/index.less +0 -4
  211. package/lib/core/Designer/History/index.js +28 -34
  212. package/lib/core/Designer/PageCompList/index.js +1 -9
  213. package/lib/core/Designer/PageCompList/index.less +10 -10
  214. package/lib/core/Designer/QuickMenuBar/index.js +1 -1
  215. package/lib/core/Designer/ViewArea/index.js +6 -20
  216. package/lib/core/Designer/index.js +37 -42
  217. package/lib/core/Renderer/index.js +2 -17
  218. package/lib/decorator/compositeDecorator.js +12 -45
  219. package/lib/decorator/index.js +0 -8
  220. package/lib/decorator/metaDecorator.js +2 -2
  221. package/lib/locale/en/en.json +1 -14
  222. package/lib/locale/es/es.json +1 -14
  223. package/lib/locale/id/id.json +1 -14
  224. package/lib/meta-comp/components/Button/index.js +13 -32
  225. package/lib/meta-comp/components/Button/index.less +2 -10
  226. package/lib/meta-comp/components/Image/index.js +7 -38
  227. package/lib/meta-comp/components/Image/index.less +0 -2
  228. package/lib/meta-comp/components/Text/index.js +11 -27
  229. package/lib/meta-comp/config-panels/BaseConfig.js +10 -8
  230. package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -2
  231. package/lib/meta-comp/config-panels/ImageConfig/index.js +4 -17
  232. package/lib/meta-comp/config-panels/TextConfig/index.js +3 -10
  233. package/lib/mobx/Store.js +10 -6
  234. package/lib/utils/coreUtil.js +3 -17
  235. package/package.json +3 -5
  236. package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
  237. package/es/common/ImgArea/components/Crop.js +0 -267
  238. package/es/common/ImgArea/components/Icons.js +0 -44
  239. package/es/common/ImgArea/components/MultiCrops.js +0 -210
  240. package/es/common/ImgArea/index.js +0 -11
  241. package/es/common/MagicLink/index.js +0 -89
  242. package/es/common/MagicLink/index.less +0 -0
  243. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -141
  244. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +0 -16
  245. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +0 -141
  246. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +0 -16
  247. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +0 -103
  248. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +0 -3
  249. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +0 -8
  250. package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +0 -3
  251. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  252. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  253. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  254. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +0 -578
  255. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +0 -121
  256. package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -131
  257. package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +0 -6
  258. package/es/composite-comp/dito/components/PcNavigation/index.js +0 -85
  259. package/es/composite-comp/dito/components/PcNavigation/pc/index.js +0 -478
  260. package/es/composite-comp/dito/components/PcNavigation/pc/index.less +0 -98
  261. package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -151
  262. package/es/composite-comp/dito/components/SearchBar/pc/index.less +0 -59
  263. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -130
  264. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +0 -128
  265. package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +0 -222
  266. package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -195
  267. package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
  268. package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +0 -73
  269. package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +0 -29
  270. package/es/decorator/updateConfigDecorator.js +0 -76
  271. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +0 -164
  272. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +0 -26
  273. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +0 -133
  274. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +0 -17
  275. package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
  276. package/lib/common/ImgArea/components/Crop.js +0 -267
  277. package/lib/common/ImgArea/components/Icons.js +0 -44
  278. package/lib/common/ImgArea/components/MultiCrops.js +0 -210
  279. package/lib/common/ImgArea/index.js +0 -11
  280. package/lib/common/MagicLink/index.js +0 -89
  281. package/lib/common/MagicLink/index.less +0 -0
  282. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -141
  283. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +0 -16
  284. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +0 -141
  285. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +0 -16
  286. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +0 -103
  287. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +0 -3
  288. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +0 -8
  289. package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +0 -3
  290. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  291. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  292. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  293. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +0 -578
  294. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +0 -121
  295. package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -131
  296. package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +0 -6
  297. package/lib/composite-comp/dito/components/PcNavigation/index.js +0 -85
  298. package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +0 -478
  299. package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +0 -98
  300. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -151
  301. package/lib/composite-comp/dito/components/SearchBar/pc/index.less +0 -59
  302. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -130
  303. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +0 -128
  304. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +0 -222
  305. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -195
  306. package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
  307. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +0 -73
  308. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +0 -29
  309. package/lib/decorator/updateConfigDecorator.js +0 -76
  310. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +0 -164
  311. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +0 -26
  312. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +0 -133
  313. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +0 -17
@@ -178,13 +178,17 @@ function (_super) {
178
178
  autoplaySpeed: data.setting.autoplay.interval * 1000,
179
179
  speed: 500,
180
180
  slidesToShow: colNum,
181
- slidesToScroll: 1,
181
+ slidesToScroll: colNum,
182
182
  beforeChange: function beforeChange(oldIndex, newIndex) {
183
183
  _this.setState({
184
184
  sliderIndex: newIndex
185
185
  });
186
186
  }
187
- };
187
+ }; // const navStyle = {
188
+ // fontSize: data.setting.navigation.size,
189
+ // color: data.setting.navigation.color,
190
+ // };
191
+
188
192
  return /*#__PURE__*/_react["default"].createElement("div", {
189
193
  className: "m-carousel-mobile",
190
194
  style: bgStyle
@@ -221,7 +225,7 @@ function (_super) {
221
225
  }), item.secondButtonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
222
226
  data: item.secondButtonTag
223
227
  }))));
224
- })), data.setting.dots.open && Math.ceil(data.groupSource.length / colNum) > 1 && /*#__PURE__*/_react["default"].createElement("div", {
228
+ })), data.setting.dots.open && /*#__PURE__*/_react["default"].createElement("div", {
225
229
  className: "swiper-ban"
226
230
  }, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
227
231
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -163,7 +163,7 @@ function (_super) {
163
163
  autoplaySpeed: data.setting.autoplay.interval * 1000,
164
164
  speed: 500,
165
165
  slidesToShow: colNum,
166
- slidesToScroll: 1,
166
+ slidesToScroll: colNum,
167
167
  beforeChange: function beforeChange(oldIndex, newIndex) {
168
168
  _this.setState({
169
169
  sliderIndex: newIndex
@@ -220,7 +220,7 @@ function (_super) {
220
220
  }), item.secondButtonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
221
221
  data: item.secondButtonTag
222
222
  }))));
223
- })), data.setting.dots.open && Math.ceil(data.groupSource.length / colNum) > 1 && /*#__PURE__*/_react["default"].createElement("div", {
223
+ })), data.setting.dots.open && /*#__PURE__*/_react["default"].createElement("div", {
224
224
  className: "swiper-ban"
225
225
  }, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
226
226
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -50,12 +50,12 @@ var getDefaultJSON = function getDefaultJSON() {
50
50
  pc: {
51
51
  paddingTop: 10,
52
52
  paddingBottom: 10,
53
- marginBottom: window.magicDesign.compSpacing * 1.5
53
+ marginBottom: 0
54
54
  },
55
55
  mobile: {
56
56
  paddingTop: 10,
57
57
  paddingBottom: 10,
58
- marginBottom: window.magicDesign.compSpacing
58
+ marginBottom: 0
59
59
  }
60
60
  },
61
61
  customize: {
@@ -9,16 +9,11 @@ var _uuid = require("uuid");
9
9
 
10
10
  var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
11
11
  var groupId = (0, _uuid.v4)();
12
- var imageId = (0, _uuid.v4)();
13
- var titleId = (0, _uuid.v4)();
14
- var textId = (0, _uuid.v4)();
15
- var buttonId = (0, _uuid.v4)();
16
- var secButtonId = (0, _uuid.v4)();
17
12
  return {
18
13
  id: groupId,
19
14
  image: {
20
15
  parentId: groupId,
21
- id: imageId,
16
+ id: (0, _uuid.v4)(),
22
17
  open: false,
23
18
  type: 'IMAGE',
24
19
  content: {
@@ -38,13 +33,13 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
38
33
  },
39
34
  title: {
40
35
  parentId: groupId,
41
- id: titleId,
36
+ id: (0, _uuid.v4)(),
42
37
  open: true,
43
38
  type: 'TEXT',
44
39
  specialContent: [],
45
40
  text: 'Title of this group',
46
41
  content: {
47
- sizeType: 'Customize font styles',
42
+ sizeType: 'Headline 1',
48
43
  fontFamily: 'Open Sans',
49
44
  fontWeight: 600,
50
45
  fontSize: 12,
@@ -60,13 +55,13 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
60
55
  },
61
56
  text: {
62
57
  parentId: groupId,
63
- id: textId,
58
+ id: (0, _uuid.v4)(),
64
59
  open: true,
65
60
  type: 'TEXT',
66
61
  specialContent: [],
67
62
  text: 'Please enter a description',
68
63
  content: {
69
- sizeType: 'Customize font styles',
64
+ sizeType: 'Headline 1',
70
65
  fontFamily: 'Open Sans',
71
66
  fontWeight: 400,
72
67
  fontSize: 10,
@@ -78,7 +73,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
78
73
  },
79
74
  button: {
80
75
  parentId: groupId,
81
- id: buttonId,
76
+ id: (0, _uuid.v4)(),
82
77
  open: true,
83
78
  type: 'BUTTON',
84
79
  text: 'Button',
@@ -87,7 +82,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
87
82
  backgroundColor: '#2F54EB'
88
83
  },
89
84
  buttonText: {
90
- sizeType: 'Customize font styles',
85
+ sizeType: 'Headline 1',
91
86
  fontFamily: 'Open Sans',
92
87
  fontWeight: 400,
93
88
  fontSize: 10,
@@ -109,7 +104,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
109
104
  backgroundColor: '#0d39ed'
110
105
  },
111
106
  buttonText: {
112
- sizeType: 'Customize font styles',
107
+ sizeType: 'Headline 1',
113
108
  fontFamily: 'Open Sans',
114
109
  fontWeight: 600,
115
110
  fontSize: 14,
@@ -133,7 +128,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
133
128
  },
134
129
  secondButton: {
135
130
  parentId: groupId,
136
- id: secButtonId,
131
+ id: (0, _uuid.v4)(),
137
132
  open: true,
138
133
  type: 'BUTTON',
139
134
  text: 'More',
@@ -142,7 +137,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
142
137
  backgroundColor: '#fff'
143
138
  },
144
139
  buttonText: {
145
- sizeType: 'Customize font styles',
140
+ sizeType: 'Headline 1',
146
141
  fontFamily: 'Open Sans',
147
142
  fontWeight: 400,
148
143
  fontSize: 10,
@@ -164,7 +159,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
164
159
  backgroundColor: '#E9F0FF'
165
160
  },
166
161
  buttonText: {
167
- sizeType: 'Customize font styles',
162
+ sizeType: 'Headline 1',
168
163
  fontFamily: 'Open Sans',
169
164
  fontWeight: 600,
170
165
  fontSize: 14,
@@ -196,7 +191,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
196
191
  open: false,
197
192
  image: {
198
193
  parentId: groupId,
199
- id: imageId,
194
+ id: (0, _uuid.v4)(),
200
195
  open: false,
201
196
  type: 'IMAGE',
202
197
  content: {
@@ -216,7 +211,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
216
211
  },
217
212
  title: {
218
213
  parentId: groupId,
219
- id: titleId,
214
+ id: (0, _uuid.v4)(),
220
215
  open: true,
221
216
  type: 'TEXT',
222
217
  specialContent: [],
@@ -236,13 +231,13 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
236
231
  vertical: {}
237
232
  },
238
233
  text: {
239
- id: textId,
234
+ id: (0, _uuid.v4)(),
240
235
  open: true,
241
236
  type: 'TEXT',
242
237
  specialContent: [],
243
238
  text: '',
244
239
  content: {
245
- sizeType: 'Customize font styles',
240
+ sizeType: 'Headline 1',
246
241
  fontFamily: 'Open Sans',
247
242
  fontWeight: 400,
248
243
  fontSize: 18,
@@ -253,7 +248,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
253
248
  vertical: {}
254
249
  },
255
250
  button: {
256
- id: buttonId,
251
+ id: (0, _uuid.v4)(),
257
252
  open: true,
258
253
  type: 'BUTTON',
259
254
  text: 'Button',
@@ -262,7 +257,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
262
257
  backgroundColor: '#2F54EB'
263
258
  },
264
259
  buttonText: {
265
- sizeType: 'Customize font styles',
260
+ sizeType: 'Headline 1',
266
261
  fontFamily: 'Open Sans',
267
262
  fontWeight: 600,
268
263
  fontSize: 14,
@@ -284,7 +279,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
284
279
  backgroundColor: '#0d39ed'
285
280
  },
286
281
  buttonText: {
287
- sizeType: 'Customize font styles',
282
+ sizeType: 'Headline 1',
288
283
  fontFamily: 'Open Sans',
289
284
  fontWeight: 600,
290
285
  fontSize: 14,
@@ -303,7 +298,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
303
298
  }
304
299
  },
305
300
  secondButton: {
306
- id: secButtonId,
301
+ id: (0, _uuid.v4)(),
307
302
  open: true,
308
303
  type: 'BUTTON',
309
304
  text: 'More',
@@ -312,7 +307,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
312
307
  backgroundColor: '#fff'
313
308
  },
314
309
  buttonText: {
315
- sizeType: 'Customize font styles',
310
+ sizeType: 'Headline 1',
316
311
  fontFamily: 'Open Sans',
317
312
  fontWeight: 600,
318
313
  fontSize: 14,
@@ -334,7 +329,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
334
329
  backgroundColor: '#E9F0FF'
335
330
  },
336
331
  buttonText: {
337
- sizeType: 'Customize font styles',
332
+ sizeType: 'Headline 1',
338
333
  fontFamily: 'Open Sans',
339
334
  fontWeight: 600,
340
335
  fontSize: 14,
@@ -368,6 +363,151 @@ var getDefaultJSON = function getDefaultJSON() {
368
363
  return {
369
364
  id: (0, _uuid.v4)(),
370
365
  type: 'IMAGE_TEXT',
366
+ // headline: {
367
+ // id: uuidv4(),
368
+ // open: true,
369
+ // type: 'TEXT',
370
+ // specialContent: [],
371
+ // text: 'Digital Maturity',
372
+ // content: {
373
+ // sizeType: 'Headline 1',
374
+ // fontFamily: 'Open Sans',
375
+ // fontWeight: 600,
376
+ // fontSize: 28,
377
+ // color: '#232F46',
378
+ // width: 0,
379
+ // },
380
+ // underline: {
381
+ // open: false,
382
+ // textDecorationColor: '',
383
+ // textDecorationStyle: 'solid',
384
+ // },
385
+ // vertical: {
386
+ // },
387
+ // },
388
+ // subtitle: {
389
+ // id: uuidv4(),
390
+ // open: true,
391
+ // type: 'TEXT',
392
+ // specialContent: [],
393
+ // text: 'Freedom to innovate and create with ODA compliant B/OSS solutions',
394
+ // content: {
395
+ // sizeType: 'Headline 1',
396
+ // fontFamily: 'Open Sans',
397
+ // fontWeight: 400,
398
+ // // textAlign: 'center',
399
+ // fontSize: 16,
400
+ // color: '#232F46',
401
+ // width: 0,
402
+ // },
403
+ // underline: {
404
+ // open: false,
405
+ // textDecorationColor: '',
406
+ // textDecorationStyle: 'solid',
407
+ // },
408
+ // vertical: {
409
+ // },
410
+ // },
411
+ // button: {
412
+ // id: uuidv4(),
413
+ // open: true,
414
+ // type: 'BUTTON',
415
+ // text: 'Button',
416
+ // content: {
417
+ // url: '',
418
+ // backgroundColor: '#2F54EB',
419
+ // },
420
+ // buttonText: {
421
+ // sizeType: 'Headline 1',
422
+ // fontFamily: 'Open Sans',
423
+ // fontWeight: 600,
424
+ // fontSize: 14,
425
+ // fontStyle: 'normal',
426
+ // color: '#fff',
427
+ // },
428
+ // buttonBorder: {
429
+ // open: true,
430
+ // borderColor: '',
431
+ // borderRadius: 6,
432
+ // },
433
+ // buttonIcon: {
434
+ // iconUrl: '',
435
+ // layout: 'right',
436
+ // },
437
+ // hover: {
438
+ // open: false,
439
+ // content: {
440
+ // backgroundColor: '#0d39ed',
441
+ // },
442
+ // buttonText: {
443
+ // sizeType: 'Headline 1',
444
+ // fontFamily: 'Open Sans',
445
+ // fontWeight: 600,
446
+ // fontSize: 14,
447
+ // fontStyle: 'normal',
448
+ // color: '#fff',
449
+ // },
450
+ // buttonBorder: {
451
+ // open: true,
452
+ // borderColor: '',
453
+ // borderRadius: 6,
454
+ // },
455
+ // buttonIcon: {
456
+ // iconUrl: '',
457
+ // layout: 'right',
458
+ // },
459
+ // },
460
+ // },
461
+ // secondButton: {
462
+ // id: uuidv4(),
463
+ // open: false,
464
+ // type: 'BUTTON',
465
+ // text: 'Button',
466
+ // content: {
467
+ // url: '',
468
+ // backgroundColor: '#FFFFFF',
469
+ // },
470
+ // buttonText: {
471
+ // sizeType: 'Headline 1',
472
+ // fontFamily: 'Open Sans',
473
+ // fontWeight: 600,
474
+ // fontSize: 14,
475
+ // fontStyle: 'normal',
476
+ // color: '#2F54EB',
477
+ // },
478
+ // buttonBorder: {
479
+ // open: true,
480
+ // borderColor: '#2F54EB',
481
+ // borderRadius: 6,
482
+ // },
483
+ // buttonIcon: {
484
+ // iconUrl: '',
485
+ // layout: 'right',
486
+ // },
487
+ // hover: {
488
+ // open: false,
489
+ // content: {
490
+ // backgroundColor: '#0d39ed',
491
+ // },
492
+ // buttonText: {
493
+ // sizeType: 'Headline 1',
494
+ // fontFamily: 'Open Sans',
495
+ // fontWeight: 600,
496
+ // fontSize: 14,
497
+ // fontStyle: 'normal',
498
+ // color: '#fff',
499
+ // },
500
+ // buttonBorder: {
501
+ // open: true,
502
+ // borderColor: '',
503
+ // borderRadius: 6,
504
+ // },
505
+ // buttonIcon: {
506
+ // iconUrl: '',
507
+ // layout: 'right',
508
+ // },
509
+ // },
510
+ // },
371
511
  spacing: {
372
512
  pc: {
373
513
  paddingTop: 10,
@@ -15,6 +15,8 @@ var _AlignSelector = require("../../../../../common/AlignSelector");
15
15
 
16
16
  var _components = require("../../../../../meta-comp/components");
17
17
 
18
+ var _businessUtil = require("../../../../../utils/businessUtil");
19
+
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
21
 
20
22
  var __extends = void 0 && (void 0).__extends || function () {
@@ -102,9 +104,10 @@ function (_super) {
102
104
  ImageTextMobile.prototype.render = function () {
103
105
  var _this = this;
104
106
 
105
- var data = this.props.data; // console.log('----imagetext mobile', data);
107
+ var data = this.props.data; // const { ready } = this.state;
108
+ // console.log('----imagetext mobile', data);
106
109
 
107
- var wrapStyle = {};
110
+ var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
108
111
  wrapStyle.textAlign = data.customize.align; // if (data.background.bgType === 'color') {
109
112
  // wrapStyle.backgroundColor = data.background.color;
110
113
  // wrapStyle.opacity = data.background.opacity ? data.background.opacity : 1;
@@ -59,8 +59,8 @@
59
59
  }
60
60
  .card-btn-wrap {
61
61
  display: flex;
62
- .card-second-btn {
63
- margin-left: 12px;
62
+ .card-first-btn {
63
+ margin-right: 12px;
64
64
  }
65
65
  }
66
66
  }
@@ -94,8 +94,8 @@
94
94
  }
95
95
  .card-btn-wrap {
96
96
  display: flex;
97
- .card-second-btn {
98
- margin-left: 12px;
97
+ .card-first-btn {
98
+ margin-right: 12px;
99
99
  }
100
100
  }
101
101
  }
@@ -135,8 +135,8 @@
135
135
  flex-direction: column;
136
136
  }
137
137
 
138
- .card-first-btn, .card-second-btn {
139
- margin-bottom: 8px;
138
+ .card-second-btn {
139
+ margin-top: 8px;
140
140
  }
141
141
  }
142
142
  .card-margin-bottom {
@@ -170,8 +170,8 @@
170
170
  }
171
171
  .card-btn-wrap {
172
172
  display: flex;
173
- .card-second-btn {
174
- margin-left: 12px;
173
+ .card-first-btn {
174
+ margin-right: 12px;
175
175
  }
176
176
  }
177
177
  }
@@ -11,8 +11,6 @@ require("./index.less");
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
- var _lodash = require("lodash");
15
-
16
14
  var _AlignSelector = require("../../../../../common/AlignSelector");
17
15
 
18
16
  var _components = require("../../../../../meta-comp/components");
@@ -65,7 +63,7 @@ var __assign = void 0 && (void 0).__assign || function () {
65
63
 
66
64
  var maxWidthAndHeight = {
67
65
  normal: 410,
68
- outside: 86,
66
+ outside: 100,
69
67
  center: 410
70
68
  };
71
69
 
@@ -78,26 +76,17 @@ function (_super) {
78
76
  var _this = _super !== null && _super.apply(this, arguments) || this;
79
77
 
80
78
  _this.state = {
81
- hoverIndex: -1,
82
- currentMaxWidth: 410
83
- };
84
-
85
- _this.listenCardWidth = function () {
86
- var _a;
87
-
88
- var data = _this.props.data;
89
-
90
- try {
91
- var cardWidth = ((_a = document.querySelector('.group-wrap .one-card')) === null || _a === void 0 ? void 0 : _a.offsetWidth) - 40;
92
- var maxLayoutWidth = maxWidthAndHeight[data.customize.layout.pcLayout];
93
-
94
- _this.setState({
95
- currentMaxWidth: Math.min(cardWidth, maxLayoutWidth)
96
- });
97
- } catch (error) {
98
- console.log(error);
99
- }
100
- };
79
+ hoverIndex: -1
80
+ }; // componentDidMount() {
81
+ // this.distroy = autorun(() => {
82
+ // this.setState({
83
+ // clickedGroup: store.clickedGroup,
84
+ // });
85
+ // });
86
+ // }
87
+ // componentWillUnmount() {
88
+ // this.distroy();
89
+ // }
101
90
 
102
91
  _this.calcWidth = function (num) {
103
92
  return (100 - (num - 1) * 2) / num + "%";
@@ -125,32 +114,15 @@ function (_super) {
125
114
  return _this;
126
115
  }
127
116
 
128
- ImageTextPc.prototype.componentDidMount = function () {
129
- var data = this.props.data;
130
- this.layout = data.customize.layout.pcLayout;
131
- this.listenCardWidth();
132
- window.addEventListener('resize', (0, _lodash.debounce)(this.listenCardWidth));
133
- };
134
-
135
- ImageTextPc.prototype.componentWillUnmount = function () {
136
- window.removeEventListener('resize', this.listenCardWidth);
137
- };
138
-
139
- ImageTextPc.prototype.componentWillReceiveProps = function (nextProps) {
140
- if (nextProps.data.customize.layout.pcLayout !== this.layout) {
141
- this.layout = nextProps.data.customize.layout.pcLayout;
142
- this.listenCardWidth();
143
- }
144
- };
145
-
146
117
  ImageTextPc.prototype.render = function () {
147
118
  var _this = this;
148
119
 
149
120
  var data = this.props.data;
150
- var _a = this.state,
151
- hoverIndex = _a.hoverIndex,
152
- currentMaxWidth = _a.currentMaxWidth;
153
- var wrapStyle = {};
121
+ var hoverIndex = this.state.hoverIndex; // console.log('====================================');
122
+ // console.log(data);
123
+ // console.log('====================================');
124
+
125
+ var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
154
126
  wrapStyle.alignItems = _AlignSelector.alignItemMap[data.customize.align];
155
127
  return /*#__PURE__*/_react["default"].createElement("div", {
156
128
  className: (0, _classnames["default"])('image-text-pc', data.customize.layout.pcLayout),
@@ -184,7 +156,7 @@ function (_super) {
184
156
  data: hoverIndex == i ? source.hover.image : source.image,
185
157
  limitWidthHeight: true,
186
158
  maxHeight: maxWidthAndHeight[data.customize.layout.pcLayout],
187
- maxWidth: currentMaxWidth,
159
+ maxWidth: maxWidthAndHeight[data.customize.layout.pcLayout],
188
160
  scale: 0.5
189
161
  })), (source.title.open && data.customize.layout.pcLayout !== 'center' && hoverIndex != i || hoverIndex == i && source.hover.title.open && data.customize.layout.pcLayout !== 'center') && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
190
162
  className: "card-title",
@@ -111,12 +111,12 @@ var getDefaultJSON = function getDefaultJSON() {
111
111
  pc: {
112
112
  paddingTop: 10,
113
113
  paddingBottom: 10,
114
- marginBottom: window.magicDesign.compSpacing * 1.5
114
+ marginBottom: 0
115
115
  },
116
116
  mobile: {
117
117
  paddingTop: 10,
118
118
  paddingBottom: 10,
119
- marginBottom: window.magicDesign.compSpacing
119
+ marginBottom: 0
120
120
  }
121
121
  },
122
122
  customize: {
@@ -19,6 +19,8 @@ var _Text = require("../../../../meta-comp/components/Text");
19
19
 
20
20
  require("./index.less");
21
21
 
22
+ var _businessUtil = require("../../../../utils/businessUtil");
23
+
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
25
 
24
26
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -88,12 +90,15 @@ function (_super) {
88
90
  // wrapStyle.backgroundPosition = 'center';
89
91
  // }
90
92
 
93
+ var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
94
+
91
95
  var style = __assign({}, (0, _Text.contentStyle)(nodeData.content.inputField.content));
92
96
 
93
97
  Reflect.deleteProperty(style, 'width');
94
98
  return /*#__PURE__*/_react["default"].createElement("div", {
95
99
  className: (0, _classnames["default"])('newsletter-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a[window.magicDesign.device] = true, _a)),
96
- onClick: this.onComponentClick
100
+ onClick: this.onComponentClick,
101
+ style: wrapStyle
97
102
  }, /*#__PURE__*/_react["default"].createElement("div", {
98
103
  className: "top-wrap"
99
104
  }, nodeData.content.inputField.open && /*#__PURE__*/_react["default"].createElement("div", {