@fonixtree/magic-design 0.0.70 → 0.0.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +12 -24
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +12 -24
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  4. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  6. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  8. package/es/assets/less/modal.less +2 -7
  9. package/es/common/Button/index.js +1 -2
  10. package/es/common/Button/index.less +0 -5
  11. package/es/common/ButtonIconLayout/index.less +2 -4
  12. package/es/common/Collapse/index.js +4 -14
  13. package/es/common/GroupList/index.js +3 -2
  14. package/es/common/ImageModal/index.js +24 -29
  15. package/es/common/ImageModal/index.less +1 -6
  16. package/es/common/LinkModal/BundleCampaign/index.js +17 -17
  17. package/es/common/LinkModal/CustomTable/index.js +1 -2
  18. package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
  19. package/es/common/LinkModal/index.less +1 -1
  20. package/es/common/UrlPicker/index.js +2 -6
  21. package/es/common/UrlPicker/index.less +1 -12
  22. package/es/common/index.js +0 -8
  23. package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
  24. package/es/composite-comp/bol/components/Banner/mobile/index.js +10 -4
  25. package/es/composite-comp/bol/components/Banner/pc/index.js +6 -3
  26. package/es/composite-comp/bol/components/Button/defaultJSON.js +70 -40
  27. package/es/composite-comp/bol/components/Button/index.js +14 -8
  28. package/es/composite-comp/bol/components/Button/index.less +0 -1
  29. package/es/composite-comp/bol/components/Carousel/defaultJSON.js +16 -12
  30. package/es/composite-comp/bol/components/Carousel/index.js +6 -1
  31. package/es/composite-comp/bol/components/Carousel/mobile/index.js +7 -3
  32. package/es/composite-comp/bol/components/Carousel/pc/index.js +2 -2
  33. package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
  34. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +166 -26
  35. package/es/composite-comp/bol/components/ImageText/mobile/index.js +5 -2
  36. package/es/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
  37. package/es/composite-comp/bol/components/ImageText/pc/index.js +18 -46
  38. package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  39. package/es/composite-comp/bol/components/Newsletter/index.js +6 -1
  40. package/es/composite-comp/bol/components/Tag/defaultJSON.js +48 -38
  41. package/es/composite-comp/bol/components/Tag/index.js +14 -8
  42. package/es/composite-comp/bol/components/Tag/index.less +0 -1
  43. package/es/composite-comp/bol/components/Text/defaultJSON.js +4 -4
  44. package/es/composite-comp/bol/components/Text/index.js +8 -4
  45. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +1 -3
  46. package/{lib/composite-comp/bol/second-config-panels/TagSecondConfig → es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent}/index.js +38 -40
  47. package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  48. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +2 -4
  49. package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -1
  50. package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +1 -3
  51. package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +1 -2
  52. package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -6
  53. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +17 -9
  54. package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -7
  55. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +1 -3
  56. package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  57. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +13 -8
  58. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +5 -10
  59. package/es/composite-comp/common/components/ImageLabel/index.js +2 -2
  60. package/es/composite-comp/common/components/ImageLabel/index.less +2 -6
  61. package/es/composite-comp/common/components/ProductItem/index.less +10 -9
  62. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -24
  63. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +8 -8
  64. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +2 -62
  65. package/es/composite-comp/dito/components/FlashDeal/index.js +1 -5
  66. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -0
  67. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -5
  68. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +3 -13
  69. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +2 -3
  70. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +12 -30
  71. package/es/composite-comp/dito/components/Recommend/index.js +6 -5
  72. package/es/composite-comp/dito/components/Recommend/mobile/index.js +33 -39
  73. package/es/composite-comp/dito/components/Recommend/mobile/index.less +6 -13
  74. package/es/composite-comp/dito/components/Recommend/pc/index.js +17 -122
  75. package/es/composite-comp/dito/components/Recommend/pc/index.less +15 -56
  76. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -26
  77. package/es/composite-comp/dito/components/SearchBar/index.js +2 -7
  78. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +23 -26
  79. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +3 -13
  80. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +6 -16
  81. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -20
  82. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +3 -21
  83. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -17
  84. package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +5 -42
  85. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +29 -39
  86. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +49 -80
  87. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +1 -13
  88. package/es/constants/component-types.js +3 -13
  89. package/es/constants/index.js +2 -20
  90. package/es/constants/layout.js +8 -34
  91. package/es/core/Designer/CompListPanel/index.js +33 -8
  92. package/es/core/Designer/ConfigPanel/index.js +23 -72
  93. package/es/core/Designer/ConfigPanel/index.less +0 -4
  94. package/es/core/Designer/History/index.js +28 -34
  95. package/es/core/Designer/PageCompList/index.js +1 -9
  96. package/es/core/Designer/PageCompList/index.less +10 -10
  97. package/es/core/Designer/QuickMenuBar/index.js +1 -1
  98. package/es/core/Designer/ViewArea/index.js +6 -20
  99. package/es/core/Designer/index.js +37 -42
  100. package/es/core/Renderer/index.js +2 -17
  101. package/es/decorator/compositeDecorator.js +12 -45
  102. package/es/decorator/index.js +0 -8
  103. package/es/decorator/metaDecorator.js +2 -2
  104. package/es/locale/en/en.json +1 -14
  105. package/es/locale/es/es.json +1 -14
  106. package/es/locale/id/id.json +1 -14
  107. package/es/meta-comp/components/Button/index.js +13 -32
  108. package/es/meta-comp/components/Button/index.less +2 -10
  109. package/es/meta-comp/components/Image/index.js +7 -38
  110. package/es/meta-comp/components/Image/index.less +0 -2
  111. package/es/meta-comp/components/Text/index.js +11 -27
  112. package/es/meta-comp/config-panels/BaseConfig.js +10 -8
  113. package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -2
  114. package/es/meta-comp/config-panels/ImageConfig/index.js +4 -17
  115. package/es/meta-comp/config-panels/TextConfig/index.js +3 -10
  116. package/es/mobx/Store.js +10 -6
  117. package/es/utils/coreUtil.js +3 -17
  118. package/lib/assets/fonts/magic-box-iconfont.css +12 -24
  119. package/lib/assets/fonts/magic-box-iconfont.css.bak +12 -24
  120. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  121. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  122. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  123. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  124. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  125. package/lib/assets/less/modal.less +2 -7
  126. package/lib/common/Button/index.js +1 -2
  127. package/lib/common/Button/index.less +0 -5
  128. package/lib/common/ButtonIconLayout/index.less +2 -4
  129. package/lib/common/Collapse/index.js +4 -14
  130. package/lib/common/GroupList/index.js +3 -2
  131. package/lib/common/ImageModal/index.js +24 -29
  132. package/lib/common/ImageModal/index.less +1 -6
  133. package/lib/common/LinkModal/BundleCampaign/index.js +17 -17
  134. package/lib/common/LinkModal/CustomTable/index.js +1 -2
  135. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  136. package/lib/common/LinkModal/index.less +1 -1
  137. package/lib/common/UrlPicker/index.js +2 -6
  138. package/lib/common/UrlPicker/index.less +1 -12
  139. package/lib/common/index.js +0 -8
  140. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
  141. package/lib/composite-comp/bol/components/Banner/mobile/index.js +10 -4
  142. package/lib/composite-comp/bol/components/Banner/pc/index.js +6 -3
  143. package/lib/composite-comp/bol/components/Button/defaultJSON.js +70 -40
  144. package/lib/composite-comp/bol/components/Button/index.js +14 -8
  145. package/lib/composite-comp/bol/components/Button/index.less +0 -1
  146. package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +16 -12
  147. package/lib/composite-comp/bol/components/Carousel/index.js +6 -1
  148. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +7 -3
  149. package/lib/composite-comp/bol/components/Carousel/pc/index.js +2 -2
  150. package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
  151. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +166 -26
  152. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +5 -2
  153. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
  154. package/lib/composite-comp/bol/components/ImageText/pc/index.js +18 -46
  155. package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  156. package/lib/composite-comp/bol/components/Newsletter/index.js +6 -1
  157. package/lib/composite-comp/bol/components/Tag/defaultJSON.js +48 -38
  158. package/lib/composite-comp/bol/components/Tag/index.js +14 -8
  159. package/lib/composite-comp/bol/components/Tag/index.less +0 -1
  160. package/lib/composite-comp/bol/components/Text/defaultJSON.js +4 -4
  161. package/lib/composite-comp/bol/components/Text/index.js +8 -4
  162. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +1 -3
  163. package/{es/composite-comp/bol/second-config-panels/TagSecondConfig → lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent}/index.js +38 -40
  164. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
  165. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +2 -4
  166. package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -1
  167. package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +1 -3
  168. package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +1 -2
  169. package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -6
  170. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +17 -9
  171. package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -7
  172. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +1 -3
  173. package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  174. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +13 -8
  175. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +5 -10
  176. package/lib/composite-comp/common/components/ImageLabel/index.js +2 -2
  177. package/lib/composite-comp/common/components/ImageLabel/index.less +2 -6
  178. package/lib/composite-comp/common/components/ProductItem/index.less +10 -9
  179. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -24
  180. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +8 -8
  181. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +2 -62
  182. package/lib/composite-comp/dito/components/FlashDeal/index.js +1 -5
  183. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -0
  184. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -5
  185. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +3 -13
  186. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +2 -3
  187. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +12 -30
  188. package/lib/composite-comp/dito/components/Recommend/index.js +6 -5
  189. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +33 -39
  190. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +6 -13
  191. package/lib/composite-comp/dito/components/Recommend/pc/index.js +17 -122
  192. package/lib/composite-comp/dito/components/Recommend/pc/index.less +15 -56
  193. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -26
  194. package/lib/composite-comp/dito/components/SearchBar/index.js +2 -7
  195. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +23 -26
  196. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +3 -13
  197. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +6 -16
  198. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -20
  199. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +3 -21
  200. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -17
  201. package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +5 -42
  202. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +29 -39
  203. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +49 -80
  204. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +1 -13
  205. package/lib/constants/component-types.js +3 -13
  206. package/lib/constants/index.js +2 -20
  207. package/lib/constants/layout.js +8 -34
  208. package/lib/core/Designer/CompListPanel/index.js +33 -8
  209. package/lib/core/Designer/ConfigPanel/index.js +23 -72
  210. package/lib/core/Designer/ConfigPanel/index.less +0 -4
  211. package/lib/core/Designer/History/index.js +28 -34
  212. package/lib/core/Designer/PageCompList/index.js +1 -9
  213. package/lib/core/Designer/PageCompList/index.less +10 -10
  214. package/lib/core/Designer/QuickMenuBar/index.js +1 -1
  215. package/lib/core/Designer/ViewArea/index.js +6 -20
  216. package/lib/core/Designer/index.js +37 -42
  217. package/lib/core/Renderer/index.js +2 -17
  218. package/lib/decorator/compositeDecorator.js +12 -45
  219. package/lib/decorator/index.js +0 -8
  220. package/lib/decorator/metaDecorator.js +2 -2
  221. package/lib/locale/en/en.json +1 -14
  222. package/lib/locale/es/es.json +1 -14
  223. package/lib/locale/id/id.json +1 -14
  224. package/lib/meta-comp/components/Button/index.js +13 -32
  225. package/lib/meta-comp/components/Button/index.less +2 -10
  226. package/lib/meta-comp/components/Image/index.js +7 -38
  227. package/lib/meta-comp/components/Image/index.less +0 -2
  228. package/lib/meta-comp/components/Text/index.js +11 -27
  229. package/lib/meta-comp/config-panels/BaseConfig.js +10 -8
  230. package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -2
  231. package/lib/meta-comp/config-panels/ImageConfig/index.js +4 -17
  232. package/lib/meta-comp/config-panels/TextConfig/index.js +3 -10
  233. package/lib/mobx/Store.js +10 -6
  234. package/lib/utils/coreUtil.js +3 -17
  235. package/package.json +3 -5
  236. package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
  237. package/es/common/ImgArea/components/Crop.js +0 -267
  238. package/es/common/ImgArea/components/Icons.js +0 -44
  239. package/es/common/ImgArea/components/MultiCrops.js +0 -210
  240. package/es/common/ImgArea/index.js +0 -11
  241. package/es/common/MagicLink/index.js +0 -89
  242. package/es/common/MagicLink/index.less +0 -0
  243. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -141
  244. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +0 -16
  245. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +0 -141
  246. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +0 -16
  247. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +0 -103
  248. package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +0 -3
  249. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +0 -8
  250. package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +0 -3
  251. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  252. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  253. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  254. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +0 -578
  255. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +0 -121
  256. package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -131
  257. package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +0 -6
  258. package/es/composite-comp/dito/components/PcNavigation/index.js +0 -85
  259. package/es/composite-comp/dito/components/PcNavigation/pc/index.js +0 -478
  260. package/es/composite-comp/dito/components/PcNavigation/pc/index.less +0 -98
  261. package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -151
  262. package/es/composite-comp/dito/components/SearchBar/pc/index.less +0 -59
  263. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -130
  264. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +0 -128
  265. package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +0 -222
  266. package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -195
  267. package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
  268. package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +0 -73
  269. package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +0 -29
  270. package/es/decorator/updateConfigDecorator.js +0 -76
  271. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +0 -164
  272. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +0 -26
  273. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +0 -133
  274. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +0 -17
  275. package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
  276. package/lib/common/ImgArea/components/Crop.js +0 -267
  277. package/lib/common/ImgArea/components/Icons.js +0 -44
  278. package/lib/common/ImgArea/components/MultiCrops.js +0 -210
  279. package/lib/common/ImgArea/index.js +0 -11
  280. package/lib/common/MagicLink/index.js +0 -89
  281. package/lib/common/MagicLink/index.less +0 -0
  282. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -141
  283. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +0 -16
  284. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +0 -141
  285. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +0 -16
  286. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +0 -103
  287. package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +0 -3
  288. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +0 -8
  289. package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +0 -3
  290. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  291. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  292. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  293. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +0 -578
  294. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +0 -121
  295. package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -131
  296. package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +0 -6
  297. package/lib/composite-comp/dito/components/PcNavigation/index.js +0 -85
  298. package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +0 -478
  299. package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +0 -98
  300. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -151
  301. package/lib/composite-comp/dito/components/SearchBar/pc/index.less +0 -59
  302. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -130
  303. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +0 -128
  304. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +0 -222
  305. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -195
  306. package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
  307. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +0 -73
  308. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +0 -29
  309. package/lib/decorator/updateConfigDecorator.js +0 -76
  310. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +0 -164
  311. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +0 -26
  312. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +0 -133
  313. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +0 -17
@@ -3,51 +3,60 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.tagGroupSourceJSON = exports.getDefaultJSON = void 0;
6
+ exports.getDefaultJSON = 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
+
10
26
  /**
11
27
  * 获取 text 元组件json
12
28
  */
13
- var tagGroupSourceJSON = function tagGroupSourceJSON() {
14
- var groupId = (0, _uuid.v4)();
29
+ var getDefaultMetaButtonJson = function getDefaultMetaButtonJson() {
15
30
  return {
16
- id: groupId,
17
- button: {
18
- parentId: groupId,
19
- id: (0, _uuid.v4)(),
31
+ id: (0, _uuid.v4)(),
32
+ open: true,
33
+ content: {
34
+ url: '',
35
+ backgroundColor: '#e6eaf0'
36
+ },
37
+ buttonText: {
38
+ sizeType: 'Customize font styles',
39
+ fontFamily: 'Open Sans',
40
+ fontWeight: 600,
41
+ fontSize: 12,
42
+ fontStyle: 'normal',
43
+ color: '#8493AF',
44
+ padding: '2px 8px'
45
+ },
46
+ buttonBorder: {
20
47
  open: true,
21
- content: {
22
- url: '',
23
- backgroundColor: '#e6eaf0'
24
- },
25
- buttonText: {
26
- sizeType: 'Customize font styles',
27
- fontFamily: 'Open Sans',
28
- fontWeight: 600,
29
- fontSize: 12,
30
- fontStyle: 'normal',
31
- color: '#8493AF',
32
- padding: '2px 8px'
33
- },
34
- buttonBorder: {
35
- open: true,
36
- borderColor: '',
37
- borderRadius: 4
38
- },
39
- buttonIcon: {
40
- iconUrl: '',
41
- layout: 'right'
42
- },
43
- text: 'Button Tag',
44
- hover: null
45
- }
48
+ borderColor: '',
49
+ borderRadius: 4
50
+ },
51
+ buttonIcon: {
52
+ iconUrl: '',
53
+ layout: 'right'
54
+ },
55
+ text: 'Button Tag',
56
+ hover: null
46
57
  };
47
58
  };
48
59
 
49
- exports.tagGroupSourceJSON = tagGroupSourceJSON;
50
-
51
60
  var getDefaultJSON = function getDefaultJSON() {
52
61
  return {
53
62
  id: (0, _uuid.v4)(),
@@ -71,19 +80,20 @@ var getDefaultJSON = function getDefaultJSON() {
71
80
  pcImgHoverUrl: '',
72
81
  h5ImgHoverUrl: ''
73
82
  }
74
- }
83
+ },
84
+ button: __assign({}, getDefaultMetaButtonJson()),
85
+ secondaryButton: __assign({}, getDefaultMetaButtonJson())
75
86
  },
76
- groupSource: [tagGroupSourceJSON()],
77
87
  spacing: {
78
88
  pc: {
79
89
  paddingTop: 10,
80
90
  paddingBottom: 10,
81
- marginBottom: window.magicDesign.compSpacing * 1.5
91
+ marginBottom: 0
82
92
  },
83
93
  mobile: {
84
94
  paddingTop: 10,
85
95
  paddingBottom: 10,
86
- marginBottom: window.magicDesign.compSpacing
96
+ marginBottom: 0
87
97
  }
88
98
  },
89
99
  customize: {
@@ -15,6 +15,8 @@ var _components = require("../../../../meta-comp/components");
15
15
 
16
16
  var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
17
17
 
18
+ var _businessUtil = require("../../../../utils/businessUtil");
19
+
18
20
  require("./index.less");
19
21
 
20
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -74,20 +76,24 @@ function (_super) {
74
76
  var _a;
75
77
 
76
78
  var nodeData = this.props.nodeData;
79
+ var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
77
80
  return /*#__PURE__*/_react["default"].createElement("div", {
78
81
  className: (0, _classnames["default"])('tag-comp-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a)),
79
- onClick: this.onComponentClick
82
+ onClick: this.onComponentClick,
83
+ style: wrapStyle
80
84
  }, nodeData.content.image.open && /*#__PURE__*/_react["default"].createElement("div", {
81
85
  className: "tag-image"
82
86
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
83
87
  data: nodeData.content.image
84
- })), nodeData.groupSource && nodeData.groupSource.map(function (m) {
85
- return /*#__PURE__*/_react["default"].createElement("div", {
86
- className: "first-button"
87
- }, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
88
- data: m.button
89
- }));
90
- }));
88
+ })), nodeData.content.button.open && /*#__PURE__*/_react["default"].createElement("div", {
89
+ className: "first-button"
90
+ }, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
91
+ data: nodeData.content.button
92
+ })), nodeData.content.secondaryButton.open && /*#__PURE__*/_react["default"].createElement("div", {
93
+ className: "secondary-button"
94
+ }, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
95
+ data: nodeData.content.secondaryButton
96
+ })));
91
97
  };
92
98
 
93
99
  Tag.defaultProps = {};
@@ -1,7 +1,6 @@
1
1
  .tag-comp-wrap {
2
2
  display: flex;
3
3
  align-items: center;
4
- flex-wrap: wrap;
5
4
 
6
5
  .tag-image {
7
6
  width: 26px;
@@ -103,7 +103,7 @@ var getDefaultJSON = function getDefaultJSON() {
103
103
  headline: __assign(__assign({}, getDefaultMetaTextJson()), {
104
104
  text: 'Title use, click modify text.',
105
105
  content: {
106
- sizeType: 'Customize font styles',
106
+ sizeType: 'Headline 1',
107
107
  fontFamily: 'Montserrat',
108
108
  fontWeight: 600,
109
109
  fontSize: 28,
@@ -130,18 +130,18 @@ var getDefaultJSON = function getDefaultJSON() {
130
130
  pc: {
131
131
  paddingTop: 10,
132
132
  paddingBottom: 10,
133
- marginBottom: window.magicDesign.compSpacing * 1.5
133
+ marginBottom: 0
134
134
  },
135
135
  mobile: {
136
136
  paddingTop: 10,
137
137
  paddingBottom: 10,
138
- marginBottom: window.magicDesign.compSpacing
138
+ marginBottom: 0
139
139
  }
140
140
  },
141
141
  customize: {
142
142
  layout: 'left',
143
143
  align: 'left',
144
- pcRowNum: 3
144
+ rowNum: 3
145
145
  },
146
146
  background: {
147
147
  opacity: 100,
@@ -15,6 +15,8 @@ var _components = require("../../../../meta-comp/components");
15
15
 
16
16
  var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
17
17
 
18
+ var _businessUtil = require("../../../../utils/businessUtil");
19
+
18
20
  require("./index.less");
19
21
 
20
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -74,9 +76,11 @@ function (_super) {
74
76
  var _a;
75
77
 
76
78
  var nodeData = this.props.nodeData;
79
+ var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
77
80
  return /*#__PURE__*/_react["default"].createElement("div", {
78
81
  className: "m-text",
79
- onClick: this.onComponentClick
82
+ onClick: this.onComponentClick,
83
+ style: wrapStyle
80
84
  }, nodeData.title.headline.open && /*#__PURE__*/_react["default"].createElement("div", {
81
85
  className: "title-wrap"
82
86
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
@@ -86,7 +90,7 @@ function (_super) {
86
90
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
87
91
  data: nodeData.title.subtitle
88
92
  })), /*#__PURE__*/_react["default"].createElement("div", {
89
- className: (0, _classnames["default"])('group-content-wrap', 'col-' + nodeData.customize.pcRowNum, (_a = {}, _a[window.magicDesign.device] = true, _a))
93
+ className: (0, _classnames["default"])('group-content-wrap', 'col-' + nodeData.customize.rowNum, (_a = {}, _a[window.magicDesign.device] = true, _a))
90
94
  }, nodeData.groupSource.map(function (group) {
91
95
  return /*#__PURE__*/_react["default"].createElement("div", {
92
96
  className: "group-wrap-container"
@@ -96,11 +100,11 @@ function (_super) {
96
100
  style: {
97
101
  textAlign: nodeData.customize.align
98
102
  }
99
- }, group.content.title.open && /*#__PURE__*/_react["default"].createElement("div", {
103
+ }, /*#__PURE__*/_react["default"].createElement("div", {
100
104
  className: "group-title"
101
105
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
102
106
  data: group.content.title
103
- })), group.content.text.open && /*#__PURE__*/_react["default"].createElement("div", {
107
+ })), /*#__PURE__*/_react["default"].createElement("div", {
104
108
  className: "group-content"
105
109
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
106
110
  data: group.content.text
@@ -21,8 +21,6 @@ require("./index.less");
21
21
 
22
22
  var _locale = require("../../../../../locale");
23
23
 
24
- var _decorator = require("../../../../../decorator");
25
-
26
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
25
 
28
26
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
@@ -122,7 +120,7 @@ function (_super) {
122
120
  AComponent.defaultProps = {
123
121
  source: []
124
122
  };
125
- AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], AComponent);
123
+ AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], AComponent);
126
124
  return AComponent;
127
125
  }(_react["default"].Component);
128
126
 
@@ -7,13 +7,13 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _coreUtil = require("../../../../utils/coreUtil");
10
+ var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
11
11
 
12
- var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
12
+ var _coreUtil = require("../../../../../utils/coreUtil");
13
13
 
14
- var _ButtonConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ButtonConfig"));
14
+ var _common = require("../../../../../common");
15
15
 
16
- var _locale = require("../../../../locale");
16
+ var _locale = require("../../../../../locale");
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
19
 
@@ -43,61 +43,59 @@ var __extends = void 0 && (void 0).__extends || function () {
43
43
  };
44
44
  }();
45
45
 
46
- var debug = require('debug')('worker:TagSecondConfig');
47
-
48
- var TagSecondConfig =
46
+ var AComponent =
49
47
  /** @class */
50
48
  function (_super) {
51
- __extends(TagSecondConfig, _super);
49
+ __extends(AComponent, _super);
52
50
 
53
- function TagSecondConfig() {
51
+ function AComponent() {
54
52
  var _this = _super !== null && _super.apply(this, arguments) || this;
55
53
 
56
54
  _this.state = {};
57
55
 
58
- _this.getContentPanel = function () {
59
- var panelProps = _this.props.panelProps;
60
- var source = [{
61
- key: '1',
62
- name: (0, _locale.i18n)('BUTTON_TAG'),
63
- value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
64
- data: panelProps.button
65
- }),
66
- metaOption: panelProps.button
67
- }];
68
- return /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
69
- headerSize: "middle",
70
- onRefresh: function onRefresh() {
71
- return (0, _coreUtil.renderPreview)();
72
- },
73
- showActiveColor: true,
74
- source: source,
75
- type: "switch"
76
- });
56
+ _this.reRender = function () {
57
+ (0, _coreUtil.renderPreview)();
58
+
59
+ _this.setState({});
77
60
  };
78
61
 
79
62
  return _this;
80
63
  }
81
64
 
82
- TagSecondConfig.prototype.render = function () {
65
+ AComponent.prototype.render = function () {
66
+ var panelProps = this.props.panelProps;
83
67
  return /*#__PURE__*/_react["default"].createElement("div", {
84
- className: "tag_second_conf_wrap"
85
- }, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
86
- divider: "bold",
87
- headerSize: "large",
68
+ className: "recommend_content"
69
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
70
+ headerSize: "middle",
71
+ onRefresh: this.reRender,
88
72
  source: [{
89
73
  key: '1',
90
- name: (0, _locale.i18n)('CONTENT'),
91
- value: this.getContentPanel()
92
- }]
74
+ name: (0, _locale.i18n)('BUTTON'),
75
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
76
+ data: panelProps.button
77
+ }),
78
+ metaOption: panelProps.button
79
+ }, {
80
+ key: '2',
81
+ name: (0, _locale.i18n)('SECONDARY_BUTTON'),
82
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
83
+ data: panelProps.secondaryButton
84
+ }),
85
+ metaOption: panelProps.secondaryButton
86
+ }],
87
+ type: "switch"
93
88
  }));
94
89
  };
95
90
 
96
- TagSecondConfig.defaultProps = {
97
- panelProps: {}
91
+ AComponent.defaultProps = {
92
+ panelProps: {
93
+ button: {},
94
+ secondaryButton: {}
95
+ }
98
96
  };
99
- return TagSecondConfig;
97
+ return AComponent;
100
98
  }(_react["default"].Component);
101
99
 
102
- var _default = TagSecondConfig;
100
+ var _default = AComponent;
103
101
  exports["default"] = _default;
@@ -7,7 +7,7 @@ exports["default"] = ButtonConfig;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _ButtonConfigGroup = _interopRequireDefault(require("./ButtonConfigGroup"));
10
+ var _ButtonConfigContent = _interopRequireDefault(require("./ButtonConfigContent"));
11
11
 
12
12
  var _layout = _interopRequireDefault(require("./imgs/layout1.png"));
13
13
 
@@ -33,8 +33,8 @@ function ButtonConfig(props) {
33
33
  source: [{
34
34
  key: '1',
35
35
  name: (0, _locale.i18n)('CONTENT'),
36
- value: /*#__PURE__*/_react["default"].createElement(_ButtonConfigGroup["default"], {
37
- source: data.groupSource
36
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfigContent["default"], {
37
+ panelProps: data.content
38
38
  })
39
39
  }, {
40
40
  key: '2',
@@ -21,8 +21,6 @@ var _defaultImg = _interopRequireDefault(require("../imgs/defaultImg.png"));
21
21
 
22
22
  var _locale = require("../../../../../locale");
23
23
 
24
- var _decorator = require("../../../../../decorator");
25
-
26
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
25
 
28
26
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
@@ -82,7 +80,7 @@ function (_super) {
82
80
  };
83
81
 
84
82
  _this.onAddClick = function () {
85
- var json = (0, _defaultJSON.imagesGroupSourceJSON)(_this.props.id);
83
+ var json = (0, _defaultJSON.imagesGroupSourceJSON)('', 'Tab');
86
84
 
87
85
  _this.props.source.push(json);
88
86
 
@@ -140,7 +138,7 @@ function (_super) {
140
138
  AComponent.defaultProps = {
141
139
  source: []
142
140
  };
143
- AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], AComponent);
141
+ AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], AComponent);
144
142
  return AComponent;
145
143
  }(_react["default"].Component);
146
144
 
@@ -34,7 +34,6 @@ function CarouselConfig(props) {
34
34
  key: '1',
35
35
  name: (0, _locale.i18n)('IMAGE'),
36
36
  value: /*#__PURE__*/_react["default"].createElement(_CarouselConfigImageGroup["default"], {
37
- id: data.id,
38
37
  source: data.groupSource
39
38
  })
40
39
  }, {
@@ -19,8 +19,6 @@ var _defaultJSON = require("../../../components/ImageText/defaultJSON");
19
19
 
20
20
  var _locale = require("../../../../../locale");
21
21
 
22
- var _decorator = require("../../../../../decorator");
23
-
24
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
23
 
26
24
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
@@ -122,7 +120,7 @@ function (_super) {
122
120
  ImageTextConfigGroup.defaultProps = {
123
121
  source: []
124
122
  };
125
- ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], ImageTextConfigGroup);
123
+ ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], ImageTextConfigGroup);
126
124
  return ImageTextConfigGroup;
127
125
  }(_react["default"].Component);
128
126
 
@@ -164,7 +164,7 @@ function (_super) {
164
164
  }),
165
165
  metaOption: data.groupSource
166
166
  }, {
167
- key: 'imageText3',
167
+ key: '2',
168
168
  name: (0, _locale.i18n)('SPACING'),
169
169
  value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
170
170
  data: data.spacing
@@ -173,7 +173,6 @@ function (_super) {
173
173
  key: 'imageText4',
174
174
  name: (0, _locale.i18n)('CUSTOMIZE'),
175
175
  value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
176
- component: "imageText",
177
176
  data: data.customize,
178
177
  layoutSource: (0, _coreUtil.isPc)() ? _layout.imageTextLayoutPc : _layout.imageTextLayoutMobile,
179
178
  selectedLayoutFun: function selectedLayoutFun(v) {
@@ -9,8 +9,6 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _NewsletterContentSetting = _interopRequireDefault(require("./NewsletterContentSetting"));
11
11
 
12
- var _locale = require("../../../../locale");
13
-
14
12
  var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
15
13
 
16
14
  var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
@@ -30,26 +28,26 @@ function NewsletterConfig(props) {
30
28
  headerSize: "large",
31
29
  source: [{
32
30
  key: '1',
33
- name: (0, _locale.i18n)('CONTENT'),
31
+ name: i18n('CONTENT'),
34
32
  value: /*#__PURE__*/_react["default"].createElement(_NewsletterContentSetting["default"], {
35
33
  panelProps: data.content
36
34
  })
37
35
  }, {
38
36
  key: '2',
39
- name: (0, _locale.i18n)('SPACING'),
37
+ name: i18n('SPACING'),
40
38
  value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
41
39
  data: data.spacing
42
40
  })
43
41
  }, {
44
42
  key: '3',
45
- name: (0, _locale.i18n)('CUSTOMIZE'),
43
+ name: i18n('CUSTOMIZE'),
46
44
  value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
47
45
  data: data.customize,
48
46
  layoutSource: _layout.newsletterLayout
49
47
  })
50
48
  }, {
51
49
  key: '4',
52
- name: (0, _locale.i18n)('BACKGROUND'),
50
+ name: i18n('BACKGROUND'),
53
51
  value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
54
52
  data: data.background
55
53
  })
@@ -7,7 +7,7 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _TagConfigGroup = _interopRequireDefault(require("../TagConfigGroup"));
10
+ var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
11
11
 
12
12
  var _coreUtil = require("../../../../../utils/coreUtil");
13
13
 
@@ -15,8 +15,6 @@ var _common = require("../../../../../common");
15
15
 
16
16
  var _ImageConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ImageConfig"));
17
17
 
18
- var _locale = require("../../../../../locale");
19
-
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
19
 
22
20
  var __extends = void 0 && (void 0).__extends || function () {
@@ -65,9 +63,7 @@ function (_super) {
65
63
  }
66
64
 
67
65
  AComponent.prototype.render = function () {
68
- var _a = this.props,
69
- panelProps = _a.panelProps,
70
- groupSource = _a.groupSource;
66
+ var panelProps = this.props.panelProps;
71
67
  return /*#__PURE__*/_react["default"].createElement("div", {
72
68
  className: "recommend_content"
73
69
  }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
@@ -75,15 +71,27 @@ function (_super) {
75
71
  onRefresh: this.reRender,
76
72
  source: [{
77
73
  key: '1',
78
- name: (0, _locale.i18n)('IMAGE_TAG'),
74
+ name: i18n('IMAGE_TAG'),
79
75
  value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
80
76
  data: panelProps.image
81
77
  }),
82
78
  metaOption: panelProps.image
79
+ }, {
80
+ key: '2',
81
+ name: i18n('BUTTON_TAG'),
82
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
83
+ data: panelProps.button
84
+ }),
85
+ metaOption: panelProps.button
86
+ }, {
87
+ key: '3',
88
+ name: i18n('SECONDARY_BUTTON_TAG'),
89
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
90
+ data: panelProps.secondaryButton
91
+ }),
92
+ metaOption: panelProps.secondaryButton
83
93
  }],
84
94
  type: "switch"
85
- }), /*#__PURE__*/_react["default"].createElement(_TagConfigGroup["default"], {
86
- source: groupSource
87
95
  }));
88
96
  };
89
97
 
@@ -19,8 +19,6 @@ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
19
19
 
20
20
  var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
21
21
 
22
- var _locale = require("../../../../locale");
23
-
24
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
23
 
26
24
  function TagCompConfig(props) {
@@ -30,20 +28,19 @@ function TagCompConfig(props) {
30
28
  headerSize: "large",
31
29
  source: [{
32
30
  key: '1',
33
- name: (0, _locale.i18n)('CONTENT'),
31
+ name: i18n('CONTENT'),
34
32
  value: /*#__PURE__*/_react["default"].createElement(_TagConfigContent["default"], {
35
- groupSource: data.groupSource,
36
33
  panelProps: data.content
37
34
  })
38
35
  }, {
39
36
  key: '2',
40
- name: (0, _locale.i18n)('SPACING'),
37
+ name: i18n('SPACING'),
41
38
  value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
42
39
  data: data.spacing
43
40
  })
44
41
  }, {
45
42
  key: '3',
46
- name: (0, _locale.i18n)('CUSTOMIZE'),
43
+ name: i18n('CUSTOMIZE'),
47
44
  value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
48
45
  data: data.customize,
49
46
  layoutSource: [{
@@ -54,7 +51,7 @@ function TagCompConfig(props) {
54
51
  })
55
52
  }, {
56
53
  key: '4',
57
- name: (0, _locale.i18n)('BACKGROUND'),
54
+ name: i18n('BACKGROUND'),
58
55
  value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
59
56
  data: data.background
60
57
  })
@@ -17,8 +17,6 @@ var _coreUtil = require("../../../../../utils/coreUtil");
17
17
 
18
18
  var _defaultJSON = require("../../../components/Text/defaultJSON");
19
19
 
20
- var _decorator = require("../../../../../decorator");
21
-
22
20
  require("./index.less");
23
21
 
24
22
  var _locale = require("../../../../../locale");
@@ -134,7 +132,7 @@ function (_super) {
134
132
  default_1.defaultProps = {
135
133
  source: []
136
134
  };
137
- default_1 = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], default_1);
135
+ default_1 = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], default_1);
138
136
  return default_1;
139
137
  }(_react["default"].Component);
140
138