@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
@@ -0,0 +1,578 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ require("./index.less");
11
+
12
+ var _lodash = _interopRequireDefault(require("lodash.throttle"));
13
+
14
+ var _defImg = _interopRequireDefault(require("./imgs/defImg1.png"));
15
+
16
+ var _defImg2 = _interopRequireDefault(require("./imgs/defImg2.png"));
17
+
18
+ var _defImg3 = _interopRequireDefault(require("./imgs/defImg3.png"));
19
+
20
+ var _ProductItem = _interopRequireDefault(require("../../../../common/components/ProductItem"));
21
+
22
+ var _coreUtil = require("../../../../../utils/coreUtil");
23
+
24
+ var _components = require("../../../../../meta-comp/components");
25
+
26
+ var _commonUtil = require("../../../../../utils/commonUtil");
27
+
28
+ var _storeUtil = require("../../../../../utils/storeUtil");
29
+
30
+ var _dateUtil = require("../../../../../utils/dateUtil");
31
+
32
+ var _CountDown = _interopRequireDefault(require("../../../../../common/CountDown"));
33
+
34
+ var _Iconfont = _interopRequireDefault(require("../../../../../common/Iconfont"));
35
+
36
+ var _locale = require("../../../../../locale");
37
+
38
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
39
+
40
+ var __extends = void 0 && (void 0).__extends || function () {
41
+ var _extendStatics = function extendStatics(d, b) {
42
+ _extendStatics = Object.setPrototypeOf || {
43
+ __proto__: []
44
+ } instanceof Array && function (d, b) {
45
+ d.__proto__ = b;
46
+ } || function (d, b) {
47
+ for (var p in b) {
48
+ if (b.hasOwnProperty(p)) d[p] = b[p];
49
+ }
50
+ };
51
+
52
+ return _extendStatics(d, b);
53
+ };
54
+
55
+ return function (d, b) {
56
+ _extendStatics(d, b);
57
+
58
+ function __() {
59
+ this.constructor = d;
60
+ }
61
+
62
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
63
+ };
64
+ }();
65
+
66
+ var __assign = void 0 && (void 0).__assign || function () {
67
+ __assign = Object.assign || function (t) {
68
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
69
+ s = arguments[i];
70
+
71
+ for (var p in s) {
72
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
73
+ }
74
+ }
75
+
76
+ return t;
77
+ };
78
+
79
+ return __assign.apply(this, arguments);
80
+ };
81
+
82
+ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
83
+ function adopt(value) {
84
+ return value instanceof P ? value : new P(function (resolve) {
85
+ resolve(value);
86
+ });
87
+ }
88
+
89
+ return new (P || (P = Promise))(function (resolve, reject) {
90
+ function fulfilled(value) {
91
+ try {
92
+ step(generator.next(value));
93
+ } catch (e) {
94
+ reject(e);
95
+ }
96
+ }
97
+
98
+ function rejected(value) {
99
+ try {
100
+ step(generator["throw"](value));
101
+ } catch (e) {
102
+ reject(e);
103
+ }
104
+ }
105
+
106
+ function step(result) {
107
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
108
+ }
109
+
110
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
111
+ });
112
+ };
113
+
114
+ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
115
+ var _ = {
116
+ label: 0,
117
+ sent: function sent() {
118
+ if (t[0] & 1) throw t[1];
119
+ return t[1];
120
+ },
121
+ trys: [],
122
+ ops: []
123
+ },
124
+ f,
125
+ y,
126
+ t,
127
+ g;
128
+ return g = {
129
+ next: verb(0),
130
+ "throw": verb(1),
131
+ "return": verb(2)
132
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
133
+ return this;
134
+ }), g;
135
+
136
+ function verb(n) {
137
+ return function (v) {
138
+ return step([n, v]);
139
+ };
140
+ }
141
+
142
+ function step(op) {
143
+ if (f) throw new TypeError("Generator is already executing.");
144
+
145
+ while (_) {
146
+ try {
147
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
148
+ if (y = 0, t) op = [op[0] & 2, t.value];
149
+
150
+ switch (op[0]) {
151
+ case 0:
152
+ case 1:
153
+ t = op;
154
+ break;
155
+
156
+ case 4:
157
+ _.label++;
158
+ return {
159
+ value: op[1],
160
+ done: false
161
+ };
162
+
163
+ case 5:
164
+ _.label++;
165
+ y = op[1];
166
+ op = [0];
167
+ continue;
168
+
169
+ case 7:
170
+ op = _.ops.pop();
171
+
172
+ _.trys.pop();
173
+
174
+ continue;
175
+
176
+ default:
177
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
178
+ _ = 0;
179
+ continue;
180
+ }
181
+
182
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
183
+ _.label = op[1];
184
+ break;
185
+ }
186
+
187
+ if (op[0] === 6 && _.label < t[1]) {
188
+ _.label = t[1];
189
+ t = op;
190
+ break;
191
+ }
192
+
193
+ if (t && _.label < t[2]) {
194
+ _.label = t[2];
195
+
196
+ _.ops.push(op);
197
+
198
+ break;
199
+ }
200
+
201
+ if (t[2]) _.ops.pop();
202
+
203
+ _.trys.pop();
204
+
205
+ continue;
206
+ }
207
+
208
+ op = body.call(thisArg, _);
209
+ } catch (e) {
210
+ op = [6, e];
211
+ y = 0;
212
+ } finally {
213
+ f = t = 0;
214
+ }
215
+ }
216
+
217
+ if (op[0] & 5) throw op[1];
218
+ return {
219
+ value: op[0] ? op[1] : void 0,
220
+ done: true
221
+ };
222
+ }
223
+ };
224
+
225
+ var defaultData = [{
226
+ imgUrlContent: {
227
+ url: _defImg["default"]
228
+ },
229
+ offerName: 'DITO STARTER PACK + 3GB Data',
230
+ salesPrice: 49,
231
+ marketPrice: 100,
232
+ discountPercent: 51,
233
+ salePercent: 5000,
234
+ sppType: '2'
235
+ }, {
236
+ imgUrlContent: {
237
+ url: _defImg2["default"]
238
+ },
239
+ offerName: 'DITO Level Up 99 x 365 days',
240
+ salesPrice: 594,
241
+ marketPrice: 1188,
242
+ discountPercent: 50,
243
+ salePercent: 5000,
244
+ sppType: '2'
245
+ }, {
246
+ imgUrlContent: {
247
+ url: _defImg3["default"]
248
+ },
249
+ offerName: 'DITO Level-Up Pack 99 7GB',
250
+ salesPrice: 99,
251
+ marketPrice: 138,
252
+ discountPercent: 28,
253
+ salePercent: 5000,
254
+ sppType: '2'
255
+ }, {
256
+ imgUrlContent: {
257
+ url: _defImg3["default"]
258
+ },
259
+ offerName: 'DITO Level-Up Pack 99 7GB',
260
+ salesPrice: 99,
261
+ marketPrice: 138,
262
+ discountPercent: 28,
263
+ salePercent: 5000,
264
+ sppType: '2'
265
+ }, {
266
+ imgUrlContent: {
267
+ url: _defImg3["default"]
268
+ },
269
+ offerName: 'DITO Level-Up Pack 99 7GB',
270
+ salesPrice: 99,
271
+ marketPrice: 138,
272
+ discountPercent: 28,
273
+ salePercent: 5000,
274
+ sppType: '2'
275
+ }, {
276
+ imgUrlContent: {
277
+ url: _defImg3["default"]
278
+ },
279
+ offerName: 'DITO Level-Up Pack 99 7GB',
280
+ salesPrice: 99,
281
+ marketPrice: 138,
282
+ discountPercent: 28,
283
+ salePercent: 5000,
284
+ sppType: '2'
285
+ }];
286
+
287
+ var FlashDealPc =
288
+ /** @class */
289
+ function (_super) {
290
+ __extends(FlashDealPc, _super);
291
+
292
+ function FlashDealPc() {
293
+ var _this = _super !== null && _super.apply(this, arguments) || this; // 商品列表排序方式
294
+
295
+
296
+ _this.sortType = '';
297
+ _this.pcRowNum = '';
298
+ _this.scrollRef = /*#__PURE__*/_react["default"].createRef();
299
+ _this.state = {
300
+ list: (0, _coreUtil.isDesignMode)() ? [] : (0, _commonUtil.ensure)(function () {
301
+ return (0, _storeUtil.getMagicStore)("flashSale_" + _this.props.panelProps.id);
302
+ }, []),
303
+ effDate: '',
304
+ expDate: '',
305
+ now: '',
306
+ isWill: false,
307
+ scrollToLeftDisabled: true,
308
+ scrollToRightDisabled: true
309
+ };
310
+
311
+ _this.getFlashData = function (pageSize, campaign) {
312
+ return __awaiter(_this, void 0, void 0, function () {
313
+ var res;
314
+ return __generator(this, function (_a) {
315
+ switch (_a.label) {
316
+ case 0:
317
+ return [4
318
+ /*yield*/
319
+ , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/flsale/offer/page", {
320
+ campaignId: campaign.campaignId,
321
+ sortType: this.sortType,
322
+ pageIndex: 1,
323
+ pageSize: pageSize
324
+ })];
325
+
326
+ case 1:
327
+ res = _a.sent();
328
+
329
+ if (!res.list || res.list.length === 0) {
330
+ // 秒杀场次结束之后,清空列表数据,隐藏秒杀组件
331
+ this.setState({
332
+ list: []
333
+ });
334
+
335
+ if (!(0, _coreUtil.isDesignMode)()) {
336
+ (0, _storeUtil.setMagicStore)("flashSale_" + this.props.panelProps.id, []);
337
+ }
338
+
339
+ return [2
340
+ /*return*/
341
+ ];
342
+ }
343
+
344
+ if (!(0, _coreUtil.isDesignMode)()) {
345
+ (0, _storeUtil.setMagicStore)("flashSale_" + this.props.panelProps.id, res.list);
346
+ }
347
+
348
+ this.setState({
349
+ now: +(0, _dateUtil.newDate)(campaign.now),
350
+ effDate: +(0, _dateUtil.newDate)(campaign.effDate),
351
+ expDate: +(0, _dateUtil.newDate)(campaign.expDate),
352
+ isWill: campaign.cmpState === 'A',
353
+ list: res.list
354
+ });
355
+ return [2
356
+ /*return*/
357
+ ];
358
+ }
359
+ });
360
+ });
361
+ };
362
+
363
+ _this.getNextFlashSale = function () {
364
+ return __awaiter(_this, void 0, void 0, function () {
365
+ var data;
366
+ return __generator(this, function (_a) {
367
+ switch (_a.label) {
368
+ case 0:
369
+ return [4
370
+ /*yield*/
371
+ , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/flsale/next", {
372
+ excludeExpireCmp: true
373
+ }, 'GET')];
374
+
375
+ case 1:
376
+ data = _a.sent();
377
+
378
+ if (data.length > 0) {
379
+ this.getFlashData(30, data[0]);
380
+ } else {
381
+ // 秒杀场次结束之后,清空列表数据,隐藏秒杀组件
382
+ this.setState({
383
+ list: []
384
+ });
385
+
386
+ if (!(0, _coreUtil.isDesignMode)()) {
387
+ (0, _storeUtil.setMagicStore)("flashSale_" + this.props.panelProps.id, []);
388
+ }
389
+ }
390
+
391
+ return [2
392
+ /*return*/
393
+ ];
394
+ }
395
+ });
396
+ });
397
+ };
398
+
399
+ _this.setScrollDisabled = function (scrollDom) {
400
+ var scrollToLeftDisabled = scrollDom.scrollLeft === 0;
401
+ var scrollToRightDisabled = scrollDom.clientWidth + scrollDom.scrollLeft >= scrollDom.scrollWidth;
402
+
403
+ _this.setState({
404
+ scrollToLeftDisabled: scrollToLeftDisabled,
405
+ scrollToRightDisabled: scrollToRightDisabled
406
+ });
407
+ };
408
+
409
+ _this.scrollToRight = function () {
410
+ var scrollDom = _this.scrollRef.current;
411
+
412
+ if (scrollDom.clientWidth + scrollDom.scrollLeft < scrollDom.scrollWidth) {
413
+ scrollDom.scrollTo(scrollDom.scrollLeft + scrollDom.clientWidth, 0);
414
+ }
415
+ };
416
+
417
+ _this.scrollToLeft = function () {
418
+ var scrollDom = _this.scrollRef.current;
419
+
420
+ if (scrollDom.scrollLeft > 0) {
421
+ scrollDom.scrollTo(scrollDom.scrollLeft - scrollDom.clientWidth, 0);
422
+ }
423
+ };
424
+
425
+ return _this;
426
+ }
427
+
428
+ FlashDealPc.prototype.componentDidMount = function () {
429
+ var _this = this;
430
+
431
+ this.sortType = this.props.panelProps.content.sortType;
432
+ this.getNextFlashSale();
433
+ setTimeout(function () {
434
+ var scrollDom = _this.scrollRef.current;
435
+
436
+ if (scrollDom) {
437
+ _this.setScrollDisabled(scrollDom);
438
+
439
+ scrollDom.onscroll = (0, _lodash["default"])(function () {
440
+ _this.setScrollDisabled(scrollDom);
441
+ }, 500);
442
+ }
443
+ }, 0);
444
+ };
445
+
446
+ FlashDealPc.prototype.componentWillReceiveProps = function (nextProps) {
447
+ var _this = this;
448
+
449
+ if (nextProps.panelProps.content.sortType !== this.sortType) {
450
+ this.sortType = nextProps.panelProps.content.sortType;
451
+ this.getNextFlashSale();
452
+ }
453
+
454
+ if (this.pcRowNum != nextProps.panelProps.customize.pcRowNum) {
455
+ setTimeout(function () {
456
+ var scrollDom = _this.scrollRef.current;
457
+
458
+ if (scrollDom) {
459
+ _this.setScrollDisabled(scrollDom);
460
+
461
+ scrollDom.onscroll = (0, _lodash["default"])(function () {
462
+ _this.setScrollDisabled(scrollDom);
463
+ }, 500);
464
+ }
465
+ }, 0);
466
+ this.pcRowNum = nextProps.panelProps.customize.pcRowNum;
467
+ }
468
+ };
469
+
470
+ FlashDealPc.prototype.render = function () {
471
+ var _this = this;
472
+
473
+ var panelProps = this.props.panelProps;
474
+ var _a = this.state,
475
+ list = _a.list,
476
+ effDate = _a.effDate,
477
+ expDate = _a.expDate,
478
+ now = _a.now,
479
+ isWill = _a.isWill,
480
+ scrollToLeftDisabled = _a.scrollToLeftDisabled,
481
+ scrollToRightDisabled = _a.scrollToRightDisabled;
482
+
483
+ var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
484
+
485
+ var bgStyle = {};
486
+
487
+ if (panelProps.background.bgType === 'color') {
488
+ bgStyle = {
489
+ backgroundColor: (0, _commonUtil.getColorRgba)(panelProps.background.color || '#fff', panelProps.background.opacity / 100 || 1)
490
+ };
491
+ } else {
492
+ bgStyle = {
493
+ background: "url(" + panelProps.background.image + ") no-repeat center",
494
+ backgroundSize: '100%'
495
+ };
496
+ }
497
+
498
+ var imgHeight = panelProps.customize.pcRowNum === 6 ? 153 : 193;
499
+ var imgWidth = panelProps.customize.pcRowNum === 6 ? 153 : 193;
500
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
501
+ className: "m-flash-deal-pc",
502
+ style: bgStyle
503
+ }, /*#__PURE__*/_react["default"].createElement("div", {
504
+ className: "flash-deal-title"
505
+ }, /*#__PURE__*/_react["default"].createElement("div", {
506
+ className: "left"
507
+ }, panelProps.title.icon.open && panelProps.title.icon.url && /*#__PURE__*/_react["default"].createElement("img", {
508
+ alt: "",
509
+ className: "icon",
510
+ src: panelProps.title.icon.url
511
+ }), panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
512
+ className: "title",
513
+ data: panelProps.title.headline
514
+ }), isWill && /*#__PURE__*/_react["default"].createElement("span", {
515
+ className: "sub-title"
516
+ }, (0, _locale.i18n)('NEXT')), /*#__PURE__*/_react["default"].createElement(_CountDown["default"], {
517
+ effDate: effDate,
518
+ expDate: expDate,
519
+ now: now,
520
+ refresh: this.getNextFlashSale
521
+ })), /*#__PURE__*/_react["default"].createElement("div", {
522
+ className: "right",
523
+ onClick: function onClick() {
524
+ return (0, _coreUtil.clickUrl)('/spike');
525
+ }
526
+ }, panelProps.title.button.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
527
+ className: "btn",
528
+ data: panelProps.title.button
529
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
530
+ className: "flash-deal-content"
531
+ }, /*#__PURE__*/_react["default"].createElement("div", {
532
+ className: "arrow-icon left",
533
+ onClick: function onClick() {
534
+ return _this.scrollToLeft();
535
+ }
536
+ }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
537
+ color: scrollToLeftDisabled ? '#BDC1C8' : '#232F46',
538
+ size: 20,
539
+ type: "icon-outlined-left"
540
+ })), /*#__PURE__*/_react["default"].createElement("div", {
541
+ ref: this.scrollRef,
542
+ className: "flash-deal-list"
543
+ }, _list.map(function (item) {
544
+ return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
545
+ key: item.id,
546
+ data: __assign(__assign({}, item), {
547
+ salePercent: isWill ? 0 : item.salePercent
548
+ }),
549
+ fixHeight: true,
550
+ imgHeight: imgHeight,
551
+ imgWidth: imgWidth,
552
+ onItemClick: function onItemClick() {
553
+ var _a;
554
+
555
+ return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + ((_a = item.sppProductId) !== null && _a !== void 0 ? _a : ''));
556
+ },
557
+ panelProps: panelProps.content
558
+ });
559
+ })), /*#__PURE__*/_react["default"].createElement("div", {
560
+ className: "arrow-icon right",
561
+ onClick: function onClick() {
562
+ return _this.scrollToRight();
563
+ }
564
+ }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
565
+ color: scrollToRightDisabled ? '#BDC1C8' : '#232F46',
566
+ size: 20,
567
+ type: "icon-outlined-right"
568
+ })))));
569
+ };
570
+
571
+ FlashDealPc.defaultProps = {
572
+ panelProps: {}
573
+ };
574
+ return FlashDealPc;
575
+ }(_react["default"].Component);
576
+
577
+ var _default = FlashDealPc;
578
+ exports["default"] = _default;
@@ -0,0 +1,121 @@
1
+ .m-flash-deal-pc {
2
+ display: flex;
3
+ flex-direction: column;
4
+ padding: 16px 16px 28px 16px;
5
+
6
+ .flash-deal-title {
7
+ display: flex;
8
+ justify-content: space-between;
9
+ align-items: center;
10
+
11
+ .left {
12
+ display: flex;
13
+ align-items: center;
14
+
15
+ .icon {
16
+ height: 18px;
17
+ margin-right: 10px;
18
+ }
19
+
20
+ .title {
21
+ font-family: 'Montserrat';
22
+ font-style: normal;
23
+ font-weight: 600;
24
+ font-size: 14px;
25
+ line-height: 18px;
26
+ color: #2C2C2C;
27
+ margin-right: 10px;
28
+ }
29
+
30
+ .sub-title {
31
+ font-family: 'Montserrat';
32
+ font-style: normal;
33
+ font-weight: 600;
34
+ font-size: 10px;
35
+ line-height: 18px;
36
+ color: #2C2C2C;
37
+ margin-right: 6px;
38
+ align-self: end;
39
+ }
40
+ }
41
+
42
+ .right {
43
+ display: flex;
44
+ align-items: center;
45
+
46
+ .text {
47
+ font-family: 'Montserrat';
48
+ font-style: normal;
49
+ font-weight: 600;
50
+ font-size: 12px;
51
+ line-height: 15px;
52
+ color: #0038A8;
53
+ margin-right: 5px;
54
+ }
55
+
56
+ .btn {
57
+ white-space: nowrap;
58
+ }
59
+ }
60
+ }
61
+
62
+ .flash-deal-content {
63
+ display: flex;
64
+ align-items: center;
65
+ flex-direction: row;
66
+
67
+ .arrow-icon {
68
+ display: block;
69
+ width: 36px;
70
+ height: 36px;
71
+ line-height: 42px;
72
+ text-align: center;
73
+ background: #FFFFFF;
74
+ box-shadow: -1px -1px 4px rgba(45, 48, 64, 0.08), 1px 1px 4px rgba(45, 48, 64, 0.08);
75
+ border-radius: 100px;
76
+ cursor: pointer;
77
+
78
+ &.left {
79
+ margin-right: 30px;
80
+ }
81
+
82
+ &.right {
83
+ margin-left: 30px;
84
+ }
85
+ }
86
+ }
87
+
88
+ .flash-deal-list {
89
+ margin-top: 16px;
90
+ overflow-x: auto;
91
+ overflow-y: hidden;
92
+ white-space: nowrap;
93
+ display: flex;
94
+ align-items: flex-start;
95
+ position: relative;
96
+ flex: 1;
97
+
98
+ .loading-wrap {
99
+ display: flex;
100
+ align-items: center;
101
+ justify-content: center;
102
+ padding: 30px;
103
+ position: absolute;
104
+ top: 0;
105
+ bottom: 0;
106
+ left: 0;
107
+ right: 0;
108
+ margin: auto;
109
+ }
110
+
111
+ // 秒杀特有样式
112
+ .m-product-item-wrap {
113
+ width: 142px;
114
+ margin-right: 24px;
115
+
116
+ .product-name {
117
+ height: 36px;
118
+ }
119
+ }
120
+ }
121
+ }