@fonixtree/magic-design 0.0.71 → 0.0.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +12 -24
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +12 -24
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  4. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  6. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  8. package/es/assets/less/modal.less +2 -7
  9. package/es/common/Button/index.js +1 -2
  10. package/es/common/Button/index.less +0 -5
  11. package/es/common/ButtonIconLayout/index.less +2 -4
  12. package/es/common/Collapse/index.js +4 -14
  13. package/es/common/GroupList/index.js +3 -2
  14. package/es/common/ImageModal/index.js +26 -31
  15. package/es/common/ImageModal/index.less +1 -6
  16. package/es/common/LinkModal/BundleCampaign/index.js +17 -17
  17. package/es/common/LinkModal/CustomTable/index.js +1 -2
  18. package/es/common/LinkModal/FilteredProductModal/index.js +2 -2
  19. package/es/common/LinkModal/FilteredProductModal/index.less +2 -6
  20. package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
  21. package/es/common/LinkModal/index.less +1 -1
  22. package/es/common/ProductModal/index.js +1 -1
  23. package/es/common/ProductModal/index.less +7 -12
  24. package/es/common/UrlPicker/index.js +2 -6
  25. package/es/common/UrlPicker/index.less +1 -12
  26. package/es/common/index.js +0 -8
  27. package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
  28. package/es/composite-comp/bol/components/Banner/mobile/index.js +10 -4
  29. package/es/composite-comp/bol/components/Banner/pc/index.js +6 -3
  30. package/es/composite-comp/bol/components/Button/defaultJSON.js +70 -40
  31. package/es/composite-comp/bol/components/Button/index.js +14 -8
  32. package/es/composite-comp/bol/components/Button/index.less +0 -1
  33. package/es/composite-comp/bol/components/Carousel/defaultJSON.js +16 -12
  34. package/es/composite-comp/bol/components/Carousel/index.js +6 -1
  35. package/es/composite-comp/bol/components/Carousel/mobile/index.js +7 -4
  36. package/es/composite-comp/bol/components/Carousel/pc/index.js +7 -12
  37. package/es/composite-comp/bol/components/Carousel/pc/index.less +5 -13
  38. package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
  39. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +166 -26
  40. package/es/composite-comp/bol/components/ImageText/mobile/index.js +5 -2
  41. package/es/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
  42. package/es/composite-comp/bol/components/ImageText/pc/index.js +18 -46
  43. package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  44. package/es/composite-comp/bol/components/Newsletter/index.js +6 -1
  45. package/es/composite-comp/bol/components/Tag/defaultJSON.js +48 -38
  46. package/es/composite-comp/bol/components/Tag/index.js +14 -8
  47. package/es/composite-comp/bol/components/Tag/index.less +0 -1
  48. package/es/composite-comp/bol/components/Text/defaultJSON.js +4 -4
  49. package/es/composite-comp/bol/components/Text/index.js +8 -4
  50. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +1 -3
  51. package/{lib/composite-comp/bol/second-config-panels/TagSecondConfig → es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent}/index.js +38 -40
  52. package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  53. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +2 -4
  54. package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -1
  55. package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +1 -3
  56. package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +1 -2
  57. package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -6
  58. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +17 -9
  59. package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -7
  60. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +1 -3
  61. package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  62. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +13 -8
  63. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +5 -10
  64. package/es/composite-comp/common/components/ImageLabel/index.js +2 -2
  65. package/es/composite-comp/common/components/ImageLabel/index.less +2 -6
  66. package/es/composite-comp/common/components/ProductItem/index.less +10 -9
  67. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -24
  68. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +8 -8
  69. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +2 -62
  70. package/es/composite-comp/dito/components/FlashDeal/index.js +1 -5
  71. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -0
  72. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -5
  73. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +3 -13
  74. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +2 -3
  75. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +12 -30
  76. package/es/composite-comp/dito/components/Recommend/index.js +6 -5
  77. package/es/composite-comp/dito/components/Recommend/mobile/index.js +35 -40
  78. package/es/composite-comp/dito/components/Recommend/mobile/index.less +3 -10
  79. package/es/composite-comp/dito/components/Recommend/pc/index.js +19 -123
  80. package/es/composite-comp/dito/components/Recommend/pc/index.less +12 -53
  81. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -26
  82. package/es/composite-comp/dito/components/SearchBar/index.js +2 -7
  83. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +23 -26
  84. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +3 -13
  85. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +6 -16
  86. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -20
  87. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +3 -21
  88. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -17
  89. package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +5 -42
  90. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +29 -39
  91. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +49 -80
  92. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +1 -13
  93. package/es/constants/component-types.js +3 -13
  94. package/es/constants/index.js +2 -20
  95. package/es/constants/layout.js +8 -34
  96. package/es/core/Designer/CompListPanel/index.js +33 -8
  97. package/es/core/Designer/ConfigPanel/index.js +23 -72
  98. package/es/core/Designer/ConfigPanel/index.less +0 -4
  99. package/es/core/Designer/History/index.js +28 -34
  100. package/es/core/Designer/PageCompList/index.js +3 -13
  101. package/es/core/Designer/PageCompList/index.less +10 -10
  102. package/es/core/Designer/QuickMenuBar/index.js +1 -1
  103. package/es/core/Designer/ViewArea/index.js +6 -20
  104. package/es/core/Designer/index.js +37 -42
  105. package/es/core/Renderer/index.js +2 -17
  106. package/es/decorator/compositeDecorator.js +12 -45
  107. package/es/decorator/index.js +0 -8
  108. package/es/decorator/metaDecorator.js +2 -2
  109. package/es/locale/en/en.json +1 -14
  110. package/es/locale/es/es.json +1 -14
  111. package/es/locale/id/id.json +1 -14
  112. package/es/meta-comp/components/Button/index.js +13 -32
  113. package/es/meta-comp/components/Button/index.less +2 -10
  114. package/es/meta-comp/components/Image/index.js +7 -38
  115. package/es/meta-comp/components/Image/index.less +0 -2
  116. package/es/meta-comp/components/Text/index.js +11 -27
  117. package/es/meta-comp/config-panels/BaseConfig.js +10 -8
  118. package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -2
  119. package/es/meta-comp/config-panels/ImageConfig/index.js +4 -17
  120. package/es/meta-comp/config-panels/TextConfig/index.js +3 -10
  121. package/es/mobx/Store.js +10 -6
  122. package/es/utils/coreUtil.js +3 -17
  123. package/lib/assets/fonts/magic-box-iconfont.css +12 -24
  124. package/lib/assets/fonts/magic-box-iconfont.css.bak +12 -24
  125. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  126. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  127. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  128. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  129. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  130. package/lib/assets/less/modal.less +2 -7
  131. package/lib/common/Button/index.js +1 -2
  132. package/lib/common/Button/index.less +0 -5
  133. package/lib/common/ButtonIconLayout/index.less +2 -4
  134. package/lib/common/Collapse/index.js +4 -14
  135. package/lib/common/GroupList/index.js +3 -2
  136. package/lib/common/ImageModal/index.js +26 -31
  137. package/lib/common/ImageModal/index.less +1 -6
  138. package/lib/common/LinkModal/BundleCampaign/index.js +17 -17
  139. package/lib/common/LinkModal/CustomTable/index.js +1 -2
  140. package/lib/common/LinkModal/FilteredProductModal/index.js +2 -2
  141. package/lib/common/LinkModal/FilteredProductModal/index.less +2 -6
  142. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  143. package/lib/common/LinkModal/index.less +1 -1
  144. package/lib/common/ProductModal/index.js +1 -1
  145. package/lib/common/ProductModal/index.less +7 -12
  146. package/lib/common/UrlPicker/index.js +2 -6
  147. package/lib/common/UrlPicker/index.less +1 -12
  148. package/lib/common/index.js +0 -8
  149. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
  150. package/lib/composite-comp/bol/components/Banner/mobile/index.js +10 -4
  151. package/lib/composite-comp/bol/components/Banner/pc/index.js +6 -3
  152. package/lib/composite-comp/bol/components/Button/defaultJSON.js +70 -40
  153. package/lib/composite-comp/bol/components/Button/index.js +14 -8
  154. package/lib/composite-comp/bol/components/Button/index.less +0 -1
  155. package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +16 -12
  156. package/lib/composite-comp/bol/components/Carousel/index.js +6 -1
  157. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +7 -4
  158. package/lib/composite-comp/bol/components/Carousel/pc/index.js +7 -12
  159. package/lib/composite-comp/bol/components/Carousel/pc/index.less +5 -13
  160. package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
  161. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +166 -26
  162. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +5 -2
  163. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
  164. package/lib/composite-comp/bol/components/ImageText/pc/index.js +18 -46
  165. package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  166. package/lib/composite-comp/bol/components/Newsletter/index.js +6 -1
  167. package/lib/composite-comp/bol/components/Tag/defaultJSON.js +48 -38
  168. package/lib/composite-comp/bol/components/Tag/index.js +14 -8
  169. package/lib/composite-comp/bol/components/Tag/index.less +0 -1
  170. package/lib/composite-comp/bol/components/Text/defaultJSON.js +4 -4
  171. package/lib/composite-comp/bol/components/Text/index.js +8 -4
  172. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +1 -3
  173. package/{es/composite-comp/bol/second-config-panels/TagSecondConfig → lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent}/index.js +38 -40
  174. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  175. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +2 -4
  176. package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -1
  177. package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +1 -3
  178. package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +1 -2
  179. package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -6
  180. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +17 -9
  181. package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -7
  182. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +1 -3
  183. package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  184. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +13 -8
  185. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +5 -10
  186. package/lib/composite-comp/common/components/ImageLabel/index.js +2 -2
  187. package/lib/composite-comp/common/components/ImageLabel/index.less +2 -6
  188. package/lib/composite-comp/common/components/ProductItem/index.less +10 -9
  189. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -24
  190. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +8 -8
  191. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +2 -62
  192. package/lib/composite-comp/dito/components/FlashDeal/index.js +1 -5
  193. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -0
  194. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -5
  195. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +3 -13
  196. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +2 -3
  197. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +12 -30
  198. package/lib/composite-comp/dito/components/Recommend/index.js +6 -5
  199. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +35 -40
  200. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +3 -10
  201. package/lib/composite-comp/dito/components/Recommend/pc/index.js +19 -123
  202. package/lib/composite-comp/dito/components/Recommend/pc/index.less +12 -53
  203. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -26
  204. package/lib/composite-comp/dito/components/SearchBar/index.js +2 -7
  205. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +23 -26
  206. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +3 -13
  207. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +6 -16
  208. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -20
  209. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +3 -21
  210. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -17
  211. package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +5 -42
  212. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +29 -39
  213. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +49 -80
  214. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +1 -13
  215. package/lib/constants/component-types.js +3 -13
  216. package/lib/constants/index.js +2 -20
  217. package/lib/constants/layout.js +8 -34
  218. package/lib/core/Designer/CompListPanel/index.js +33 -8
  219. package/lib/core/Designer/ConfigPanel/index.js +23 -72
  220. package/lib/core/Designer/ConfigPanel/index.less +0 -4
  221. package/lib/core/Designer/History/index.js +28 -34
  222. package/lib/core/Designer/PageCompList/index.js +3 -13
  223. package/lib/core/Designer/PageCompList/index.less +10 -10
  224. package/lib/core/Designer/QuickMenuBar/index.js +1 -1
  225. package/lib/core/Designer/ViewArea/index.js +6 -20
  226. package/lib/core/Designer/index.js +37 -42
  227. package/lib/core/Renderer/index.js +2 -17
  228. package/lib/decorator/compositeDecorator.js +12 -45
  229. package/lib/decorator/index.js +0 -8
  230. package/lib/decorator/metaDecorator.js +2 -2
  231. package/lib/locale/en/en.json +1 -14
  232. package/lib/locale/es/es.json +1 -14
  233. package/lib/locale/id/id.json +1 -14
  234. package/lib/meta-comp/components/Button/index.js +13 -32
  235. package/lib/meta-comp/components/Button/index.less +2 -10
  236. package/lib/meta-comp/components/Image/index.js +7 -38
  237. package/lib/meta-comp/components/Image/index.less +0 -2
  238. package/lib/meta-comp/components/Text/index.js +11 -27
  239. package/lib/meta-comp/config-panels/BaseConfig.js +10 -8
  240. package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -2
  241. package/lib/meta-comp/config-panels/ImageConfig/index.js +4 -17
  242. package/lib/meta-comp/config-panels/TextConfig/index.js +3 -10
  243. package/lib/mobx/Store.js +10 -6
  244. package/lib/utils/coreUtil.js +3 -17
  245. package/package.json +3 -5
  246. package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
  247. package/es/common/ImgArea/components/Crop.js +0 -267
  248. package/es/common/ImgArea/components/Icons.js +0 -44
  249. package/es/common/ImgArea/components/MultiCrops.js +0 -210
  250. package/es/common/ImgArea/index.js +0 -11
  251. package/es/common/MagicLink/index.js +0 -89
  252. package/es/common/MagicLink/index.less +0 -0
  253. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -141
  254. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +0 -16
  255. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +0 -141
  256. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +0 -16
  257. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +0 -103
  258. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +0 -3
  259. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +0 -8
  260. package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +0 -3
  261. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  262. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  263. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  264. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +0 -578
  265. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +0 -121
  266. package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -131
  267. package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +0 -6
  268. package/es/composite-comp/dito/components/PcNavigation/index.js +0 -85
  269. package/es/composite-comp/dito/components/PcNavigation/pc/index.js +0 -478
  270. package/es/composite-comp/dito/components/PcNavigation/pc/index.less +0 -98
  271. package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -151
  272. package/es/composite-comp/dito/components/SearchBar/pc/index.less +0 -59
  273. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -130
  274. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +0 -128
  275. package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +0 -222
  276. package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -195
  277. package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
  278. package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +0 -73
  279. package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +0 -29
  280. package/es/decorator/updateConfigDecorator.js +0 -76
  281. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +0 -164
  282. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +0 -26
  283. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +0 -133
  284. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +0 -17
  285. package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
  286. package/lib/common/ImgArea/components/Crop.js +0 -267
  287. package/lib/common/ImgArea/components/Icons.js +0 -44
  288. package/lib/common/ImgArea/components/MultiCrops.js +0 -210
  289. package/lib/common/ImgArea/index.js +0 -11
  290. package/lib/common/MagicLink/index.js +0 -89
  291. package/lib/common/MagicLink/index.less +0 -0
  292. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -141
  293. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +0 -16
  294. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +0 -141
  295. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +0 -16
  296. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +0 -103
  297. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +0 -3
  298. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +0 -8
  299. package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +0 -3
  300. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  301. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  302. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  303. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +0 -578
  304. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +0 -121
  305. package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -131
  306. package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +0 -6
  307. package/lib/composite-comp/dito/components/PcNavigation/index.js +0 -85
  308. package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +0 -478
  309. package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +0 -98
  310. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -151
  311. package/lib/composite-comp/dito/components/SearchBar/pc/index.less +0 -59
  312. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -130
  313. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +0 -128
  314. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +0 -222
  315. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -195
  316. package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
  317. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +0 -73
  318. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +0 -29
  319. package/lib/decorator/updateConfigDecorator.js +0 -76
  320. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +0 -164
  321. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +0 -26
  322. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +0 -133
  323. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +0 -17
@@ -7,6 +7,10 @@ exports.imagesGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _defaultImg = _interopRequireDefault(require("./imgs/defaultImg.png"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
+
10
14
  var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
11
15
  var groupId = (0, _uuid.v4)();
12
16
  return {
@@ -20,8 +24,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
20
24
  content: {
21
25
  h5Name: 'h5Name',
22
26
  pcName: 'pcName',
23
- h5ImgSrc: '',
24
- pcImgSrc: '',
27
+ h5ImgSrc: _defaultImg["default"],
28
+ pcImgSrc: _defaultImg["default"],
25
29
  clickUrl: ''
26
30
  },
27
31
  hover: {
@@ -40,7 +44,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
40
44
  specialContent: [],
41
45
  text: 'Title of this group',
42
46
  content: {
43
- sizeType: 'Customize font styles',
47
+ sizeType: 'Headline 1',
44
48
  fontFamily: 'Open Sans',
45
49
  fontWeight: 600,
46
50
  fontSize: 16,
@@ -63,7 +67,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
63
67
  specialContent: [],
64
68
  text: 'Please enter a description',
65
69
  content: {
66
- sizeType: 'Customize font styles',
70
+ sizeType: 'Headline 1',
67
71
  fontFamily: 'Open Sans',
68
72
  fontWeight: 400,
69
73
  fontSize: 14,
@@ -82,8 +86,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
82
86
  content: {
83
87
  h5Name: '',
84
88
  pcName: '',
85
- h5ImgSrc: '',
86
- pcImgSrc: '',
89
+ h5ImgSrc: _defaultImg["default"],
90
+ pcImgSrc: _defaultImg["default"],
87
91
  clickUrl: ''
88
92
  },
89
93
  hover: {
@@ -105,7 +109,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
105
109
  backgroundColor: '#E6EAF0'
106
110
  },
107
111
  buttonText: {
108
- sizeType: 'Customize font styles',
112
+ // sizeType: 'Headline 1',
109
113
  fontFamily: 'Open Sans',
110
114
  fontWeight: 600,
111
115
  fontSize: 14,
@@ -141,7 +145,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
141
145
  backgroundColor: '#E6EAF0'
142
146
  },
143
147
  buttonText: {
144
- sizeType: 'Customize font styles',
148
+ // sizeType: 'Headline 1',
145
149
  fontFamily: 'Open Sans',
146
150
  fontWeight: 600,
147
151
  fontSize: 14,
@@ -170,7 +174,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
170
174
  backgroundColor: '#E6EAF0'
171
175
  },
172
176
  buttonText: {
173
- sizeType: 'Customize font styles',
177
+ // sizeType: 'Headline 1',
174
178
  fontFamily: 'Open Sans',
175
179
  fontWeight: 600,
176
180
  fontSize: 14,
@@ -206,7 +210,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
206
210
  backgroundColor: '#E6EAF0'
207
211
  },
208
212
  buttonText: {
209
- sizeType: 'Customize font styles',
213
+ // sizeType: 'Headline 1',
210
214
  fontFamily: 'Open Sans',
211
215
  fontWeight: 600,
212
216
  fontSize: 14,
@@ -262,12 +266,12 @@ var getDefaultJSON = function getDefaultJSON() {
262
266
  pc: {
263
267
  paddingTop: 10,
264
268
  paddingBottom: 10,
265
- marginBottom: window.magicDesign.compSpacing * 1.5
269
+ marginBottom: 0
266
270
  },
267
271
  mobile: {
268
272
  paddingTop: 10,
269
273
  paddingBottom: 10,
270
- marginBottom: window.magicDesign.compSpacing
274
+ marginBottom: 0
271
275
  }
272
276
  },
273
277
  customize: {
@@ -15,6 +15,8 @@ var _defaultJSON = require("./defaultJSON");
15
15
 
16
16
  var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
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
  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); }
@@ -70,7 +72,10 @@ function (_super) {
70
72
 
71
73
  Carousel.prototype.render = function () {
72
74
  var nodeData = this.props.nodeData;
73
- return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
75
+ var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
76
+ return /*#__PURE__*/_react["default"].createElement("div", {
77
+ style: wrapStyle
78
+ }, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
74
79
  data: nodeData
75
80
  }) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
76
81
  data: nodeData
@@ -177,15 +177,18 @@ function (_super) {
177
177
  autoplay: data.setting.autoplay.open,
178
178
  autoplaySpeed: data.setting.autoplay.interval * 1000,
179
179
  speed: 500,
180
- draggable: window.magicDesign.mode === 'renderer',
181
180
  slidesToShow: colNum,
182
- slidesToScroll: 1,
181
+ slidesToScroll: colNum,
183
182
  beforeChange: function beforeChange(oldIndex, newIndex) {
184
183
  _this.setState({
185
184
  sliderIndex: newIndex
186
185
  });
187
186
  }
188
- };
187
+ }; // const navStyle = {
188
+ // fontSize: data.setting.navigation.size,
189
+ // color: data.setting.navigation.color,
190
+ // };
191
+
189
192
  return /*#__PURE__*/_react["default"].createElement("div", {
190
193
  className: "m-carousel-mobile",
191
194
  style: bgStyle
@@ -222,7 +225,7 @@ function (_super) {
222
225
  }), item.secondButtonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
223
226
  data: item.secondButtonTag
224
227
  }))));
225
- })), 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", {
226
229
  className: "swiper-ban"
227
230
  }, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
228
231
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -153,6 +153,8 @@ function (_super) {
153
153
  };
154
154
  }
155
155
 
156
+ var spacing = data.spacing[window.magicDesign.device];
157
+ if (spacing.contentWidth) bgStyle.width = spacing.contentWidth;
156
158
  var settings = {
157
159
  className: 'slider-wrap',
158
160
  arrows: false,
@@ -160,9 +162,8 @@ function (_super) {
160
162
  autoplay: data.setting.autoplay.open,
161
163
  autoplaySpeed: data.setting.autoplay.interval * 1000,
162
164
  speed: 500,
163
- draggable: window.magicDesign.mode === 'renderer',
164
165
  slidesToShow: colNum,
165
- slidesToScroll: 1,
166
+ slidesToScroll: colNum,
166
167
  beforeChange: function beforeChange(oldIndex, newIndex) {
167
168
  _this.setState({
168
169
  sliderIndex: newIndex
@@ -173,12 +174,9 @@ function (_super) {
173
174
  fontSize: data.setting.navigation.size,
174
175
  color: data.setting.navigation.color
175
176
  };
176
- var spacing = data.spacing[window.magicDesign.device];
177
177
  return /*#__PURE__*/_react["default"].createElement("div", {
178
178
  className: "m-carousel-pc",
179
179
  style: bgStyle
180
- }, /*#__PURE__*/_react["default"].createElement("div", {
181
- className: "content"
182
180
  }, data.setting.navigation.open && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
183
181
  className: "carousel-icon-left",
184
182
  onClick: function onClick() {
@@ -188,11 +186,7 @@ function (_super) {
188
186
  onMouseLeave: this.mouseLeaveBtn,
189
187
  style: navStyle,
190
188
  type: "icon-left"
191
- }), /*#__PURE__*/_react["default"].createElement("div", {
192
- style: {
193
- width: spacing.contentWidth || 'calc(100% - 52px)'
194
- }
195
- }, /*#__PURE__*/_react["default"].createElement(_reactSlick["default"], _extends({
189
+ }), /*#__PURE__*/_react["default"].createElement(_reactSlick["default"], _extends({
196
190
  ref: function ref(slider) {
197
191
  return _this.sliderRef = slider;
198
192
  }
@@ -204,6 +198,7 @@ function (_super) {
204
198
  className: "img"
205
199
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
206
200
  data: item.image,
201
+ isBackground: true,
207
202
  maxHeight: PC_IMG_SIZE[colNum - 1].maxH,
208
203
  maxWidth: PC_IMG_SIZE[colNum - 1].maxW,
209
204
  minWidth: PC_IMG_SIZE[colNum - 1].minW
@@ -225,7 +220,7 @@ function (_super) {
225
220
  }), item.secondButtonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
226
221
  data: item.secondButtonTag
227
222
  }))));
228
- }))), 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", {
229
224
  className: "swiper-ban"
230
225
  }, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
231
226
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -250,7 +245,7 @@ function (_super) {
250
245
  onMouseLeave: this.mouseLeaveBtn,
251
246
  style: navStyle,
252
247
  type: "icon-right"
253
- })));
248
+ }));
254
249
  };
255
250
 
256
251
  CarouselPc.defaultProps = {
@@ -1,26 +1,20 @@
1
1
  .m-carousel-pc {
2
+ display: flex;
2
3
  position: relative;
3
- overflow-x: auto;
4
- width: 100%;
5
-
6
- .content {
7
- display: flex;
8
- width: fit-content;
9
- margin: 0 auto;
10
- }
4
+ margin: 0 auto;
11
5
 
12
6
  .carousel-icon-left {
13
7
  float: left;
14
- margin-left: 10px;
8
+ margin-left: 50px;
15
9
  }
16
10
 
17
11
  .carousel-icon-right {
18
12
  float: right;
19
- margin-right: 10px;
13
+ margin-right: 50px;
20
14
  }
21
15
 
22
16
  .slider-wrap {
23
- width: 100%;
17
+ width: calc(100% - 200px);
24
18
  padding: 30px 0;
25
19
  margin: 0 auto;
26
20
 
@@ -71,8 +65,6 @@
71
65
  position: absolute;
72
66
  width: 100%;
73
67
  bottom: 0;
74
- left: 0;
75
- right: 0;
76
68
  display: flex;
77
69
  align-items: center;
78
70
  justify-content: center;
@@ -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
  }