@fonixtree/magic-design 0.0.8 → 0.0.9

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 (352) hide show
  1. package/_virtual/Alpha.js +3 -0
  2. package/_virtual/Alpha2.js +3 -0
  3. package/_virtual/AlphaPointer.js +3 -0
  4. package/_virtual/Block.js +3 -0
  5. package/_virtual/BlockSwatches.js +3 -0
  6. package/_virtual/CheckIcon.js +3 -0
  7. package/_virtual/Checkboard.js +3 -0
  8. package/_virtual/Chrome.js +3 -0
  9. package/_virtual/ChromeFields.js +3 -0
  10. package/_virtual/ChromePointer.js +3 -0
  11. package/_virtual/ChromePointerCircle.js +3 -0
  12. package/_virtual/Circle.js +3 -0
  13. package/_virtual/CircleSwatch.js +3 -0
  14. package/_virtual/ColorWrap.js +3 -0
  15. package/_virtual/Compact.js +3 -0
  16. package/_virtual/CompactColor.js +3 -0
  17. package/_virtual/CompactFields.js +3 -0
  18. package/_virtual/EditableInput.js +3 -0
  19. package/_virtual/Github.js +3 -0
  20. package/_virtual/GithubSwatch.js +3 -0
  21. package/_virtual/Hue.js +3 -0
  22. package/_virtual/Hue2.js +3 -0
  23. package/_virtual/HuePointer.js +3 -0
  24. package/_virtual/Material.js +3 -0
  25. package/_virtual/Photoshop.js +3 -0
  26. package/_virtual/PhotoshopButton.js +3 -0
  27. package/_virtual/PhotoshopFields.js +3 -0
  28. package/_virtual/PhotoshopPointer.js +3 -0
  29. package/_virtual/PhotoshopPointerCircle.js +3 -0
  30. package/_virtual/PhotoshopPreviews.js +3 -0
  31. package/_virtual/Raised.js +3 -0
  32. package/_virtual/ResizeObserver.es.js +6 -0
  33. package/_virtual/Saturation.js +3 -0
  34. package/_virtual/Sketch.js +3 -0
  35. package/_virtual/SketchFields.js +3 -0
  36. package/_virtual/SketchPresetColors.js +3 -0
  37. package/_virtual/Slider2.js +3 -0
  38. package/_virtual/SliderPointer.js +3 -0
  39. package/_virtual/SliderSwatch.js +3 -0
  40. package/_virtual/SliderSwatches.js +3 -0
  41. package/_virtual/Swatch.js +3 -0
  42. package/_virtual/Swatches.js +3 -0
  43. package/_virtual/SwatchesColor.js +3 -0
  44. package/_virtual/SwatchesGroup.js +3 -0
  45. package/_virtual/Twitter.js +3 -0
  46. package/_virtual/UnfoldMoreHorizontalIcon.js +3 -0
  47. package/_virtual/__node-resolve_empty.js +6 -0
  48. package/_virtual/_cloneBuffer.js +3 -0
  49. package/_virtual/_commonjs-dynamic-modules.js +5 -0
  50. package/_virtual/_commonjsHelpers.js +28 -0
  51. package/_virtual/_node-resolve_empty.js +3 -0
  52. package/_virtual/_nodeUtil.js +3 -0
  53. package/_virtual/_rollupPluginBabelHelpers.js +18 -0
  54. package/_virtual/active.js +3 -0
  55. package/_virtual/alpha3.js +3 -0
  56. package/_virtual/arrows.js +3 -0
  57. package/_virtual/autoprefix.js +3 -0
  58. package/_virtual/axios.js +3 -0
  59. package/_virtual/checkboard2.js +3 -0
  60. package/_virtual/color.js +3 -0
  61. package/_virtual/colors.es2015.js +6 -0
  62. package/_virtual/default-props.js +3 -0
  63. package/_virtual/dots.js +3 -0
  64. package/_virtual/each.js +3 -0
  65. package/_virtual/flattenNames.js +3 -0
  66. package/_virtual/hover.js +3 -0
  67. package/_virtual/hue3.js +3 -0
  68. package/_virtual/index.js +3 -0
  69. package/_virtual/index10.js +3 -0
  70. package/_virtual/index11.js +3 -0
  71. package/_virtual/index12.js +3 -0
  72. package/_virtual/index2.js +5 -0
  73. package/_virtual/index3.js +3 -0
  74. package/_virtual/index4.js +3 -0
  75. package/_virtual/index5.js +3 -0
  76. package/_virtual/index6.js +3 -0
  77. package/_virtual/index7.js +3 -0
  78. package/_virtual/index8.js +3 -0
  79. package/_virtual/index9.js +3 -0
  80. package/_virtual/initial-state.js +3 -0
  81. package/_virtual/inner-slider.js +3 -0
  82. package/_virtual/innerSliderUtils.js +3 -0
  83. package/_virtual/interaction.js +3 -0
  84. package/_virtual/interopRequireDefault.js +3 -0
  85. package/_virtual/isBuffer.js +3 -0
  86. package/_virtual/lodash.js +3 -0
  87. package/_virtual/loop.js +3 -0
  88. package/_virtual/macy.js +3 -0
  89. package/_virtual/mergeClasses.js +3 -0
  90. package/_virtual/moment.js +3 -0
  91. package/_virtual/moment2.js +3 -0
  92. package/_virtual/react-dom.development.js +3 -0
  93. package/_virtual/react-is.development.js +3 -0
  94. package/_virtual/react-is.production.min.js +3 -0
  95. package/_virtual/regeneratorRuntime.js +3 -0
  96. package/_virtual/rng-browser.js +3 -0
  97. package/_virtual/saturation2.js +3 -0
  98. package/_virtual/scheduler-tracing.development.js +3 -0
  99. package/_virtual/scheduler-tracing.production.min.js +3 -0
  100. package/_virtual/scheduler.development.js +3 -0
  101. package/_virtual/scheduler.production.min.js +3 -0
  102. package/_virtual/slider.js +3 -0
  103. package/_virtual/tinycolor.js +3 -0
  104. package/_virtual/toArray.js +3 -0
  105. package/_virtual/tracing.js +3 -0
  106. package/_virtual/track.js +3 -0
  107. package/_virtual/typeof.js +3 -0
  108. package/package.json +4 -2
  109. package/src/components/assets/images/layout-icon/carouselLayout1.png.js +3 -0
  110. package/src/components/assets/images/layout-icon/carouselLayout2.png.js +3 -0
  111. package/src/components/assets/images/layout-icon/dividerLayout.svg.js +3 -0
  112. package/src/components/assets/images/layout-icon/imageGalleryLayout1.png.js +3 -0
  113. package/src/components/assets/images/layout-icon/imageGalleryLayout2.png.js +3 -0
  114. package/src/components/assets/images/layout-icon/imageGalleryLayout3.png.js +3 -0
  115. package/src/components/assets/images/layout-icon/layout-imagetext-m1-1.png.js +3 -0
  116. package/src/components/assets/images/layout-icon/layout-imagetext-m1-2.png.js +3 -0
  117. package/src/components/assets/images/layout-icon/layout-imagetext-m1-3.png.js +3 -0
  118. package/src/components/assets/images/layout-icon/layout-imagetext-m2.png.js +3 -0
  119. package/src/components/assets/images/layout-icon/layout-imagetext-m3.png.js +3 -0
  120. package/src/components/assets/images/layout-icon/layout-imagetext-p1.png.js +3 -0
  121. package/src/components/assets/images/layout-icon/layout-imagetext-p2.png.js +3 -0
  122. package/src/components/assets/images/layout-icon/layout-imagetext-p4.png.js +3 -0
  123. package/src/components/assets/images/layout-icon/layout-search.png.js +3 -0
  124. package/src/components/assets/images/layout-icon/newsletter.svg.js +3 -0
  125. package/src/components/assets/less/cylon-antd.less.js +3 -0
  126. package/src/components/assets/less/index.less.js +4 -0
  127. package/src/components/common/AlignSelector/index.js +65 -0
  128. package/src/components/common/AlignSelector/index.less.js +4 -0
  129. package/src/components/common/Button/index.js +155 -0
  130. package/src/components/common/Button/index.less.js +4 -0
  131. package/src/components/common/ButtonIconLayout/index.js +66 -0
  132. package/src/components/common/ButtonIconLayout/index.less.js +4 -0
  133. package/src/components/common/Collapse/index.js +404 -0
  134. package/src/components/common/Collapse/index.less.js +4 -0
  135. package/src/components/common/ColorPicker/index.js +95 -0
  136. package/src/components/common/ColorPicker/index.less.js +4 -0
  137. package/src/components/common/ColorPickerInput/index.js +76 -0
  138. package/src/components/common/ColorPickerInput/index.less.js +4 -0
  139. package/src/components/common/CountDown/index.js +110 -0
  140. package/src/components/common/CountDown/index.less.js +4 -0
  141. package/src/components/common/Field/index.js +43 -0
  142. package/src/components/common/Field/index.less.js +4 -0
  143. package/src/components/common/FontStyles/index.js +124 -0
  144. package/src/components/common/FontStyles/index.less.js +4 -0
  145. package/src/components/common/GroupList/defaultImg.png.js +3 -0
  146. package/src/components/common/GroupList/index.js +170 -0
  147. package/src/components/common/GroupList/index.less.js +4 -0
  148. package/src/components/common/IconPicker/index.js +93 -0
  149. package/src/components/common/IconPicker/index.less.js +4 -0
  150. package/src/components/common/Iconfont/index.js +74 -0
  151. package/src/components/common/Iconfont/index.less.js +4 -0
  152. package/src/components/common/ImageModal/CommonModal/const.js +16 -0
  153. package/src/components/common/ImageModal/CommonModal/index.js +114 -0
  154. package/src/components/common/ImageModal/CommonSelPicCard/index.js +147 -0
  155. package/src/components/common/ImageModal/CommonSelPicCard/index.less.js +4 -0
  156. package/src/components/common/ImageModal/const.js +18 -0
  157. package/src/components/common/ImageModal/index.js +628 -0
  158. package/src/components/common/ImageModal/index.less.js +4 -0
  159. package/src/components/common/ImagePicker/index.js +124 -0
  160. package/src/components/common/ImagePicker/index.less.js +4 -0
  161. package/src/components/common/InputNumber/index.js +135 -0
  162. package/src/components/common/InputNumber/index.less.js +4 -0
  163. package/src/components/common/LayoutSelector/imgs/center.png.js +3 -0
  164. package/src/components/common/LayoutSelector/imgs/left.png.js +3 -0
  165. package/src/components/common/LayoutSelector/imgs/right.png.js +3 -0
  166. package/src/components/common/LayoutSelector/index.js +70 -0
  167. package/src/components/common/LayoutSelector/index.less.js +4 -0
  168. package/src/components/common/LinkModal/CatgTable/index.js +159 -0
  169. package/src/components/common/LinkModal/CouponTable/index.js +192 -0
  170. package/src/components/common/LinkModal/CustomTable/index.js +153 -0
  171. package/src/components/common/LinkModal/FilteredProductModal/index.js +544 -0
  172. package/src/components/common/LinkModal/FilteredProductModal/index.less.js +4 -0
  173. package/src/components/common/LinkModal/FunctionTable/index.js +147 -0
  174. package/src/components/common/LinkModal/ProductDetailPage/index.js +322 -0
  175. package/src/components/common/LinkModal/ProductDetailPage/index.less.js +4 -0
  176. package/src/components/common/LinkModal/index.js +193 -0
  177. package/src/components/common/LinkModal/index.less.js +4 -0
  178. package/src/components/common/NewImg/index.js +91 -0
  179. package/src/components/common/ProductModal/index.js +637 -0
  180. package/src/components/common/ProductModal/index.less.js +4 -0
  181. package/src/components/common/ProductSource/index.js +91 -0
  182. package/src/components/common/ProductSource/index.less.js +4 -0
  183. package/src/components/common/RcCollapse/Collapse.js +176 -0
  184. package/src/components/common/RcCollapse/Panel.js +146 -0
  185. package/src/components/common/RcCollapse/PanelContent.js +41 -0
  186. package/src/components/common/RcCollapse/index.js +6 -0
  187. package/src/components/common/RcCollapse/index.less.js +4 -0
  188. package/src/components/common/RcCollapse/motionUtil.js +37 -0
  189. package/src/components/common/Slider/index.js +175 -0
  190. package/src/components/common/Slider/index.less.js +4 -0
  191. package/src/components/common/SwitchCollapse/index.js +243 -0
  192. package/src/components/common/SwitchCollapse/index.less.js +4 -0
  193. package/src/components/common/UrlPicker/index.js +81 -0
  194. package/src/components/common/UrlPicker/index.less.js +4 -0
  195. package/src/components/composite-comp/bol/components/Banner/defaultJSON.js +258 -0
  196. package/src/components/composite-comp/bol/components/Banner/imgs/banner.png.js +3 -0
  197. package/src/components/composite-comp/bol/components/Banner/index.js +34 -0
  198. package/src/components/composite-comp/bol/components/Banner/mobile/index.js +256 -0
  199. package/src/components/composite-comp/bol/components/Banner/mobile/index.less.js +4 -0
  200. package/src/components/composite-comp/bol/components/Banner/pc/index.js +334 -0
  201. package/src/components/composite-comp/bol/components/Banner/pc/index.less.js +4 -0
  202. package/src/components/composite-comp/bol/components/Button/defaultJSON.js +93 -0
  203. package/src/components/composite-comp/bol/components/Button/index.js +48 -0
  204. package/src/components/composite-comp/bol/components/Button/index.less.js +4 -0
  205. package/src/components/composite-comp/bol/components/Carousel/defaultJSON.js +286 -0
  206. package/src/components/composite-comp/bol/components/Carousel/imgs/defaultImg.png.js +3 -0
  207. package/src/components/composite-comp/bol/components/Carousel/index.js +37 -0
  208. package/src/components/composite-comp/bol/components/Carousel/mobile/index.js +217 -0
  209. package/src/components/composite-comp/bol/components/Carousel/mobile/index.less.js +4 -0
  210. package/src/components/composite-comp/bol/components/Carousel/pc/index.js +208 -0
  211. package/src/components/composite-comp/bol/components/Carousel/pc/index.less.js +4 -0
  212. package/src/components/composite-comp/bol/components/Divider/defaultJSON.js +40 -0
  213. package/src/components/composite-comp/bol/components/Divider/index.js +48 -0
  214. package/src/components/composite-comp/bol/components/ImageGallery/defaultJSON.js +64 -0
  215. package/src/components/composite-comp/bol/components/ImageGallery/index.js +30 -0
  216. package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.js +47 -0
  217. package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.less.js +4 -0
  218. package/src/components/composite-comp/bol/components/ImageText/defaultJSON.js +535 -0
  219. package/src/components/composite-comp/bol/components/ImageText/index.js +33 -0
  220. package/src/components/composite-comp/bol/components/ImageText/mobile/index.js +143 -0
  221. package/src/components/composite-comp/bol/components/ImageText/mobile/index.less.js +4 -0
  222. package/src/components/composite-comp/bol/components/ImageText/pc/index.js +112 -0
  223. package/src/components/composite-comp/bol/components/ImageText/pc/index.less.js +4 -0
  224. package/src/components/composite-comp/bol/components/Newsletter/defaultJSON.js +114 -0
  225. package/src/components/composite-comp/bol/components/Newsletter/index.js +65 -0
  226. package/src/components/composite-comp/bol/components/Newsletter/index.less.js +4 -0
  227. package/src/components/composite-comp/bol/components/Tag/defaultJSON.js +91 -0
  228. package/src/components/composite-comp/bol/components/Tag/index.js +52 -0
  229. package/src/components/composite-comp/bol/components/Tag/index.less.js +4 -0
  230. package/src/components/composite-comp/bol/components/Text/defaultJSON.js +125 -0
  231. package/src/components/composite-comp/bol/components/Text/index.js +68 -0
  232. package/src/components/composite-comp/bol/components/Text/index.less.js +4 -0
  233. package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +73 -0
  234. package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less.js +4 -0
  235. package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +200 -0
  236. package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less.js +4 -0
  237. package/src/components/composite-comp/bol/config-panels/BannerConfig/index.js +35 -0
  238. package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +79 -0
  239. package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png.js +3 -0
  240. package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png.js +3 -0
  241. package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/index.js +53 -0
  242. package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +91 -0
  243. package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +175 -0
  244. package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less.js +4 -0
  245. package/src/components/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png.js +3 -0
  246. package/src/components/composite-comp/bol/config-panels/CarouselConfig/index.js +54 -0
  247. package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +234 -0
  248. package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +66 -0
  249. package/src/components/composite-comp/bol/config-panels/DividerConfig/index.js +44 -0
  250. package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +91 -0
  251. package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/imgs/defaultImg.png.js +3 -0
  252. package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +44 -0
  253. package/src/components/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +74 -0
  254. package/src/components/composite-comp/bol/config-panels/ImageTextConfig/index.js +170 -0
  255. package/src/components/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +224 -0
  256. package/src/components/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +89 -0
  257. package/src/components/composite-comp/bol/config-panels/NewsletterConfig/index.js +44 -0
  258. package/src/components/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +88 -0
  259. package/src/components/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png.js +3 -0
  260. package/src/components/composite-comp/bol/config-panels/TagCompConfig/index.js +48 -0
  261. package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +79 -0
  262. package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +85 -0
  263. package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less.js +4 -0
  264. package/src/components/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png.js +3 -0
  265. package/src/components/composite-comp/bol/config-panels/TextCompConfig/index.js +55 -0
  266. package/src/components/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +109 -0
  267. package/src/components/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +107 -0
  268. package/src/components/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +116 -0
  269. package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +79 -0
  270. package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +70 -0
  271. package/src/components/composite-comp/common/components/ImageLabel/index.js +47 -0
  272. package/src/components/composite-comp/common/components/ImageLabel/index.less.js +4 -0
  273. package/src/components/composite-comp/common/components/ProductItem/index.js +121 -0
  274. package/src/components/composite-comp/common/components/ProductItem/index.less.js +4 -0
  275. package/src/components/composite-comp/common/config-panels/BackgroundConfig/index.js +170 -0
  276. package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.js +263 -0
  277. package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.less.js +4 -0
  278. package/src/components/composite-comp/common/config-panels/SpacingConfig/index.js +214 -0
  279. package/src/components/composite-comp/common/config-panels/SpacingConfig/index.less.js +4 -0
  280. package/src/components/composite-comp/dito/components/FlashDeal/defaultJSON.js +176 -0
  281. package/src/components/composite-comp/dito/components/FlashDeal/index.js +31 -0
  282. package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg1.png.js +3 -0
  283. package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg2.png.js +3 -0
  284. package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg3.png.js +3 -0
  285. package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.js +233 -0
  286. package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.less.js +4 -0
  287. package/src/components/composite-comp/dito/components/Recommend/defaultJSON.js +210 -0
  288. package/src/components/composite-comp/dito/components/Recommend/index.js +31 -0
  289. package/src/components/composite-comp/dito/components/Recommend/mobile/index.js +317 -0
  290. package/src/components/composite-comp/dito/components/Recommend/mobile/index.less.js +4 -0
  291. package/src/components/composite-comp/dito/components/SearchBar/defaultJSON.js +44 -0
  292. package/src/components/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg.js +3 -0
  293. package/src/components/composite-comp/dito/components/SearchBar/index.js +31 -0
  294. package/src/components/composite-comp/dito/components/SearchBar/mobile/index.js +89 -0
  295. package/src/components/composite-comp/dito/components/SearchBar/mobile/index.less.js +4 -0
  296. package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +202 -0
  297. package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +102 -0
  298. package/src/components/composite-comp/dito/config-panels/FlashDealConfig/imgs/layout1.png.js +3 -0
  299. package/src/components/composite-comp/dito/config-panels/FlashDealConfig/index.js +49 -0
  300. package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +97 -0
  301. package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +89 -0
  302. package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less.js +4 -0
  303. package/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png.js +3 -0
  304. package/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/layout1.png.js +3 -0
  305. package/src/components/composite-comp/dito/config-panels/RecommendConfig/index.js +49 -0
  306. package/src/components/composite-comp/dito/config-panels/SearchBarConfig/index.js +115 -0
  307. package/src/components/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +237 -0
  308. package/src/components/constants/component-types.js +48 -0
  309. package/src/components/constants/index.js +74 -0
  310. package/src/components/constants/layout.js +90 -0
  311. package/src/components/core/Designer/CompListPanel/CompCard/index.js +33 -0
  312. package/src/components/core/Designer/CompListPanel/CompCard/index.less.js +4 -0
  313. package/src/components/core/Designer/CompListPanel/index.js +109 -0
  314. package/src/components/core/Designer/CompListPanel/index.less.js +4 -0
  315. package/src/components/core/Designer/ConfigPanel/index.js +246 -0
  316. package/src/components/core/Designer/ConfigPanel/index.less.js +4 -0
  317. package/src/components/core/Designer/History/index.js +82 -0
  318. package/src/components/core/Designer/PageCompList/index.js +328 -0
  319. package/src/components/core/Designer/PageCompList/index.less.js +4 -0
  320. package/src/components/core/Designer/QuickMenuBar/index.js +130 -0
  321. package/src/components/core/Designer/QuickMenuBar/index.less.js +4 -0
  322. package/src/components/core/Designer/ViewArea/index.js +86 -0
  323. package/src/components/core/Designer/ViewArea/index.less.js +4 -0
  324. package/src/components/core/Designer/index.js +445 -0
  325. package/src/components/core/Designer/index.less.js +4 -0
  326. package/src/components/core/Renderer/index.js +55 -0
  327. package/src/components/decorator/compositeDecorator.js +94 -0
  328. package/src/components/decorator/metaDecorator.js +150 -0
  329. package/src/components/index.js +4 -0
  330. package/src/components/meta-comp/components/Button/index.js +113 -0
  331. package/src/components/meta-comp/components/Button/index.less.js +4 -0
  332. package/src/components/meta-comp/components/Image/index.js +121 -0
  333. package/src/components/meta-comp/components/Image/index.less.js +4 -0
  334. package/src/components/meta-comp/components/Text/index.js +386 -0
  335. package/src/components/meta-comp/components/Text/index.less.js +4 -0
  336. package/src/components/meta-comp/config-panels/BaseConfig.js +47 -0
  337. package/src/components/meta-comp/config-panels/ButtonConfig/index.js +389 -0
  338. package/src/components/meta-comp/config-panels/ButtonConfig/index.less.js +4 -0
  339. package/src/components/meta-comp/config-panels/ImageConfig/index.js +260 -0
  340. package/src/components/meta-comp/config-panels/ImageConfig/index.less.js +4 -0
  341. package/src/components/meta-comp/config-panels/TextConfig/index.js +391 -0
  342. package/src/components/meta-comp/config-panels/TextConfig/index.less.js +4 -0
  343. package/src/components/mobx/Store.js +88 -0
  344. package/src/components/mobx/index.js +12 -0
  345. package/src/components/utils/androidUtil.js +22 -0
  346. package/src/components/utils/businessUtil.js +214 -0
  347. package/src/components/utils/commonUtil.js +223 -0
  348. package/src/components/utils/coreUtil.js +108 -0
  349. package/src/components/utils/currencyUtil.js +110 -0
  350. package/src/components/utils/dataTreeUtils.js +93 -0
  351. package/src/components/utils/dateUtil.js +30 -0
  352. package/src/components/utils/storeUtil.js +113 -0
@@ -0,0 +1,4 @@
1
+ import styleInject from '../../../../../../../node_modules/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = ".index_m-flash-deal-mobile__kOpDj {\n display: flex;\n flex-direction: column;\n padding: 16px 16px 28px 16px;\n}\n.index_m-flash-deal-mobile__kOpDj .index_flash-deal-title__Ckqt9 {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.index_m-flash-deal-mobile__kOpDj .index_flash-deal-title__Ckqt9 .index_left__IApxP {\n display: flex;\n align-items: center;\n}\n.index_m-flash-deal-mobile__kOpDj .index_flash-deal-title__Ckqt9 .index_left__IApxP .index_icon__v85R8 {\n height: 18px;\n margin-right: 10px;\n}\n.index_m-flash-deal-mobile__kOpDj .index_flash-deal-title__Ckqt9 .index_left__IApxP .index_title__eB-fI {\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 600;\n font-size: 14px;\n line-height: 18px;\n color: #2C2C2C;\n margin-right: 10px;\n}\n.index_m-flash-deal-mobile__kOpDj .index_flash-deal-title__Ckqt9 .index_left__IApxP .index_sub-title__nXzYJ {\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 600;\n font-size: 10px;\n line-height: 18px;\n color: #2C2C2C;\n margin-right: 6px;\n align-self: end;\n}\n.index_m-flash-deal-mobile__kOpDj .index_flash-deal-title__Ckqt9 .index_right__8WGHj {\n display: flex;\n align-items: center;\n}\n.index_m-flash-deal-mobile__kOpDj .index_flash-deal-title__Ckqt9 .index_right__8WGHj .index_text__ZZfrV {\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 600;\n font-size: 12px;\n line-height: 15px;\n color: #0038A8;\n margin-right: 5px;\n}\n.index_m-flash-deal-mobile__kOpDj .index_flash-deal-title__Ckqt9 .index_right__8WGHj .index_btn__jqVLi {\n white-space: nowrap;\n}\n.index_m-flash-deal-mobile__kOpDj .index_flash-deal-list__zF3qY {\n margin-top: 16px;\n overflow-x: auto;\n overflow-y: hidden;\n white-space: nowrap;\n border-radius: 9px;\n display: flex;\n align-items: flex-start;\n position: relative;\n}\n.index_m-flash-deal-mobile__kOpDj .index_flash-deal-list__zF3qY .index_loading-wrap__FHL2r {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 30px;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n margin: auto;\n}\n.index_m-flash-deal-mobile__kOpDj .index_flash-deal-list__zF3qY .index_m-product-item-wrap__qCAVj {\n margin-right: 8px;\n}\n.index_m-flash-deal-mobile__kOpDj .index_flash-deal-list__zF3qY .index_m-product-item-wrap__qCAVj .index_product-name__Ddpzc {\n height: 36px;\n}\n";
4
+ styleInject(css_248z);
@@ -0,0 +1,210 @@
1
+ import uuid_1 from '../../../../../../node_modules/uuid/index.js';
2
+
3
+ var recommendGroupSourceJSON = function (logo, text) {
4
+ var groupId = uuid_1.v4();
5
+ return {
6
+ id: groupId,
7
+ image: {
8
+ parentId: groupId,
9
+ id: uuid_1.v4(),
10
+ open: true,
11
+ type: 'IMAGE',
12
+ content: {
13
+ h5Name: '',
14
+ pcName: '',
15
+ h5ImgSrc: logo,
16
+ pcImgSrc: logo,
17
+ clickUrl: ''
18
+ },
19
+ hover: {
20
+ open: false,
21
+ backgroundType: 'enlarge',
22
+ magnification: 1.5,
23
+ pcImgHoverUrl: '',
24
+ h5ImgHoverUrl: ''
25
+ }
26
+ },
27
+ groupName: {
28
+ parentId: groupId,
29
+ id: uuid_1.v4(),
30
+ open: true,
31
+ type: 'TEXT',
32
+ specialContent: [],
33
+ text: text,
34
+ content: {
35
+ fontFamily: 'Open Sans',
36
+ fontWeight: 700,
37
+ fontSize: 14,
38
+ color: '#929292'
39
+ },
40
+ underline: {
41
+ open: false,
42
+ textDecorationColor: '',
43
+ textDecorationStyle: 'solid'
44
+ },
45
+ vertical: {}
46
+ },
47
+ sourceType: 'recommend',
48
+ hover: {
49
+ open: true,
50
+ image: {
51
+ parentId: groupId,
52
+ id: uuid_1.v4(),
53
+ open: false,
54
+ type: 'IMAGE',
55
+ content: {
56
+ h5Name: '',
57
+ pcName: '',
58
+ h5ImgSrc: logo,
59
+ pcImgSrc: logo,
60
+ clickUrl: ''
61
+ },
62
+ hover: {
63
+ open: false,
64
+ backgroundType: 'enlarge',
65
+ magnification: 1.5,
66
+ pcImgHoverUrl: '',
67
+ h5ImgHoverUrl: ''
68
+ }
69
+ },
70
+ groupName: {
71
+ parentId: groupId,
72
+ id: uuid_1.v4(),
73
+ open: false,
74
+ type: 'TEXT',
75
+ specialContent: [],
76
+ text: text,
77
+ content: {
78
+ fontFamily: 'Open Sans',
79
+ fontWeight: 700,
80
+ fontSize: 14,
81
+ color: '#CE1126'
82
+ },
83
+ underline: {
84
+ open: false,
85
+ textDecorationColor: '',
86
+ textDecorationStyle: 'solid'
87
+ },
88
+ vertical: {}
89
+ }
90
+ }
91
+ };
92
+ };
93
+ var getDefaultJSON = function () {
94
+ return {
95
+ id: uuid_1.v4(),
96
+ type: 'RECOMMEND',
97
+ groupSource: [recommendGroupSourceJSON('', 'Sale'), recommendGroupSourceJSON('', 'Popular')],
98
+ content: {
99
+ label: {
100
+ id: uuid_1.v4(),
101
+ open: true,
102
+ type: 'BUTTON',
103
+ text: 'Button',
104
+ content: {
105
+ url: '',
106
+ backgroundColor: '#0038A8'
107
+ },
108
+ buttonText: {
109
+ fontFamily: 'Open Sans',
110
+ fontWeight: 600,
111
+ fontSize: 8,
112
+ fontStyle: 'normal',
113
+ color: '#fff',
114
+ padding: '0 5px'
115
+ },
116
+ buttonBorder: {
117
+ open: true,
118
+ borderColor: '',
119
+ borderRadius: 7
120
+ },
121
+ buttonIcon: {
122
+ iconUrl: '',
123
+ layout: 'right'
124
+ },
125
+ hover: null
126
+ },
127
+ productName: {
128
+ id: uuid_1.v4(),
129
+ open: true,
130
+ type: 'Text',
131
+ specialContent: [],
132
+ text: 'Flash Deal',
133
+ content: {
134
+ fontFamily: 'Open Sans',
135
+ fontWeight: 500,
136
+ fontSize: 14,
137
+ color: '#2C2C2C'
138
+ },
139
+ underline: {
140
+ open: false,
141
+ textDecorationColor: '',
142
+ textDecorationStyle: 'solid'
143
+ },
144
+ vertical: {
145
+ open: false,
146
+ lineHeight: 18
147
+ }
148
+ },
149
+ activityPrice: {
150
+ id: uuid_1.v4(),
151
+ open: true,
152
+ type: 'Text',
153
+ specialContent: [],
154
+ text: 'Flash Deal',
155
+ content: {
156
+ fontFamily: 'Open Sans',
157
+ fontWeight: 600,
158
+ fontSize: 14,
159
+ color: '#CE1126'
160
+ },
161
+ underline: {
162
+ open: false,
163
+ textDecorationColor: '',
164
+ textDecorationStyle: 'solid'
165
+ },
166
+ vertical: {
167
+ open: false,
168
+ lineHeight: 18
169
+ }
170
+ },
171
+ salesPrice: {
172
+ id: uuid_1.v4(),
173
+ open: true,
174
+ type: 'Text',
175
+ specialContent: [],
176
+ text: 'Flash Deal',
177
+ content: {
178
+ fontFamily: 'Open Sans',
179
+ fontWeight: 500,
180
+ fontSize: 10,
181
+ color: '#929292'
182
+ },
183
+ underline: {
184
+ open: false,
185
+ textDecorationColor: '',
186
+ textDecorationStyle: 'solid'
187
+ },
188
+ vertical: {
189
+ open: false,
190
+ lineHeight: 18
191
+ }
192
+ },
193
+ salesProgressVisible: {
194
+ open: true
195
+ }
196
+ },
197
+ customize: {
198
+ layout: 'left',
199
+ align: 'left'
200
+ },
201
+ background: {
202
+ opacity: 100,
203
+ color: '#F2F2F2',
204
+ image: '',
205
+ bgType: 'color'
206
+ }
207
+ };
208
+ };
209
+
210
+ export { getDefaultJSON, recommendGroupSourceJSON };
@@ -0,0 +1,31 @@
1
+ import { __extends, __decorate } from '../../../../../../node_modules/tslib/tslib.es6.js';
2
+ import React__default, { Component } from 'react';
3
+ import RecommendMobile from './mobile/index.js';
4
+ import { getDefaultJSON } from './defaultJSON.js';
5
+ import { isPc } from '../../../../utils/coreUtil.js';
6
+ import compositeDecorator from '../../../../decorator/compositeDecorator.js';
7
+
8
+ var Recommend =
9
+ /** @class */
10
+ function (_super) {
11
+ __extends(Recommend, _super);
12
+
13
+ function Recommend() {
14
+ return _super !== null && _super.apply(this, arguments) || this;
15
+ }
16
+
17
+ Recommend.prototype.render = function () {
18
+ var nodeData = this.props.nodeData;
19
+ return /*#__PURE__*/React__default.createElement("div", null, isPc() ? null : /*#__PURE__*/React__default.createElement(RecommendMobile, {
20
+ panelProps: nodeData
21
+ }));
22
+ };
23
+
24
+ Recommend.defaultProps = {};
25
+ Recommend.type = 'RECOMMEND';
26
+ Recommend.getDefaultJSON = getDefaultJSON;
27
+ Recommend = __decorate([compositeDecorator], Recommend);
28
+ return Recommend;
29
+ }(Component);
30
+
31
+ export { Recommend as default };
@@ -0,0 +1,317 @@
1
+ import { __extends, __assign, __awaiter, __generator, __spreadArray } from '../../../../../../../node_modules/tslib/tslib.es6.js';
2
+ import React__default from 'react';
3
+ import Macy from '../../../../../../../node_modules/macy/dist/macy.js';
4
+ import './index.less.js';
5
+ import { store } from '../../../../../mobx/index.js';
6
+ import ProductItem from '../../../../common/components/ProductItem/index.js';
7
+ import Text from '../../../../../meta-comp/components/Text/index.js';
8
+ import '../../../../../meta-comp/components/Button/index.js';
9
+ import Image from '../../../../../meta-comp/components/Image/index.js';
10
+ import { getMagicStore, setMagicStore } from '../../../../../utils/storeUtil.js';
11
+ import { ensure, getColorRgba, commonFetch } from '../../../../../utils/commonUtil.js';
12
+ import { clickUrl, isDesignMode } from '../../../../../utils/coreUtil.js';
13
+
14
+ var RecommendMobile =
15
+ /** @class */
16
+ function (_super) {
17
+ __extends(RecommendMobile, _super);
18
+
19
+ function RecommendMobile() {
20
+ var _this = _super !== null && _super.apply(this, arguments) || this;
21
+
22
+ _this.preData = {};
23
+ _this._cache = isDesignMode() ? {} : ensure(function () {
24
+ return getMagicStore("recommend_".concat(_this.props.panelProps.id));
25
+ }, {});
26
+ _this.state = __assign({
27
+ tabIndex: 0,
28
+ tabLeft: 0,
29
+ tabWidth: 0
30
+ }, _this._cache);
31
+
32
+ _this.getTabBarActiveColor = function (_panelProps) {
33
+ var tabIndex = _this.state.tabIndex;
34
+ return ensure(function () {
35
+ return _panelProps.groupSource[tabIndex].hover.groupName.content.color;
36
+ }, '#1890ff');
37
+ };
38
+
39
+ _this.getProductList = function (index) {
40
+ return __awaiter(_this, void 0, void 0, function () {
41
+ var recommendId, cache, sourceType, ids, newData, res, res, _cache;
42
+
43
+ var _a, _b, _c;
44
+
45
+ var _this = this;
46
+
47
+ return __generator(this, function (_d) {
48
+ switch (_d.label) {
49
+ case 0:
50
+ recommendId = this.props.panelProps.id;
51
+
52
+ if (!isDesignMode()) {
53
+ cache = getMagicStore("recommend_".concat(recommendId));
54
+
55
+ if (cache) {
56
+ if ("products".concat(index) in cache) {
57
+ this.setState((_a = {}, _a["products".concat(index)] = cache["products".concat(index)], _a), function () {
58
+ _this.getMacy('.tab-item-container');
59
+ });
60
+ /** 如果数据未过期 */
61
+
62
+ if (cache.endTime > Date.now()) return [2
63
+ /*return*/
64
+ ];
65
+ }
66
+ }
67
+ }
68
+
69
+ sourceType = ensure(function () {
70
+ return _this.props.panelProps.groupSource[index].sourceType;
71
+ }, 'recommend');
72
+ ids = ensure(function () {
73
+ return _this.props.panelProps.groupSource[index].prodIds;
74
+ }, '');
75
+ newData = [];
76
+ _d.label = 1;
77
+
78
+ case 1:
79
+ _d.trys.push([1, 6,, 7]);
80
+
81
+ if (!(sourceType === 'select')) return [3
82
+ /*break*/
83
+ , 3];
84
+
85
+ if (!ids) {
86
+ return [2
87
+ /*return*/
88
+ ];
89
+ }
90
+
91
+ return [4
92
+ /*yield*/
93
+ , commonFetch("".concat(window.magicDesign.MBaseUrl, "/h5/products"), {
94
+ products: ids,
95
+ state: 'A'
96
+ }, 'GET')];
97
+
98
+ case 2:
99
+ res = _d.sent();
100
+ newData = __spreadArray([], res.list, true);
101
+ return [3
102
+ /*break*/
103
+ , 5];
104
+
105
+ case 3:
106
+ return [4
107
+ /*yield*/
108
+ , commonFetch("".concat(window.magicDesign.MBaseUrl, "/h5/offers"), {
109
+ pageIndex: 1,
110
+ pageSize: 30,
111
+ sortType: '1',
112
+ // intelligentType: 'ALL',
113
+ // aggregation: false,
114
+ q: ''
115
+ }, 'POST')];
116
+
117
+ case 4:
118
+ res = _d.sent();
119
+ newData = __spreadArray([], res.pageInfo.list, true);
120
+ _d.label = 5;
121
+
122
+ case 5:
123
+ return [3
124
+ /*break*/
125
+ , 7];
126
+
127
+ case 6:
128
+ _d.sent();
129
+ newData = [];
130
+ return [3
131
+ /*break*/
132
+ , 7];
133
+
134
+ case 7:
135
+ if (!isDesignMode()) {
136
+ _cache = getMagicStore("recommend_".concat(recommendId));
137
+ setMagicStore("recommend_".concat(recommendId), __assign(__assign({}, _cache), (_b = {}, _b["products".concat(index)] = newData, _b.endTime = Date.now() + 3 * 60 * 1000, _b)));
138
+ }
139
+
140
+ this.setState((_c = {}, _c["products".concat(index)] = newData, _c), function () {
141
+ _this.getMacy('.tab-item-container');
142
+ });
143
+ return [2
144
+ /*return*/
145
+ ];
146
+ }
147
+ });
148
+ });
149
+ };
150
+
151
+ _this.getMacy = function (container) {
152
+ var masonryNew = new Macy({
153
+ container: container,
154
+ trueOrder: false,
155
+ waitForImages: false,
156
+ useOwnImageLoader: false,
157
+ margin: {
158
+ x: 12,
159
+ y: 12
160
+ },
161
+ columns: 2 // 设置列数
162
+
163
+ });
164
+ masonryNew.runOnImageLoad(function () {
165
+ masonryNew.recalculate(true);
166
+ }, true);
167
+ };
168
+
169
+ _this.onTabChange = function (tabIndex) {
170
+ var _a;
171
+
172
+ var panelProps = _this.props.panelProps;
173
+ if (tabIndex === _this.state.tabIndex) return;
174
+
175
+ _this.setState((_a = {
176
+ tabIndex: tabIndex
177
+ }, _a["products".concat(tabIndex)] = [], _a));
178
+
179
+ var curTab = panelProps.groupSource[tabIndex];
180
+ if (curTab.prodIds === '') return;
181
+
182
+ _this.getProductList(tabIndex);
183
+ };
184
+
185
+ _this.getBackgroundStyle = function () {
186
+ var panelProps = _this.props.panelProps;
187
+ var bgStyle = {};
188
+
189
+ if (panelProps.background.bgType === 'color') {
190
+ bgStyle = {
191
+ backgroundColor: getColorRgba(panelProps.background.color || '#fff', panelProps.background.opacity / 100 || 1)
192
+ };
193
+ } else {
194
+ bgStyle = {
195
+ background: "url(".concat(panelProps.background.image, ") no-repeat center"),
196
+ backgroundSize: '100%'
197
+ };
198
+ }
199
+
200
+ return bgStyle;
201
+ };
202
+
203
+ _this.onTabClick = function (e, index) {
204
+ var tabLeft = e.currentTarget.offsetLeft;
205
+ var tabWidth = e.currentTarget.offsetWidth;
206
+ e.currentTarget.scrollIntoView(false);
207
+
208
+ _this.getProductList(index);
209
+
210
+ _this.setState({
211
+ tabLeft: tabLeft,
212
+ tabWidth: tabWidth,
213
+ tabIndex: index
214
+ }, function () {
215
+ _this.getMacy('.tab-item-container');
216
+ });
217
+ };
218
+
219
+ return _this;
220
+ }
221
+
222
+ RecommendMobile.prototype.componentDidMount = function () {
223
+ var tabIndex = this.state.tabIndex;
224
+ this.getProductList(tabIndex);
225
+ var initTabDom = document.querySelector('.tab-select-wrap .tabTitle:nth-child(1)');
226
+ var tabLeft = initTabDom.offsetLeft;
227
+ var tabWidth = initTabDom.offsetWidth;
228
+ this.setState({
229
+ tabLeft: tabLeft,
230
+ tabWidth: tabWidth
231
+ });
232
+ };
233
+
234
+ RecommendMobile.prototype.componentWillReceiveProps = function () {
235
+ var tabIndex = this.state.tabIndex;
236
+ var tabGroupInfo = this.props.panelProps.groupSource[tabIndex];
237
+
238
+ if (JSON.stringify(tabGroupInfo) === this.preData) {
239
+ return;
240
+ }
241
+
242
+ this.preData = JSON.stringify(tabGroupInfo);
243
+ this.getProductList(tabIndex);
244
+ };
245
+
246
+ RecommendMobile.prototype.render = function () {
247
+ var _this = this;
248
+
249
+ var panelProps = this.props.panelProps;
250
+ var _a = this.state,
251
+ tabIndex = _a.tabIndex,
252
+ tabLeft = _a.tabLeft,
253
+ tabWidth = _a.tabWidth;
254
+ var bgStyle = this.getBackgroundStyle();
255
+ var products = this.state["products".concat(tabIndex)] || [];
256
+ var isDivide = panelProps.groupSource.length <= 3;
257
+ return /*#__PURE__*/React__default.createElement("div", {
258
+ className: "m-recommend-mobile",
259
+ style: bgStyle
260
+ }, /*#__PURE__*/React__default.createElement("div", {
261
+ className: "tab-select-wrap"
262
+ }, panelProps.groupSource.map(function (tab, index) {
263
+ var _image = index == tabIndex && tab.hover.open && tab.hover.image.open ? tab.hover.image : tab.image;
264
+
265
+ var _groupName = index == tabIndex && tab.hover.open && tab.hover.groupName.open ? tab.hover.groupName : tab.groupName;
266
+
267
+ return /*#__PURE__*/React__default.createElement("div", {
268
+ className: "tabTitle",
269
+ onClick: function (e) {
270
+ _this.onTabClick(e, index);
271
+
272
+ store.setState({
273
+ clickedGroup: tab.id,
274
+ clickedFloor: store.getFloorIdByGroupId(tab.id)
275
+ });
276
+ },
277
+ style: {
278
+ flex: ~~isDivide
279
+ }
280
+ }, tab.image.open && _image && /*#__PURE__*/React__default.createElement(Image, {
281
+ data: _image
282
+ }), tab.groupName.open && /*#__PURE__*/React__default.createElement(Text, {
283
+ data: _groupName,
284
+ onTextInput: function (text) {
285
+ tab.hover.groupName.text = text;
286
+ tab.groupName.text = text;
287
+ }
288
+ }));
289
+ }), /*#__PURE__*/React__default.createElement("div", {
290
+ className: "active-line",
291
+ style: {
292
+ width: tabWidth,
293
+ transform: "translateX(".concat(tabLeft, "px)"),
294
+ background: this.getTabBarActiveColor(panelProps)
295
+ }
296
+ })), /*#__PURE__*/React__default.createElement("div", {
297
+ className: "tab-item-container"
298
+ }, products.map(function (item) {
299
+ return /*#__PURE__*/React__default.createElement(ProductItem, {
300
+ key: item.productId,
301
+ data: item,
302
+ onItemClick: function () {
303
+ return clickUrl("/product/detail/".concat(item.offerId, "?productId=").concat(item.sppProductId || item.productId || ''));
304
+ },
305
+ panelProps: panelProps.content,
306
+ showProgress: false
307
+ });
308
+ })));
309
+ };
310
+
311
+ RecommendMobile.defaultProps = {
312
+ panelProps: {}
313
+ };
314
+ return RecommendMobile;
315
+ }(React__default.Component);
316
+
317
+ export { RecommendMobile as default };
@@ -0,0 +1,4 @@
1
+ import styleInject from '../../../../../../../node_modules/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = ".index_m-recommend-mobile__qaM1U {\n display: flex;\n flex-direction: column;\n}\n.index_m-recommend-mobile__qaM1U .index_ant-tabs-nav-operations__NMWuU {\n display: none !important;\n}\n.index_m-recommend-mobile__qaM1U ::-webkit-scrollbar {\n width: 0;\n height: 0;\n display: none;\n}\n.index_m-recommend-mobile__qaM1U .index_tab-select-wrap__nI3U6 {\n display: flex;\n align-items: center;\n height: 50px;\n background: rgb(255 255 255);\n overflow: auto;\n position: relative;\n margin-bottom: 10px;\n}\n.index_m-recommend-mobile__qaM1U .index_tab-select-wrap__nI3U6 .index_tabTitle__dAUME {\n display: flex;\n align-items: center;\n padding: 0 24px;\n height: 100%;\n justify-content: center;\n white-space: nowrap;\n}\n.index_m-recommend-mobile__qaM1U .index_tab-select-wrap__nI3U6 .index_tabTitle__dAUME img {\n height: 18px;\n width: 18px;\n}\n.index_m-recommend-mobile__qaM1U .index_tab-select-wrap__nI3U6 .index_active-line__9KDx9 {\n position: absolute;\n bottom: 0;\n width: 200px;\n height: 3px;\n background-color: #fff;\n transition: 0.2s all linear;\n border-radius: 1.5px;\n}\n.index_m-recommend-mobile__qaM1U .index_tab-item-container__2zHjl {\n display: flex;\n margin: 0 12px;\n}\n";
4
+ styleInject(css_248z);
@@ -0,0 +1,44 @@
1
+ import uuid_1 from '../../../../../../node_modules/uuid/index.js';
2
+ import img from './imgs/dito-logo.svg.js';
3
+
4
+ var getDefaultJSON = function () {
5
+ return {
6
+ id: uuid_1.v4(),
7
+ type: 'SEARCH',
8
+ logo: {
9
+ id: uuid_1.v4(),
10
+ open: true,
11
+ type: 'IMAGE',
12
+ content: {
13
+ h5Name: 'name2',
14
+ pcName: 'name2',
15
+ h5ImgSrc: img,
16
+ pcImgSrc: 'https://online.iwhalecloud.com/static/banner3.d4d11f4b.webp',
17
+ clickUrl: ''
18
+ },
19
+ hover: {
20
+ open: false,
21
+ backgroundType: 'enlarge',
22
+ magnification: 1.5,
23
+ pcImgHoverUrl: '',
24
+ h5ImgHoverUrl: ''
25
+ }
26
+ },
27
+ icon: {
28
+ open: true,
29
+ color: '#2F54EB'
30
+ },
31
+ customize: {
32
+ layout: 'left',
33
+ align: 'left'
34
+ },
35
+ background: {
36
+ opacity: 100,
37
+ color: '#fff',
38
+ image: '',
39
+ bgType: 'color'
40
+ }
41
+ };
42
+ };
43
+
44
+ export { getDefaultJSON };
@@ -0,0 +1,3 @@
1
+ var img = "data:image/svg+xml,%3csvg width='69' height='20' viewBox='0 0 69 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.459 0.0166016H5.12022C3.76042 0.0194901 2.45736 0.562029 1.49731 1.52504C0.53725 2.48804 -0.00128482 3.79276 2.3019e-06 5.15257V19.5672C-0.000156996 19.6234 0.0107454 19.679 0.0320869 19.7309C0.0534285 19.7829 0.0847912 19.8301 0.124385 19.8699C0.163978 19.9097 0.211026 19.9414 0.262844 19.963C0.314661 19.9846 0.370232 19.9958 0.426385 19.996H11.5535C13.7819 19.9912 15.9171 19.1014 17.4895 17.5224C19.0619 15.9435 19.9427 13.8045 19.9382 11.5762V8.52608C19.9414 6.27348 19.0501 4.11179 17.4601 2.51612C15.8701 0.92046 13.7116 0.0214159 11.459 0.0166016ZM15.1681 11.4429C15.17 12.4235 14.7824 13.3647 14.0905 14.0596C13.3986 14.7545 12.459 15.1461 11.4784 15.1483H6.81001L3.03555 16.9193L4.83678 14.1526V5.19739C4.83645 5.08419 4.88103 4.97549 4.96073 4.89511C5.04043 4.81472 5.14875 4.76923 5.26195 4.76858H11.6662C12.5955 4.77211 13.4856 5.14376 14.1415 5.80216C14.7974 6.46056 15.1657 7.35204 15.1656 8.28139L15.1681 11.4429Z' fill='%23CE1126'/%3e%3cpath d='M27.3733 2.39582C27.3733 1.07858 26.3055 0.0107422 24.9882 0.0107422C23.671 0.0107422 22.6031 1.07858 22.6031 2.39582V17.6148C22.6031 18.932 23.671 19.9998 24.9882 19.9998C26.3055 19.9998 27.3733 18.932 27.3733 17.6148V2.39582Z' fill='%23CE1126'/%3e%3cpath d='M46.8076 0H30.4646C30.4083 -2.25721e-07 30.3526 0.0110998 30.3007 0.0326641C30.2487 0.0542284 30.2015 0.0858331 30.1618 0.125667C30.1221 0.165501 30.0906 0.212782 30.0692 0.2648C30.0478 0.316818 30.0368 0.372551 30.037 0.428805V4.29774C30.0368 4.35399 30.0478 4.40973 30.0692 4.46175C30.0906 4.51376 30.1221 4.56104 30.1618 4.60088C30.2015 4.64071 30.2487 4.67232 30.3007 4.69388C30.3526 4.71545 30.4083 4.72655 30.4646 4.72655H35.8138C35.8699 4.7267 35.9255 4.73792 35.9773 4.75956C36.0291 4.78119 36.0762 4.81282 36.1158 4.85264C36.1554 4.89246 36.1867 4.93969 36.208 4.99162C36.2294 5.04356 36.2403 5.0992 36.2401 5.15535V19.57C36.24 19.6262 36.2509 19.682 36.2723 19.734C36.2937 19.786 36.3252 19.8333 36.365 19.8731C36.4047 19.913 36.4519 19.9446 36.5038 19.9661C36.5558 19.9877 36.6115 19.9988 36.6677 19.9988H40.6105C40.6667 19.9986 40.7223 19.9874 40.7741 19.9658C40.8259 19.9441 40.873 19.9125 40.9126 19.8727C40.9522 19.8329 40.9835 19.7856 41.0049 19.7337C41.0262 19.6818 41.0371 19.6261 41.037 19.57V5.15535C41.036 5.04236 41.0798 4.93358 41.1588 4.85277C41.2377 4.77197 41.3455 4.72572 41.4585 4.72412H46.8076C46.8638 4.72396 46.9193 4.71275 46.9712 4.69111C47.023 4.66948 47.07 4.63785 47.1096 4.59803C47.1492 4.55821 47.1806 4.51098 47.2019 4.45904C47.2233 4.4071 47.2342 4.35147 47.234 4.29532V0.428805C47.2342 0.372653 47.2233 0.317019 47.2019 0.26508C47.1806 0.21314 47.1492 0.165914 47.1096 0.126095C47.07 0.0862771 47.023 0.0546472 46.9712 0.0330117C46.9193 0.0113762 46.8638 0.000158847 46.8076 0V0Z' fill='%23CE1126'/%3e%3cpath d='M58.3829 0.0107422H58.2508C55.6058 0.0165188 53.0714 1.07272 51.205 2.94703C49.3387 4.82134 48.2933 7.36024 48.2987 10.0053V17.4355C48.2974 18.1141 48.5657 18.7654 49.0445 19.2463C49.5234 19.7272 50.1736 19.9982 50.8522 19.9998H58.3817C61.0261 19.9931 63.5596 18.9365 65.4252 17.0623C67.2907 15.1881 68.3357 12.6497 68.3302 10.0053C68.3357 7.36108 67.2909 4.82291 65.4256 2.94874C63.5603 1.07457 61.0271 0.0178015 58.3829 0.0107422ZM63.4329 9.94351C63.4309 11.1388 63.017 12.2968 62.2607 13.2224C61.5044 14.1479 60.4522 14.7844 59.2813 15.0246C58.1104 15.2647 56.8925 15.0937 55.833 14.5406C54.7735 13.9874 53.9371 13.0858 53.4649 11.9878C52.9927 10.8898 52.9135 9.66252 53.2407 8.51294C53.5679 7.36335 54.2814 6.36174 55.2611 5.67697C56.2407 4.99221 57.4265 4.66616 58.6185 4.75382C59.8106 4.84147 60.9359 5.33746 61.8049 6.15816L65.2425 4.80633L62.9096 7.66382C63.2544 8.37299 63.4333 9.15132 63.4329 9.93988V9.94351Z' fill='%23CE1126'/%3e%3c/svg%3e";
2
+
3
+ export { img as default };
@@ -0,0 +1,31 @@
1
+ import { __extends, __decorate } from '../../../../../../node_modules/tslib/tslib.es6.js';
2
+ import React__default, { Component } from 'react';
3
+ import { getDefaultJSON } from './defaultJSON.js';
4
+ import SearchMobile from './mobile/index.js';
5
+ import { isPc } from '../../../../utils/coreUtil.js';
6
+ import compositeDecorator from '../../../../decorator/compositeDecorator.js';
7
+
8
+ var SearchBar =
9
+ /** @class */
10
+ function (_super) {
11
+ __extends(SearchBar, _super);
12
+
13
+ function SearchBar() {
14
+ return _super !== null && _super.apply(this, arguments) || this;
15
+ }
16
+
17
+ SearchBar.prototype.render = function () {
18
+ var nodeData = this.props.nodeData;
19
+ return /*#__PURE__*/React__default.createElement("div", null, isPc() ? null : /*#__PURE__*/React__default.createElement(SearchMobile, {
20
+ data: nodeData
21
+ }));
22
+ };
23
+
24
+ SearchBar.defaultProps = {};
25
+ SearchBar.type = 'SEARCH';
26
+ SearchBar.getDefaultJSON = getDefaultJSON;
27
+ SearchBar = __decorate([compositeDecorator], SearchBar);
28
+ return SearchBar;
29
+ }(Component);
30
+
31
+ export { SearchBar as default };