@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
@@ -319,24 +319,24 @@ var BundleCampaign = function BundleCampaign(props) {
319
319
  }, /*#__PURE__*/_react["default"].createElement("span", {
320
320
  className: "labelStyle"
321
321
  }, "Campaign Name"), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
322
- value: campaignName,
322
+ className: "inputStyle",
323
323
  onChange: function onChange(e) {
324
324
  setCampaignName(e.target.value);
325
325
  },
326
- className: "inputStyle"
326
+ value: campaignName
327
327
  })), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
328
328
  span: 12
329
329
  }, /*#__PURE__*/_react["default"].createElement("span", {
330
330
  className: "labelStyle"
331
331
  }, "Store"), /*#__PURE__*/_react["default"].createElement(_antd.Select, {
332
- showSearch: true,
333
- optionFilterProp: "children",
334
332
  className: "inputStyle",
335
- placeholder: "Please select",
336
- value: storeId,
337
333
  onChange: function onChange(value) {
338
334
  return setStoreId(value);
339
- }
335
+ },
336
+ optionFilterProp: "children",
337
+ placeholder: "Please select",
338
+ showSearch: true,
339
+ value: storeId
340
340
  }, storeList && storeList.length > 0 && storeList.map(function (v) {
341
341
  return /*#__PURE__*/_react["default"].createElement(Option, {
342
342
  key: v.storeId,
@@ -352,10 +352,10 @@ var BundleCampaign = function BundleCampaign(props) {
352
352
  }, /*#__PURE__*/_react["default"].createElement("span", {
353
353
  className: "labelStyle"
354
354
  }, "Campaign State"), /*#__PURE__*/_react["default"].createElement(_antd.Select, {
355
+ className: "inputStyle",
355
356
  defaultValue: "A,B",
356
- value: cmpState,
357
357
  onChange: changeCamState,
358
- className: "inputStyle"
358
+ value: cmpState
359
359
  }, stateMap && stateMap.length > 0 && stateMap.map(function (v) {
360
360
  return /*#__PURE__*/_react["default"].createElement(Option, {
361
361
  key: v.key,
@@ -365,24 +365,24 @@ var BundleCampaign = function BundleCampaign(props) {
365
365
  span: 12
366
366
  }, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
367
367
  onClick: queryFunc,
368
- type: "primary",
369
368
  style: {
370
369
  marginRight: 10
371
- }
370
+ },
371
+ type: "primary"
372
372
  }, "Query"), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
373
373
  onClick: function onClick() {
374
374
  reset();
375
375
  }
376
376
  }, "Cancel"))), /*#__PURE__*/_react["default"].createElement(_antd.Table, {
377
- scroll: {
378
- y: 340
379
- },
380
- loading: loading,
381
377
  bordered: false,
378
+ columns: columns,
379
+ dataSource: bundleList,
380
+ loading: loading,
382
381
  rowKey: "campaignId",
383
382
  rowSelection: rowSelection,
384
- columns: columns,
385
- dataSource: bundleList
383
+ scroll: {
384
+ y: 340
385
+ }
386
386
  }));
387
387
  };
388
388
 
@@ -200,6 +200,7 @@ function CustomTable(props) {
200
200
  queryCus({
201
201
  pageType: 'Customized',
202
202
  verType: 'Formal',
203
+ configVersion: 'V2',
203
204
  state: 'Using'
204
205
  });
205
206
  }, []);
@@ -485,7 +485,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
485
485
  minPrice: minimum * precision || '',
486
486
  maxPrice: maximum * precision || '',
487
487
  storeName: storeName || '',
488
- cmpTypeId: promotions.key || '',
488
+ campaignType: promotions.key || '',
489
489
  state: 'A'
490
490
  }),
491
491
  total: res.total
@@ -513,13 +513,13 @@ var FilteredProductModal = function FilteredProductModal(props) {
513
513
  queryStore();
514
514
  }, []);
515
515
  return /*#__PURE__*/_react["default"].createElement("div", {
516
- className: "filteredProductModal"
516
+ className: "mFilteredProductModal"
517
517
  }, /*#__PURE__*/_react["default"].createElement("div", {
518
518
  className: "proModalWrap"
519
519
  }, /*#__PURE__*/_react["default"].createElement("div", {
520
520
  className: "info"
521
521
  }, (0, _locale.i18n)('THE_PRODUCT_QUANTITY_WILL_BE_AUTOMATICALLY_UPDATED_WITH_THE_ITEMS_THAT_MEET_THE_CATEGORY_CONDITIONS')), /*#__PURE__*/_react["default"].createElement("div", {
522
- className: "filteredProductModalContent"
522
+ className: "mFilteredProductModalContent"
523
523
  }, /*#__PURE__*/_react["default"].createElement("div", {
524
524
  className: "leftCot"
525
525
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
@@ -1,5 +1,4 @@
1
- .filteredProductModal {
2
-
1
+ .mFilteredProductModal {
3
2
  .proModalWrap {
4
3
  .info {
5
4
  background: #ecf1fd;
@@ -17,7 +16,7 @@
17
16
  background-size: contain;
18
17
  }
19
18
 
20
- .filteredProductModalContent {
19
+ .mFilteredProductModalContent {
21
20
  display: flex;
22
21
 
23
22
  .rightCot {
@@ -232,7 +232,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
232
232
 
233
233
  var _j = (0, _react.useState)({
234
234
  pageSize: 20,
235
- current: 1
235
+ pageIndex: 1
236
236
  }),
237
237
  paginationParams = _j[0],
238
238
  setPaginationParams = _j[1];
@@ -399,7 +399,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
399
399
  }, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
400
400
  onClick: function onClick() {
401
401
  setLoading(true);
402
- paginationParams.current = 1;
402
+ paginationParams.pageIndex = 1;
403
403
 
404
404
  var total = paginationParams.total,
405
405
  params = __rest(paginationParams, ["total"]);
@@ -468,7 +468,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
468
468
  pagination: __assign(__assign({}, paginationParams), {
469
469
  onChange: function onChange(page) {
470
470
  setLoading(true);
471
- paginationParams.current = page;
471
+ paginationParams.pageIndex = page;
472
472
 
473
473
  var total = paginationParams.total,
474
474
  params = __rest(paginationParams, ["total"]);
@@ -1,5 +1,5 @@
1
1
  .linkModal {
2
- width: 1000px;
2
+ width: 1200px;
3
3
  right: unset !important;
4
4
  left: unset !important;
5
5
 
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.onAClick = exports.getLinkUrl = exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _businessUtil = require("src/components/utils/businessUtil");
11
+
12
+ var _coreUtil = require("src/components/utils/coreUtil");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ var __extends = void 0 && (void 0).__extends || function () {
17
+ var _extendStatics = function extendStatics(d, b) {
18
+ _extendStatics = Object.setPrototypeOf || {
19
+ __proto__: []
20
+ } instanceof Array && function (d, b) {
21
+ d.__proto__ = b;
22
+ } || function (d, b) {
23
+ for (var p in b) {
24
+ if (b.hasOwnProperty(p)) d[p] = b[p];
25
+ }
26
+ };
27
+
28
+ return _extendStatics(d, b);
29
+ };
30
+
31
+ return function (d, b) {
32
+ _extendStatics(d, b);
33
+
34
+ function __() {
35
+ this.constructor = d;
36
+ }
37
+
38
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
39
+ };
40
+ }();
41
+
42
+ var onAClick = function onAClick(e, url) {
43
+ e.preventDefault();
44
+
45
+ if (window.magicDesign.mode === 'renderer') {
46
+ (0, _coreUtil.clickUrl)(url);
47
+ }
48
+ };
49
+
50
+ exports.onAClick = onAClick;
51
+
52
+ var getLinkUrl = function getLinkUrl(url) {
53
+ var h5Link = (0, _businessUtil.parseUrl)(url).h5Link;
54
+ return h5Link;
55
+ };
56
+
57
+ exports.getLinkUrl = getLinkUrl;
58
+
59
+ var MagicLink =
60
+ /** @class */
61
+ function (_super) {
62
+ __extends(MagicLink, _super);
63
+
64
+ function MagicLink() {
65
+ var _this = _super !== null && _super.apply(this, arguments) || this;
66
+
67
+ _this.state = {};
68
+ return _this;
69
+ }
70
+
71
+ MagicLink.prototype.render = function () {
72
+ var _a = this.props,
73
+ url = _a.url,
74
+ children = _a.children;
75
+ var href = getLinkUrl(url);
76
+ return /*#__PURE__*/_react["default"].createElement("a", {
77
+ href: href,
78
+ onClick: function onClick(e) {
79
+ return onAClick(e, url);
80
+ }
81
+ }, children);
82
+ };
83
+
84
+ MagicLink.defaultProps = {};
85
+ return MagicLink;
86
+ }(_react["default"].Component);
87
+
88
+ var _default = MagicLink;
89
+ exports["default"] = _default;
File without changes
@@ -745,7 +745,7 @@ var ProductModal = function ProductModal(props) {
745
745
  rowKey: "productId",
746
746
  rowSelection: rowSelection,
747
747
  scroll: {
748
- y: 300
748
+ y: 500
749
749
  }
750
750
  }), /*#__PURE__*/_react["default"].createElement("div", {
751
751
  className: "selectedCot"
@@ -11,13 +11,15 @@
11
11
  .content {
12
12
  display: flex;
13
13
  margin-bottom: 8px;
14
+
14
15
  .rightCot {
15
16
  width: calc(100% - 260px);
16
17
  margin-left: 16px;
17
18
  display: flex;
18
19
  flex-direction: column;
19
20
  justify-content: space-between;
20
- .prodImg {
21
+
22
+ .prodImg {
21
23
  display: inline-block;
22
24
  width: 36px;
23
25
  height: 36px;
@@ -25,16 +27,18 @@
25
27
  background-position: 50% 50%;
26
28
  background-repeat: no-repeat;
27
29
  }
30
+
28
31
  .selectedCot {
32
+ padding-right: 18px;
29
33
  margin-left: 4px;
30
- height: 148px;
34
+ height: 78px;
31
35
  background: #f8f8f8;
32
36
  border: 1px solid #e0e0e0;
33
37
  border-radius: 2px;
34
38
  display: flex;
35
39
  flex-direction: row;
36
- flex-wrap: wrap;
37
- overflow-y: auto;
40
+ // flex-wrap: wrap;
41
+ overflow-x: auto;
38
42
 
39
43
  .selectedItem {
40
44
  box-sizing: border-box;
@@ -71,9 +75,9 @@
71
75
  cursor: pointer;
72
76
  }
73
77
 
74
- &:nth-child(n + 11) {
75
- margin-top: 5px !important;
76
- }
78
+ // &:nth-child(n + 11) {
79
+ // margin-top: 5px !important;
80
+ // }
77
81
 
78
82
  .selectedItemImg {
79
83
  height: 52px;
@@ -94,6 +98,7 @@
94
98
  padding-right: 14px;
95
99
  box-sizing: border-box;
96
100
  border-right: 1px solid #e0e0e0;
101
+
97
102
  .divider {
98
103
  width: 10%;
99
104
  display: inline-block;
@@ -63,10 +63,13 @@ function (_super) {
63
63
  var visible = this.state.visible;
64
64
  var _a = this.props,
65
65
  value = _a.value,
66
- _onChange = _a.onChange;
66
+ _onChange = _a.onChange,
67
+ disabled = _a.disabled;
67
68
  return /*#__PURE__*/_react["default"].createElement("div", {
68
69
  className: "m-url-picker"
69
- }, /*#__PURE__*/_react["default"].createElement("div", {
70
+ }, disabled && /*#__PURE__*/_react["default"].createElement("div", {
71
+ className: "disabled"
72
+ }), /*#__PURE__*/_react["default"].createElement("div", {
70
73
  className: "input-url"
71
74
  }, /*#__PURE__*/_react["default"].createElement("input", {
72
75
  onChange: function onChange(e) {
@@ -112,6 +115,7 @@ function (_super) {
112
115
 
113
116
  UrlPicker.defaultProps = {
114
117
  value: '',
118
+ disabled: false,
115
119
  onChange: function onChange() {}
116
120
  };
117
121
  return UrlPicker;
@@ -1,5 +1,16 @@
1
1
  .m-url-picker {
2
-
2
+ position: relative;
3
+ .disabled {
4
+ position: absolute;
5
+ left: 0;
6
+ right: 0;
7
+ bottom: 0;
8
+ top: 0;
9
+ background-color: #D2D9E5;
10
+ z-index: 1;
11
+ opacity: 0.5;
12
+ border-radius: 8px;
13
+ }
3
14
  .input-url {
4
15
  width: 100%;
5
16
  height: 40px;
@@ -63,6 +63,12 @@ Object.defineProperty(exports, "ImagePicker", {
63
63
  return _ImagePicker["default"];
64
64
  }
65
65
  });
66
+ Object.defineProperty(exports, "ImgArea", {
67
+ enumerable: true,
68
+ get: function get() {
69
+ return _ImgArea["default"];
70
+ }
71
+ });
66
72
  Object.defineProperty(exports, "LayoutSelector", {
67
73
  enumerable: true,
68
74
  get: function get() {
@@ -124,4 +130,6 @@ var _ButtonIconLayout = _interopRequireDefault(require("./ButtonIconLayout"));
124
130
 
125
131
  var _ProductSource = _interopRequireDefault(require("./ProductSource"));
126
132
 
133
+ var _ImgArea = _interopRequireDefault(require("./ImgArea"));
134
+
127
135
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -43,12 +43,12 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
43
43
  text: 'Title use, click modify text.',
44
44
  specialContent: [],
45
45
  content: {
46
- // sizeType: 'Headline 1',
46
+ sizeType: 'Customize font styles',
47
47
  fontFamily: 'Open Sans',
48
48
  fontWeight: 700,
49
49
  fontSize: 28,
50
50
  color: '#FFFFFF',
51
- width: 400
51
+ width: 319
52
52
  },
53
53
  underline: {
54
54
  open: false,
@@ -65,12 +65,12 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
65
65
  specialContent: [],
66
66
  text: 'For the text area, you can enter a subtitle or description, the default width is the same as title.',
67
67
  content: {
68
- // sizeType: 'Headline 1',
68
+ sizeType: 'Customize font styles',
69
69
  fontFamily: 'Open Sans',
70
70
  fontWeight: 400,
71
71
  fontSize: 18,
72
72
  color: '#FFFFFF',
73
- width: 500
73
+ width: 319
74
74
  },
75
75
  underline: {},
76
76
  vertical: {}
@@ -86,7 +86,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
86
86
  backgroundColor: '#2F54EB'
87
87
  },
88
88
  buttonText: {
89
- // sizeType: 'Headline 1',
89
+ sizeType: 'Customize font styles',
90
90
  fontFamily: 'Open Sans',
91
91
  fontWeight: 600,
92
92
  fontSize: 14,
@@ -122,7 +122,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
122
122
  backgroundColor: '#0d39ed'
123
123
  },
124
124
  buttonText: {
125
- // sizeType: 'Headline 1',
125
+ sizeType: 'Customize font styles',
126
126
  fontFamily: 'Open Sans',
127
127
  fontWeight: 600,
128
128
  fontSize: 14,
@@ -151,7 +151,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
151
151
  backgroundColor: '#fff'
152
152
  },
153
153
  buttonText: {
154
- // sizeType: 'Headline 1',
154
+ sizeType: 'Customize font styles',
155
155
  fontFamily: 'Open Sans',
156
156
  fontWeight: 600,
157
157
  fontSize: 14,
@@ -187,7 +187,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
187
187
  backgroundColor: '#E9F0FF'
188
188
  },
189
189
  buttonText: {
190
- // sizeType: 'Headline 1',
190
+ sizeType: 'Customize font styles',
191
191
  fontFamily: 'Open Sans',
192
192
  fontWeight: 600,
193
193
  fontSize: 14,
@@ -254,12 +254,12 @@ var getDefaultJSON = function getDefaultJSON() {
254
254
  pc: {
255
255
  paddingTop: 0,
256
256
  paddingBottom: 0,
257
- marginBottom: 0
257
+ marginBottom: window.magicDesign.compSpacing * 1.5
258
258
  },
259
259
  mobile: {
260
260
  paddingTop: 0,
261
261
  paddingBottom: 0,
262
- marginBottom: 0
262
+ marginBottom: window.magicDesign.compSpacing
263
263
  }
264
264
  }
265
265
  };
@@ -21,8 +21,6 @@ var _AlignSelector = require("../../../../../common/AlignSelector");
21
21
 
22
22
  var _components = require("../../../../../meta-comp/components");
23
23
 
24
- var _businessUtil = require("../../../../../utils/businessUtil");
25
-
26
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
25
 
28
26
  var __extends = void 0 && (void 0).__extends || function () {
@@ -61,8 +59,7 @@ function (_super) {
61
59
 
62
60
  _this.state = {
63
61
  carouseIndex: 0,
64
- hoverState: false,
65
- clickedGroup: ''
62
+ hoverState: false
66
63
  };
67
64
  _this.carouselRef = /*#__PURE__*/_react["default"].createRef();
68
65
  _this.destroy = null;
@@ -122,19 +119,16 @@ function (_super) {
122
119
  var data = this.props.data;
123
120
  var _a = this.state,
124
121
  carouseIndex = _a.carouseIndex,
125
- hoverState = _a.hoverState,
126
- clickedGroup = _a.clickedGroup;
122
+ hoverState = _a.hoverState;
127
123
  var autoplay = data.setting.autoplay.open;
128
124
  /** 设计器模式下 如果选中特定group 自动播放关闭 */
129
125
 
130
- if ((0, _coreUtil.isDesignMode)() && clickedGroup) {
126
+ if ((0, _coreUtil.isDesignMode)() && _mobx.store.clickedGroup) {
131
127
  autoplay = false;
132
128
  }
133
129
 
134
- var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
135
130
  return /*#__PURE__*/_react["default"].createElement("div", {
136
- className: "m-banner-mobile",
137
- style: wrapStyle
131
+ className: "m-banner-mobile"
138
132
  }, /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
139
133
  ref: this.carouselRef,
140
134
  afterChange: function afterChange(n) {
@@ -23,7 +23,7 @@ var _AlignSelector = require("../../../../../common/AlignSelector");
23
23
 
24
24
  var _common = require("../../../../../common");
25
25
 
26
- var _businessUtil = require("../../../../../utils/businessUtil");
26
+ var _commonUtil = require("../../../../../utils/commonUtil");
27
27
 
28
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
29
 
@@ -127,8 +127,7 @@ function (_super) {
127
127
  };
128
128
 
129
129
  if (item.background.bgType === 'color') {
130
- bgStyle.opacity = item.background.opacity ? item.background.opacity / 100 : 1;
131
- bgStyle.backgroundColor = item.background.color;
130
+ bgStyle.backgroundColor = (0, _commonUtil.getColorRgba)(item.background.color || '#fff', item.background.opacity / 100 || 1);
132
131
  } else {
133
132
  bgStyle.backgroundImage = "url(" + item.background.image + ")";
134
133
  }
@@ -174,10 +173,8 @@ function (_super) {
174
173
  autoplay = false;
175
174
  }
176
175
 
177
- var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
178
176
  return /*#__PURE__*/_react["default"].createElement("div", {
179
- className: "m-banner-pc",
180
- style: wrapStyle
177
+ className: "m-banner-pc"
181
178
  }, data.setting.navigation.open && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
182
179
  className: "turnPage leftBtn",
183
180
  onClick: function onClick() {
@@ -3,99 +3,69 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getDefaultJSON = void 0;
6
+ exports.getDefaultJSON = exports.buttonGroupSourceJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
- var __assign = void 0 && (void 0).__assign || function () {
11
- __assign = Object.assign || function (t) {
12
- for (var s, i = 1, n = arguments.length; i < n; i++) {
13
- s = arguments[i];
14
-
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
17
- }
18
- }
19
-
20
- return t;
21
- };
22
-
23
- return __assign.apply(this, arguments);
24
- };
25
-
26
10
  /**
27
11
  * 获取 text 元组件json
28
12
  */
29
- var getDefaultMetaButtonJson = function getDefaultMetaButtonJson() {
13
+ var buttonGroupSourceJSON = function buttonGroupSourceJSON() {
14
+ var groupId = (0, _uuid.v4)();
30
15
  return {
31
- id: (0, _uuid.v4)(),
32
- open: true,
33
- content: {
34
- backgroundColor: '#2F54EB'
35
- },
36
- buttonText: {
37
- sizeType: 'Customize font styles',
38
- fontFamily: 'Open Sans',
39
- fontWeight: 400,
40
- fontSize: 14,
41
- fontStyle: 'normal',
42
- color: '#fff',
43
- padding: '10px 26px'
44
- },
45
- buttonBorder: {
16
+ id: groupId,
17
+ button: {
18
+ parentId: groupId,
19
+ id: (0, _uuid.v4)(),
46
20
  open: true,
47
- borderColor: '',
48
- borderRadius: 6
49
- },
50
- buttonIcon: {
51
- iconUrl: '',
52
- layout: 'right'
53
- },
54
- spacing: {
55
- pc: {},
56
- mobile: {}
57
- },
58
- text: 'Button',
59
- hover: null
21
+ content: {
22
+ backgroundColor: '#2F54EB'
23
+ },
24
+ buttonText: {
25
+ sizeType: 'Customize font styles',
26
+ fontFamily: 'Open Sans',
27
+ fontWeight: 400,
28
+ fontSize: 14,
29
+ fontStyle: 'normal',
30
+ color: '#fff',
31
+ padding: '10px 26px'
32
+ },
33
+ buttonBorder: {
34
+ open: true,
35
+ borderColor: '',
36
+ borderRadius: 6
37
+ },
38
+ buttonIcon: {
39
+ iconUrl: '',
40
+ layout: 'right'
41
+ },
42
+ spacing: {
43
+ pc: {},
44
+ mobile: {}
45
+ },
46
+ text: 'Button',
47
+ hover: null
48
+ }
60
49
  };
61
50
  };
62
51
 
52
+ exports.buttonGroupSourceJSON = buttonGroupSourceJSON;
53
+
63
54
  var getDefaultJSON = function getDefaultJSON() {
64
55
  return {
65
56
  id: (0, _uuid.v4)(),
66
57
  type: 'BUTTON',
67
- content: {
68
- button: __assign({}, getDefaultMetaButtonJson()),
69
- secondaryButton: __assign(__assign({}, getDefaultMetaButtonJson()), {
70
- content: {
71
- backgroundColor: '#fff'
72
- },
73
- buttonText: {
74
- sizeType: 'Customize font styles',
75
- fontFamily: 'Open Sans',
76
- fontWeight: 400,
77
- fontSize: 14,
78
- fontStyle: 'normal',
79
- color: '#2F54EB',
80
- padding: '10px 26px'
81
- },
82
- buttonBorder: {
83
- open: true,
84
- borderColor: '#2F54EB',
85
- borderRadius: 6
86
- }
87
- })
88
- },
58
+ groupSource: [buttonGroupSourceJSON()],
89
59
  spacing: {
90
60
  pc: {
91
61
  paddingTop: 10,
92
62
  paddingBottom: 10,
93
- marginBottom: 0
63
+ marginBottom: window.magicDesign.compSpacing * 1.5
94
64
  },
95
65
  mobile: {
96
66
  paddingTop: 10,
97
67
  paddingBottom: 10,
98
- marginBottom: 0
68
+ marginBottom: window.magicDesign.compSpacing
99
69
  }
100
70
  },
101
71
  customize: {