@fonixtree/magic-design 0.0.6 → 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.
- package/_virtual/Alpha.js +3 -0
- package/_virtual/Alpha2.js +3 -0
- package/_virtual/AlphaPointer.js +3 -0
- package/_virtual/Block.js +3 -0
- package/_virtual/BlockSwatches.js +3 -0
- package/_virtual/CheckIcon.js +3 -0
- package/_virtual/Checkboard.js +3 -0
- package/_virtual/Chrome.js +3 -0
- package/_virtual/ChromeFields.js +3 -0
- package/_virtual/ChromePointer.js +3 -0
- package/_virtual/ChromePointerCircle.js +3 -0
- package/_virtual/Circle.js +3 -0
- package/_virtual/CircleSwatch.js +3 -0
- package/_virtual/ColorWrap.js +3 -0
- package/_virtual/Compact.js +3 -0
- package/_virtual/CompactColor.js +3 -0
- package/_virtual/CompactFields.js +3 -0
- package/_virtual/EditableInput.js +3 -0
- package/_virtual/Github.js +3 -0
- package/_virtual/GithubSwatch.js +3 -0
- package/_virtual/Hue.js +3 -0
- package/_virtual/Hue2.js +3 -0
- package/_virtual/HuePointer.js +3 -0
- package/_virtual/Material.js +3 -0
- package/_virtual/Photoshop.js +3 -0
- package/_virtual/PhotoshopButton.js +3 -0
- package/_virtual/PhotoshopFields.js +3 -0
- package/_virtual/PhotoshopPointer.js +3 -0
- package/_virtual/PhotoshopPointerCircle.js +3 -0
- package/_virtual/PhotoshopPreviews.js +3 -0
- package/_virtual/Raised.js +3 -0
- package/_virtual/ResizeObserver.es.js +6 -0
- package/_virtual/Saturation.js +3 -0
- package/_virtual/Sketch.js +3 -0
- package/_virtual/SketchFields.js +3 -0
- package/_virtual/SketchPresetColors.js +3 -0
- package/_virtual/Slider2.js +3 -0
- package/_virtual/SliderPointer.js +3 -0
- package/_virtual/SliderSwatch.js +3 -0
- package/_virtual/SliderSwatches.js +3 -0
- package/_virtual/Swatch.js +3 -0
- package/_virtual/Swatches.js +3 -0
- package/_virtual/SwatchesColor.js +3 -0
- package/_virtual/SwatchesGroup.js +3 -0
- package/_virtual/Twitter.js +3 -0
- package/_virtual/UnfoldMoreHorizontalIcon.js +3 -0
- package/_virtual/__node-resolve_empty.js +6 -0
- package/_virtual/_cloneBuffer.js +3 -0
- package/_virtual/_commonjs-dynamic-modules.js +5 -0
- package/_virtual/_commonjsHelpers.js +28 -0
- package/_virtual/_node-resolve_empty.js +3 -0
- package/_virtual/_nodeUtil.js +3 -0
- package/_virtual/_rollupPluginBabelHelpers.js +18 -0
- package/_virtual/active.js +3 -0
- package/_virtual/alpha3.js +3 -0
- package/_virtual/arrows.js +3 -0
- package/_virtual/autoprefix.js +3 -0
- package/_virtual/axios.js +3 -0
- package/_virtual/checkboard2.js +3 -0
- package/_virtual/color.js +3 -0
- package/_virtual/colors.es2015.js +6 -0
- package/_virtual/default-props.js +3 -0
- package/_virtual/dots.js +3 -0
- package/_virtual/each.js +3 -0
- package/_virtual/flattenNames.js +3 -0
- package/_virtual/hover.js +3 -0
- package/_virtual/hue3.js +3 -0
- package/_virtual/index.js +3 -0
- package/_virtual/index10.js +3 -0
- package/_virtual/index11.js +3 -0
- package/_virtual/index12.js +3 -0
- package/_virtual/index2.js +5 -0
- package/_virtual/index3.js +3 -0
- package/_virtual/index4.js +3 -0
- package/_virtual/index5.js +3 -0
- package/_virtual/index6.js +3 -0
- package/_virtual/index7.js +3 -0
- package/_virtual/index8.js +3 -0
- package/_virtual/index9.js +3 -0
- package/_virtual/initial-state.js +3 -0
- package/_virtual/inner-slider.js +3 -0
- package/_virtual/innerSliderUtils.js +3 -0
- package/_virtual/interaction.js +3 -0
- package/_virtual/interopRequireDefault.js +3 -0
- package/_virtual/isBuffer.js +3 -0
- package/_virtual/lodash.js +3 -0
- package/_virtual/loop.js +3 -0
- package/_virtual/macy.js +3 -0
- package/_virtual/mergeClasses.js +3 -0
- package/_virtual/moment.js +3 -0
- package/_virtual/moment2.js +3 -0
- package/_virtual/react-dom.development.js +3 -0
- package/_virtual/react-is.development.js +3 -0
- package/_virtual/react-is.production.min.js +3 -0
- package/_virtual/regeneratorRuntime.js +3 -0
- package/_virtual/rng-browser.js +3 -0
- package/_virtual/saturation2.js +3 -0
- package/_virtual/scheduler-tracing.development.js +3 -0
- package/_virtual/scheduler-tracing.production.min.js +3 -0
- package/_virtual/scheduler.development.js +3 -0
- package/_virtual/scheduler.production.min.js +3 -0
- package/_virtual/slider.js +3 -0
- package/_virtual/tinycolor.js +3 -0
- package/_virtual/toArray.js +3 -0
- package/_virtual/tracing.js +3 -0
- package/_virtual/track.js +3 -0
- package/_virtual/typeof.js +3 -0
- package/package.json +6 -140
- package/src/components/assets/images/layout-icon/carouselLayout1.png.js +3 -0
- package/src/components/assets/images/layout-icon/carouselLayout2.png.js +3 -0
- package/src/components/assets/images/layout-icon/dividerLayout.svg.js +3 -0
- package/src/components/assets/images/layout-icon/imageGalleryLayout1.png.js +3 -0
- package/src/components/assets/images/layout-icon/imageGalleryLayout2.png.js +3 -0
- package/src/components/assets/images/layout-icon/imageGalleryLayout3.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-1.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-2.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-3.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-m2.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-m3.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-p1.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-p2.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-p4.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-search.png.js +3 -0
- package/src/components/assets/images/layout-icon/newsletter.svg.js +3 -0
- package/src/components/assets/less/cylon-antd.less.js +3 -0
- package/src/components/assets/less/index.less.js +4 -0
- package/src/components/common/AlignSelector/index.js +65 -0
- package/src/components/common/AlignSelector/index.less.js +4 -0
- package/src/components/common/Button/index.js +155 -0
- package/src/components/common/Button/index.less.js +4 -0
- package/src/components/common/ButtonIconLayout/index.js +66 -0
- package/src/components/common/ButtonIconLayout/index.less.js +4 -0
- package/src/components/common/Collapse/index.js +404 -0
- package/src/components/common/Collapse/index.less.js +4 -0
- package/src/components/common/ColorPicker/index.js +95 -0
- package/src/components/common/ColorPicker/index.less.js +4 -0
- package/src/components/common/ColorPickerInput/index.js +76 -0
- package/src/components/common/ColorPickerInput/index.less.js +4 -0
- package/src/components/common/CountDown/index.js +110 -0
- package/src/components/common/CountDown/index.less.js +4 -0
- package/src/components/common/Field/index.js +43 -0
- package/src/components/common/Field/index.less.js +4 -0
- package/src/components/common/FontStyles/index.js +124 -0
- package/src/components/common/FontStyles/index.less.js +4 -0
- package/src/components/common/GroupList/defaultImg.png.js +3 -0
- package/src/components/common/GroupList/index.js +170 -0
- package/src/components/common/GroupList/index.less.js +4 -0
- package/src/components/common/IconPicker/index.js +93 -0
- package/src/components/common/IconPicker/index.less.js +4 -0
- package/src/components/common/Iconfont/index.js +74 -0
- package/src/components/common/Iconfont/index.less.js +4 -0
- package/src/components/common/ImageModal/CommonModal/const.js +16 -0
- package/src/components/common/ImageModal/CommonModal/index.js +114 -0
- package/src/components/common/ImageModal/CommonSelPicCard/index.js +147 -0
- package/src/components/common/ImageModal/CommonSelPicCard/index.less.js +4 -0
- package/src/components/common/ImageModal/const.js +18 -0
- package/src/components/common/ImageModal/index.js +628 -0
- package/src/components/common/ImageModal/index.less.js +4 -0
- package/src/components/common/ImagePicker/index.js +124 -0
- package/src/components/common/ImagePicker/index.less.js +4 -0
- package/src/components/common/InputNumber/index.js +135 -0
- package/src/components/common/InputNumber/index.less.js +4 -0
- package/src/components/common/LayoutSelector/imgs/center.png.js +3 -0
- package/src/components/common/LayoutSelector/imgs/left.png.js +3 -0
- package/src/components/common/LayoutSelector/imgs/right.png.js +3 -0
- package/src/components/common/LayoutSelector/index.js +70 -0
- package/src/components/common/LayoutSelector/index.less.js +4 -0
- package/src/components/common/LinkModal/CatgTable/index.js +159 -0
- package/src/components/common/LinkModal/CouponTable/index.js +192 -0
- package/src/components/common/LinkModal/CustomTable/index.js +153 -0
- package/src/components/common/LinkModal/FilteredProductModal/index.js +544 -0
- package/src/components/common/LinkModal/FilteredProductModal/index.less.js +4 -0
- package/src/components/common/LinkModal/FunctionTable/index.js +147 -0
- package/src/components/common/LinkModal/ProductDetailPage/index.js +322 -0
- package/src/components/common/LinkModal/ProductDetailPage/index.less.js +4 -0
- package/src/components/common/LinkModal/index.js +193 -0
- package/src/components/common/LinkModal/index.less.js +4 -0
- package/src/components/common/NewImg/index.js +91 -0
- package/src/components/common/ProductModal/index.js +637 -0
- package/src/components/common/ProductModal/index.less.js +4 -0
- package/src/components/common/ProductSource/index.js +91 -0
- package/src/components/common/ProductSource/index.less.js +4 -0
- package/src/components/common/RcCollapse/Collapse.js +176 -0
- package/src/components/common/RcCollapse/Panel.js +146 -0
- package/src/components/common/RcCollapse/PanelContent.js +41 -0
- package/src/components/common/RcCollapse/index.js +6 -0
- package/src/components/common/RcCollapse/index.less.js +4 -0
- package/src/components/common/RcCollapse/motionUtil.js +37 -0
- package/src/components/common/Slider/index.js +175 -0
- package/src/components/common/Slider/index.less.js +4 -0
- package/src/components/common/SwitchCollapse/index.js +243 -0
- package/src/components/common/SwitchCollapse/index.less.js +4 -0
- package/src/components/common/UrlPicker/index.js +81 -0
- package/src/components/common/UrlPicker/index.less.js +4 -0
- package/src/components/composite-comp/bol/components/Banner/defaultJSON.js +258 -0
- package/src/components/composite-comp/bol/components/Banner/imgs/banner.png.js +3 -0
- package/src/components/composite-comp/bol/components/Banner/index.js +34 -0
- package/src/components/composite-comp/bol/components/Banner/mobile/index.js +256 -0
- package/src/components/composite-comp/bol/components/Banner/mobile/index.less.js +4 -0
- package/src/components/composite-comp/bol/components/Banner/pc/index.js +334 -0
- package/src/components/composite-comp/bol/components/Banner/pc/index.less.js +4 -0
- package/src/components/composite-comp/bol/components/Button/defaultJSON.js +93 -0
- package/src/components/composite-comp/bol/components/Button/index.js +48 -0
- package/src/components/composite-comp/bol/components/Button/index.less.js +4 -0
- package/src/components/composite-comp/bol/components/Carousel/defaultJSON.js +286 -0
- package/src/components/composite-comp/bol/components/Carousel/imgs/defaultImg.png.js +3 -0
- package/src/components/composite-comp/bol/components/Carousel/index.js +37 -0
- package/src/components/composite-comp/bol/components/Carousel/mobile/index.js +217 -0
- package/src/components/composite-comp/bol/components/Carousel/mobile/index.less.js +4 -0
- package/src/components/composite-comp/bol/components/Carousel/pc/index.js +208 -0
- package/src/components/composite-comp/bol/components/Carousel/pc/index.less.js +4 -0
- package/src/components/composite-comp/bol/components/Divider/defaultJSON.js +40 -0
- package/src/components/composite-comp/bol/components/Divider/index.js +48 -0
- package/src/components/composite-comp/bol/components/ImageGallery/defaultJSON.js +64 -0
- package/src/components/composite-comp/bol/components/ImageGallery/index.js +30 -0
- package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.js +47 -0
- package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.less.js +4 -0
- package/src/components/composite-comp/bol/components/ImageText/defaultJSON.js +535 -0
- package/src/components/composite-comp/bol/components/ImageText/index.js +33 -0
- package/src/components/composite-comp/bol/components/ImageText/mobile/index.js +143 -0
- package/src/components/composite-comp/bol/components/ImageText/mobile/index.less.js +4 -0
- package/src/components/composite-comp/bol/components/ImageText/pc/index.js +112 -0
- package/src/components/composite-comp/bol/components/ImageText/pc/index.less.js +4 -0
- package/src/components/composite-comp/bol/components/Newsletter/defaultJSON.js +114 -0
- package/src/components/composite-comp/bol/components/Newsletter/index.js +65 -0
- package/src/components/composite-comp/bol/components/Newsletter/index.less.js +4 -0
- package/src/components/composite-comp/bol/components/Tag/defaultJSON.js +91 -0
- package/src/components/composite-comp/bol/components/Tag/index.js +52 -0
- package/src/components/composite-comp/bol/components/Tag/index.less.js +4 -0
- package/src/components/composite-comp/bol/components/Text/defaultJSON.js +125 -0
- package/src/components/composite-comp/bol/components/Text/index.js +68 -0
- package/src/components/composite-comp/bol/components/Text/index.less.js +4 -0
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +73 -0
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less.js +4 -0
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +200 -0
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less.js +4 -0
- package/src/components/composite-comp/bol/config-panels/BannerConfig/index.js +35 -0
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +79 -0
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png.js +3 -0
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png.js +3 -0
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/index.js +53 -0
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +91 -0
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +175 -0
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less.js +4 -0
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png.js +3 -0
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/index.js +54 -0
- package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +234 -0
- package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +66 -0
- package/src/components/composite-comp/bol/config-panels/DividerConfig/index.js +44 -0
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +91 -0
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/imgs/defaultImg.png.js +3 -0
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +44 -0
- package/src/components/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +74 -0
- package/src/components/composite-comp/bol/config-panels/ImageTextConfig/index.js +170 -0
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +224 -0
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +89 -0
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/index.js +44 -0
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +88 -0
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png.js +3 -0
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/index.js +48 -0
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +79 -0
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +85 -0
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less.js +4 -0
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png.js +3 -0
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/index.js +55 -0
- package/src/components/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +109 -0
- package/src/components/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +107 -0
- package/src/components/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +116 -0
- package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +79 -0
- package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +70 -0
- package/src/components/composite-comp/common/components/ImageLabel/index.js +47 -0
- package/src/components/composite-comp/common/components/ImageLabel/index.less.js +4 -0
- package/src/components/composite-comp/common/components/ProductItem/index.js +121 -0
- package/src/components/composite-comp/common/components/ProductItem/index.less.js +4 -0
- package/src/components/composite-comp/common/config-panels/BackgroundConfig/index.js +170 -0
- package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.js +263 -0
- package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.less.js +4 -0
- package/src/components/composite-comp/common/config-panels/SpacingConfig/index.js +214 -0
- package/src/components/composite-comp/common/config-panels/SpacingConfig/index.less.js +4 -0
- package/src/components/composite-comp/dito/components/FlashDeal/defaultJSON.js +176 -0
- package/src/components/composite-comp/dito/components/FlashDeal/index.js +31 -0
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg1.png.js +3 -0
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg2.png.js +3 -0
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg3.png.js +3 -0
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.js +233 -0
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.less.js +4 -0
- package/src/components/composite-comp/dito/components/Recommend/defaultJSON.js +210 -0
- package/src/components/composite-comp/dito/components/Recommend/index.js +31 -0
- package/src/components/composite-comp/dito/components/Recommend/mobile/index.js +317 -0
- package/src/components/composite-comp/dito/components/Recommend/mobile/index.less.js +4 -0
- package/src/components/composite-comp/dito/components/SearchBar/defaultJSON.js +44 -0
- package/src/components/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg.js +3 -0
- package/src/components/composite-comp/dito/components/SearchBar/index.js +31 -0
- package/src/components/composite-comp/dito/components/SearchBar/mobile/index.js +89 -0
- package/src/components/composite-comp/dito/components/SearchBar/mobile/index.less.js +4 -0
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +202 -0
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +102 -0
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/imgs/layout1.png.js +3 -0
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/index.js +49 -0
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +97 -0
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +89 -0
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less.js +4 -0
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png.js +3 -0
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/layout1.png.js +3 -0
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/index.js +49 -0
- package/src/components/composite-comp/dito/config-panels/SearchBarConfig/index.js +115 -0
- package/src/components/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +237 -0
- package/src/components/constants/component-types.js +48 -0
- package/src/components/constants/index.js +74 -0
- package/src/components/constants/layout.js +90 -0
- package/src/components/core/Designer/CompListPanel/CompCard/index.js +33 -0
- package/src/components/core/Designer/CompListPanel/CompCard/index.less.js +4 -0
- package/src/components/core/Designer/CompListPanel/index.js +109 -0
- package/src/components/core/Designer/CompListPanel/index.less.js +4 -0
- package/src/components/core/Designer/ConfigPanel/index.js +246 -0
- package/src/components/core/Designer/ConfigPanel/index.less.js +4 -0
- package/src/components/core/Designer/History/index.js +82 -0
- package/src/components/core/Designer/PageCompList/index.js +328 -0
- package/src/components/core/Designer/PageCompList/index.less.js +4 -0
- package/src/components/core/Designer/QuickMenuBar/index.js +130 -0
- package/src/components/core/Designer/QuickMenuBar/index.less.js +4 -0
- package/src/components/core/Designer/ViewArea/index.js +86 -0
- package/src/components/core/Designer/ViewArea/index.less.js +4 -0
- package/src/components/core/Designer/index.js +445 -0
- package/src/components/core/Designer/index.less.js +4 -0
- package/src/components/core/Renderer/index.js +55 -0
- package/src/components/decorator/compositeDecorator.js +94 -0
- package/src/components/decorator/metaDecorator.js +150 -0
- package/src/components/index.js +4 -0
- package/src/components/meta-comp/components/Button/index.js +113 -0
- package/src/components/meta-comp/components/Button/index.less.js +4 -0
- package/src/components/meta-comp/components/Image/index.js +121 -0
- package/src/components/meta-comp/components/Image/index.less.js +4 -0
- package/src/components/meta-comp/components/Text/index.js +386 -0
- package/src/components/meta-comp/components/Text/index.less.js +4 -0
- package/src/components/meta-comp/config-panels/BaseConfig.js +47 -0
- package/src/components/meta-comp/config-panels/ButtonConfig/index.js +389 -0
- package/src/components/meta-comp/config-panels/ButtonConfig/index.less.js +4 -0
- package/src/components/meta-comp/config-panels/ImageConfig/index.js +260 -0
- package/src/components/meta-comp/config-panels/ImageConfig/index.less.js +4 -0
- package/src/components/meta-comp/config-panels/TextConfig/index.js +391 -0
- package/src/components/meta-comp/config-panels/TextConfig/index.less.js +4 -0
- package/src/components/mobx/Store.js +88 -0
- package/src/components/mobx/index.js +12 -0
- package/src/components/utils/androidUtil.js +22 -0
- package/src/components/utils/businessUtil.js +214 -0
- package/src/components/utils/commonUtil.js +223 -0
- package/src/components/utils/coreUtil.js +108 -0
- package/src/components/utils/currencyUtil.js +110 -0
- package/src/components/utils/dataTreeUtils.js +93 -0
- package/src/components/utils/dateUtil.js +30 -0
- package/src/components/utils/storeUtil.js +113 -0
- package/README.md +0 -311
- package/es/assets/fonts/Montserrat-Bold.ttf +0 -0
- package/es/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/es/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/es/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/es/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/es/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/es/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +0 -299
- package/es/assets/fonts/magic-box-iconfont.css.bak +0 -299
- package/es/assets/fonts/magic-box-iconfont.js +0 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +0 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/icon/index.js +0 -68
- package/es/assets/images/layout-icon/carouselLayout1.png +0 -0
- package/es/assets/images/layout-icon/carouselLayout2.png +0 -0
- package/es/assets/images/layout-icon/dividerLayout.svg +0 -4
- package/es/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m3-1.svg +0 -18
- package/es/assets/images/layout-icon/layout-imagetext-m3-2.svg +0 -9
- package/es/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
- package/es/assets/images/layout-icon/layout-search.png +0 -0
- package/es/assets/images/layout-icon/newsletter.svg +0 -7
- package/es/assets/less/button.less +0 -9
- package/es/assets/less/common.less +0 -82
- package/es/assets/less/cylon-antd.less +0 -32534
- package/es/assets/less/font.less +0 -50
- package/es/assets/less/global.less +0 -8
- package/es/assets/less/index.less +0 -11
- package/es/assets/less/input.less +0 -8
- package/es/assets/less/menu.less +0 -21
- package/es/assets/less/modal.less +0 -16
- package/es/assets/less/select.less +0 -19
- package/es/assets/less/slider.less +0 -21
- package/es/assets/less/switch.less +0 -20
- package/es/assets/less/table.less +0 -40
- package/es/assets/less/variables.less +0 -4
- package/es/common/AlignSelector/index.js +0 -104
- package/es/common/AlignSelector/index.less +0 -28
- package/es/common/Button/index.js +0 -134
- package/es/common/Button/index.less +0 -68
- package/es/common/ButtonIconLayout/index.js +0 -103
- package/es/common/ButtonIconLayout/index.less +0 -53
- package/es/common/Collapse/index.js +0 -384
- package/es/common/Collapse/index.less +0 -97
- package/es/common/ColorPicker/imgs/no-color.png +0 -0
- package/es/common/ColorPicker/index.js +0 -131
- package/es/common/ColorPicker/index.less +0 -26
- package/es/common/ColorPickerInput/imgs/code.png +0 -0
- package/es/common/ColorPickerInput/index.js +0 -114
- package/es/common/ColorPickerInput/index.less +0 -50
- package/es/common/CountDown/index.js +0 -151
- package/es/common/CountDown/index.less +0 -23
- package/es/common/Field/index.js +0 -80
- package/es/common/Field/index.less +0 -37
- package/es/common/FontStyles/index.js +0 -178
- package/es/common/FontStyles/index.less +0 -63
- package/es/common/GroupList/defaultImg.png +0 -0
- package/es/common/GroupList/index.js +0 -210
- package/es/common/GroupList/index.less +0 -85
- package/es/common/IconPicker/index.js +0 -147
- package/es/common/IconPicker/index.less +0 -46
- package/es/common/Iconfont/index.js +0 -148
- package/es/common/Iconfont/index.less +0 -20
- package/es/common/ImageModal/CommonModal/const.js +0 -22
- package/es/common/ImageModal/CommonModal/index.js +0 -46
- package/es/common/ImageModal/CommonSelPicCard/index.js +0 -80
- package/es/common/ImageModal/CommonSelPicCard/index.less +0 -40
- package/es/common/ImageModal/const.js +0 -24
- package/es/common/ImageModal/index.js +0 -748
- package/es/common/ImageModal/index.less +0 -21
- package/es/common/ImagePicker/index.js +0 -162
- package/es/common/ImagePicker/index.less +0 -104
- package/es/common/InputNumber/index.js +0 -91
- package/es/common/InputNumber/index.less +0 -33
- package/es/common/LayoutSelector/imgs/center.png +0 -0
- package/es/common/LayoutSelector/imgs/left.png +0 -0
- package/es/common/LayoutSelector/imgs/right.png +0 -0
- package/es/common/LayoutSelector/index.js +0 -111
- package/es/common/LayoutSelector/index.less +0 -34
- package/es/common/LinkModal/CatgTable/index.js +0 -234
- package/es/common/LinkModal/CouponTable/index.js +0 -299
- package/es/common/LinkModal/CustomTable/index.js +0 -227
- package/es/common/LinkModal/FilteredProductModal/index.js +0 -640
- package/es/common/LinkModal/FilteredProductModal/index.less +0 -113
- package/es/common/LinkModal/FunctionTable/index.js +0 -221
- package/es/common/LinkModal/ProductDetailPage/index.js +0 -433
- package/es/common/LinkModal/ProductDetailPage/index.less +0 -21
- package/es/common/LinkModal/index.js +0 -136
- package/es/common/LinkModal/index.less +0 -108
- package/es/common/NewImg/index.js +0 -165
- package/es/common/NewImg/index.less +0 -0
- package/es/common/ProductModal/index.js +0 -760
- package/es/common/ProductModal/index.less +0 -238
- package/es/common/ProductSource/index.js +0 -250
- package/es/common/ProductSource/index.less +0 -12
- package/es/common/RcCollapse/Collapse.js +0 -240
- package/es/common/RcCollapse/Panel.js +0 -193
- package/es/common/RcCollapse/PanelContent.js +0 -59
- package/es/common/RcCollapse/index.js +0 -15
- package/es/common/RcCollapse/index.less +0 -108
- package/es/common/RcCollapse/interface.js +0 -1
- package/es/common/RcCollapse/motion.less +0 -12
- package/es/common/RcCollapse/motionUtil.js +0 -44
- package/es/common/Slider/index.js +0 -151
- package/es/common/Slider/index.less +0 -45
- package/es/common/SwitchCollapse/index.js +0 -216
- package/es/common/SwitchCollapse/index.less +0 -40
- package/es/common/UrlPicker/index.js +0 -119
- package/es/common/UrlPicker/index.less +0 -72
- package/es/common/index.js +0 -127
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +0 -268
- package/es/composite-comp/bol/components/Banner/imgs/banner.png +0 -0
- package/es/composite-comp/bol/components/Banner/index.js +0 -89
- package/es/composite-comp/bol/components/Banner/mobile/index.js +0 -216
- package/es/composite-comp/bol/components/Banner/mobile/index.less +0 -73
- package/es/composite-comp/bol/components/Banner/pc/index.js +0 -278
- package/es/composite-comp/bol/components/Banner/pc/index.less +0 -78
- package/es/composite-comp/bol/components/Button/defaultJSON.js +0 -114
- package/es/composite-comp/bol/components/Button/index.js +0 -103
- package/es/composite-comp/bol/components/Button/index.less +0 -47
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +0 -294
- package/es/composite-comp/bol/components/Carousel/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/components/Carousel/index.js +0 -93
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +0 -251
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +0 -81
- package/es/composite-comp/bol/components/Carousel/pc/index.js +0 -250
- package/es/composite-comp/bol/components/Carousel/pc/index.less +0 -81
- package/es/composite-comp/bol/components/Divider/defaultJSON.js +0 -47
- package/es/composite-comp/bol/components/Divider/index.js +0 -101
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +0 -74
- package/es/composite-comp/bol/components/ImageGallery/imgs/banner.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/index.js +0 -84
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +0 -83
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +0 -73
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +0 -537
- package/es/composite-comp/bol/components/ImageText/index.js +0 -88
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +0 -181
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +0 -288
- package/es/composite-comp/bol/components/ImageText/pc/index.js +0 -155
- package/es/composite-comp/bol/components/ImageText/pc/index.less +0 -106
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +0 -135
- package/es/composite-comp/bol/components/Newsletter/index.js +0 -127
- package/es/composite-comp/bol/components/Newsletter/index.less +0 -75
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +0 -112
- package/es/composite-comp/bol/components/Tag/index.js +0 -107
- package/es/composite-comp/bol/components/Tag/index.less +0 -34
- package/es/composite-comp/bol/components/Text/defaultJSON.js +0 -149
- package/es/composite-comp/bol/components/Text/index.js +0 -123
- package/es/composite-comp/bol/components/Text/index.less +0 -61
- package/es/composite-comp/bol/components/Text/slice.svg +0 -1
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +0 -126
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less +0 -16
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +0 -225
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less +0 -9
- package/es/composite-comp/bol/config-panels/BannerConfig/index.js +0 -46
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +0 -99
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +0 -67
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +0 -144
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.less +0 -0
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +0 -199
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less +0 -9
- package/es/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -136
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +0 -98
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.less +0 -9
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +0 -177
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +0 -89
- package/es/composite-comp/bol/config-panels/DividerConfig/index.js +0 -57
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +0 -144
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.less +0 -0
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +0 -57
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -126
- package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +0 -196
- package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -185
- package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +0 -111
- package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +0 -57
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +0 -109
- package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout2.png +0 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +0 -61
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +0 -99
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.less +0 -0
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +0 -138
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less +0 -16
- package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/config-panels/TextCompConfig/index.js +0 -69
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +0 -151
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.less +0 -3
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +0 -164
- package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +0 -82
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +0 -141
- package/es/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +0 -99
- package/es/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.less +0 -0
- package/es/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +0 -90
- package/es/composite-comp/bol/second-config-panels/TextSecondConfig/index.less +0 -3
- package/es/composite-comp/common/components/ImageLabel/index.js +0 -90
- package/es/composite-comp/common/components/ImageLabel/index.less +0 -35
- package/es/composite-comp/common/components/ProductItem/index.js +0 -191
- package/es/composite-comp/common/components/ProductItem/index.less +0 -121
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +0 -109
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -204
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +0 -21
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -154
- package/es/composite-comp/common/config-panels/SpacingConfig/index.less +0 -17
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +0 -183
- package/es/composite-comp/dito/components/FlashDeal/index.js +0 -86
- package/es/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +0 -436
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -94
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +0 -220
- package/es/composite-comp/dito/components/Recommend/index.js +0 -86
- package/es/composite-comp/dito/components/Recommend/mobile/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/Recommend/mobile/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/Recommend/mobile/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +0 -530
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +0 -79
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +0 -56
- package/es/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg +0 -6
- package/es/composite-comp/dito/components/SearchBar/index.js +0 -86
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +0 -108
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +0 -38
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +0 -143
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -125
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +0 -62
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +0 -118
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.less +0 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +0 -143
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less +0 -16
- package/es/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -62
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +0 -138
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +0 -185
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +0 -3
- package/es/constants/component-types.js +0 -87
- package/es/constants/index.js +0 -144
- package/es/constants/layout.js +0 -120
- package/es/core/Designer/CompListPanel/CompCard/index.js +0 -42
- package/es/core/Designer/CompListPanel/CompCard/index.less +0 -69
- package/es/core/Designer/CompListPanel/index.js +0 -156
- package/es/core/Designer/CompListPanel/index.less +0 -69
- package/es/core/Designer/ConfigPanel/index.js +0 -294
- package/es/core/Designer/ConfigPanel/index.less +0 -139
- package/es/core/Designer/History/index.js +0 -91
- package/es/core/Designer/PageCompList/index.js +0 -266
- package/es/core/Designer/PageCompList/index.less +0 -114
- package/es/core/Designer/QuickMenuBar/index.js +0 -176
- package/es/core/Designer/QuickMenuBar/index.less +0 -67
- package/es/core/Designer/ViewArea/index.js +0 -150
- package/es/core/Designer/ViewArea/index.less +0 -53
- package/es/core/Designer/index.js +0 -454
- package/es/core/Designer/index.less +0 -6
- package/es/core/Renderer/index.js +0 -82
- package/es/decorator/compositeDecorator.js +0 -130
- package/es/decorator/index.js +0 -23
- package/es/decorator/metaDecorator.js +0 -199
- package/es/index.js +0 -27
- package/es/meta-comp/components/Button/index.js +0 -185
- package/es/meta-comp/components/Button/index.less +0 -19
- package/es/meta-comp/components/Image/index.js +0 -171
- package/es/meta-comp/components/Image/index.less +0 -18
- package/es/meta-comp/components/Text/index.js +0 -473
- package/es/meta-comp/components/Text/index.less +0 -38
- package/es/meta-comp/components/index.js +0 -31
- package/es/meta-comp/config-panels/BaseConfig.js +0 -87
- package/es/meta-comp/config-panels/ButtonConfig/index.js +0 -353
- package/es/meta-comp/config-panels/ButtonConfig/index.less +0 -4
- package/es/meta-comp/config-panels/ImageConfig/index.js +0 -204
- package/es/meta-comp/config-panels/ImageConfig/index.less +0 -16
- package/es/meta-comp/config-panels/TextConfig/index.js +0 -327
- package/es/meta-comp/config-panels/TextConfig/index.less +0 -24
- package/es/mobx/Store.js +0 -95
- package/es/mobx/index.js +0 -36
- package/es/utils/androidUtil.js +0 -113
- package/es/utils/businessUtil.js +0 -235
- package/es/utils/commonUtil.js +0 -269
- package/es/utils/compJsonUtil.js +0 -240
- package/es/utils/coreUtil.js +0 -156
- package/es/utils/currencyUtil.js +0 -190
- package/es/utils/dataTreeUtils.js +0 -105
- package/es/utils/dateUtil.js +0 -70
- package/es/utils/storeUtil.js +0 -258
- package/lib/assets/fonts/Montserrat-Bold.ttf +0 -0
- package/lib/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/lib/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/lib/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/lib/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/lib/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/lib/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +0 -299
- package/lib/assets/fonts/magic-box-iconfont.css.bak +0 -299
- package/lib/assets/fonts/magic-box-iconfont.js +0 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +0 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/icon/index.js +0 -68
- package/lib/assets/images/layout-icon/carouselLayout1.png +0 -0
- package/lib/assets/images/layout-icon/carouselLayout2.png +0 -0
- package/lib/assets/images/layout-icon/dividerLayout.svg +0 -4
- package/lib/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m3-1.svg +0 -18
- package/lib/assets/images/layout-icon/layout-imagetext-m3-2.svg +0 -9
- package/lib/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
- package/lib/assets/images/layout-icon/layout-search.png +0 -0
- package/lib/assets/images/layout-icon/newsletter.svg +0 -7
- package/lib/assets/less/button.less +0 -9
- package/lib/assets/less/common.less +0 -82
- package/lib/assets/less/cylon-antd.less +0 -32534
- package/lib/assets/less/font.less +0 -50
- package/lib/assets/less/global.less +0 -8
- package/lib/assets/less/index.less +0 -11
- package/lib/assets/less/input.less +0 -8
- package/lib/assets/less/menu.less +0 -21
- package/lib/assets/less/modal.less +0 -16
- package/lib/assets/less/select.less +0 -19
- package/lib/assets/less/slider.less +0 -21
- package/lib/assets/less/switch.less +0 -20
- package/lib/assets/less/table.less +0 -40
- package/lib/assets/less/variables.less +0 -4
- package/lib/common/AlignSelector/index.js +0 -104
- package/lib/common/AlignSelector/index.less +0 -28
- package/lib/common/Button/index.js +0 -134
- package/lib/common/Button/index.less +0 -68
- package/lib/common/ButtonIconLayout/index.js +0 -103
- package/lib/common/ButtonIconLayout/index.less +0 -53
- package/lib/common/Collapse/index.js +0 -384
- package/lib/common/Collapse/index.less +0 -97
- package/lib/common/ColorPicker/imgs/no-color.png +0 -0
- package/lib/common/ColorPicker/index.js +0 -131
- package/lib/common/ColorPicker/index.less +0 -26
- package/lib/common/ColorPickerInput/imgs/code.png +0 -0
- package/lib/common/ColorPickerInput/index.js +0 -114
- package/lib/common/ColorPickerInput/index.less +0 -50
- package/lib/common/CountDown/index.js +0 -151
- package/lib/common/CountDown/index.less +0 -23
- package/lib/common/Field/index.js +0 -80
- package/lib/common/Field/index.less +0 -37
- package/lib/common/FontStyles/index.js +0 -178
- package/lib/common/FontStyles/index.less +0 -63
- package/lib/common/GroupList/defaultImg.png +0 -0
- package/lib/common/GroupList/index.js +0 -210
- package/lib/common/GroupList/index.less +0 -85
- package/lib/common/IconPicker/index.js +0 -147
- package/lib/common/IconPicker/index.less +0 -46
- package/lib/common/Iconfont/index.js +0 -148
- package/lib/common/Iconfont/index.less +0 -20
- package/lib/common/ImageModal/CommonModal/const.js +0 -22
- package/lib/common/ImageModal/CommonModal/index.js +0 -46
- package/lib/common/ImageModal/CommonSelPicCard/index.js +0 -80
- package/lib/common/ImageModal/CommonSelPicCard/index.less +0 -40
- package/lib/common/ImageModal/const.js +0 -24
- package/lib/common/ImageModal/index.js +0 -748
- package/lib/common/ImageModal/index.less +0 -21
- package/lib/common/ImagePicker/index.js +0 -162
- package/lib/common/ImagePicker/index.less +0 -104
- package/lib/common/InputNumber/index.js +0 -91
- package/lib/common/InputNumber/index.less +0 -33
- package/lib/common/LayoutSelector/imgs/center.png +0 -0
- package/lib/common/LayoutSelector/imgs/left.png +0 -0
- package/lib/common/LayoutSelector/imgs/right.png +0 -0
- package/lib/common/LayoutSelector/index.js +0 -111
- package/lib/common/LayoutSelector/index.less +0 -34
- package/lib/common/LinkModal/CatgTable/index.js +0 -234
- package/lib/common/LinkModal/CouponTable/index.js +0 -299
- package/lib/common/LinkModal/CustomTable/index.js +0 -227
- package/lib/common/LinkModal/FilteredProductModal/index.js +0 -640
- package/lib/common/LinkModal/FilteredProductModal/index.less +0 -113
- package/lib/common/LinkModal/FunctionTable/index.js +0 -221
- package/lib/common/LinkModal/ProductDetailPage/index.js +0 -433
- package/lib/common/LinkModal/ProductDetailPage/index.less +0 -21
- package/lib/common/LinkModal/index.js +0 -136
- package/lib/common/LinkModal/index.less +0 -108
- package/lib/common/NewImg/index.js +0 -165
- package/lib/common/NewImg/index.less +0 -0
- package/lib/common/ProductModal/index.js +0 -760
- package/lib/common/ProductModal/index.less +0 -238
- package/lib/common/ProductSource/index.js +0 -250
- package/lib/common/ProductSource/index.less +0 -12
- package/lib/common/RcCollapse/Collapse.js +0 -240
- package/lib/common/RcCollapse/Panel.js +0 -193
- package/lib/common/RcCollapse/PanelContent.js +0 -59
- package/lib/common/RcCollapse/index.js +0 -15
- package/lib/common/RcCollapse/index.less +0 -108
- package/lib/common/RcCollapse/interface.js +0 -1
- package/lib/common/RcCollapse/motion.less +0 -12
- package/lib/common/RcCollapse/motionUtil.js +0 -44
- package/lib/common/Slider/index.js +0 -151
- package/lib/common/Slider/index.less +0 -45
- package/lib/common/SwitchCollapse/index.js +0 -216
- package/lib/common/SwitchCollapse/index.less +0 -40
- package/lib/common/UrlPicker/index.js +0 -119
- package/lib/common/UrlPicker/index.less +0 -72
- package/lib/common/index.js +0 -127
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +0 -268
- package/lib/composite-comp/bol/components/Banner/imgs/banner.png +0 -0
- package/lib/composite-comp/bol/components/Banner/index.js +0 -89
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +0 -216
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +0 -73
- package/lib/composite-comp/bol/components/Banner/pc/index.js +0 -278
- package/lib/composite-comp/bol/components/Banner/pc/index.less +0 -78
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +0 -114
- package/lib/composite-comp/bol/components/Button/index.js +0 -103
- package/lib/composite-comp/bol/components/Button/index.less +0 -47
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +0 -294
- package/lib/composite-comp/bol/components/Carousel/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/components/Carousel/index.js +0 -93
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +0 -251
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +0 -81
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +0 -250
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +0 -81
- package/lib/composite-comp/bol/components/Divider/defaultJSON.js +0 -47
- package/lib/composite-comp/bol/components/Divider/index.js +0 -101
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +0 -74
- package/lib/composite-comp/bol/components/ImageGallery/imgs/banner.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/index.js +0 -84
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +0 -83
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +0 -73
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +0 -537
- package/lib/composite-comp/bol/components/ImageText/index.js +0 -88
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +0 -181
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +0 -288
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +0 -155
- package/lib/composite-comp/bol/components/ImageText/pc/index.less +0 -106
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +0 -135
- package/lib/composite-comp/bol/components/Newsletter/index.js +0 -127
- package/lib/composite-comp/bol/components/Newsletter/index.less +0 -75
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +0 -112
- package/lib/composite-comp/bol/components/Tag/index.js +0 -107
- package/lib/composite-comp/bol/components/Tag/index.less +0 -34
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +0 -149
- package/lib/composite-comp/bol/components/Text/index.js +0 -123
- package/lib/composite-comp/bol/components/Text/index.less +0 -61
- package/lib/composite-comp/bol/components/Text/slice.svg +0 -1
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +0 -126
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less +0 -16
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +0 -225
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less +0 -9
- package/lib/composite-comp/bol/config-panels/BannerConfig/index.js +0 -46
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +0 -99
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +0 -67
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +0 -144
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +0 -199
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less +0 -9
- package/lib/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -136
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +0 -98
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.less +0 -9
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +0 -177
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +0 -89
- package/lib/composite-comp/bol/config-panels/DividerConfig/index.js +0 -57
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +0 -144
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +0 -57
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -126
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +0 -196
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -185
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +0 -111
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +0 -57
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +0 -109
- package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout2.png +0 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +0 -61
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +0 -99
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +0 -138
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less +0 -16
- package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/TextCompConfig/index.js +0 -69
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +0 -151
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.less +0 -3
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +0 -164
- package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +0 -82
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +0 -141
- package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +0 -99
- package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.less +0 -0
- package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +0 -90
- package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/index.less +0 -3
- package/lib/composite-comp/common/components/ImageLabel/index.js +0 -90
- package/lib/composite-comp/common/components/ImageLabel/index.less +0 -35
- package/lib/composite-comp/common/components/ProductItem/index.js +0 -191
- package/lib/composite-comp/common/components/ProductItem/index.less +0 -121
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +0 -109
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -204
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +0 -21
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -154
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.less +0 -17
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +0 -183
- package/lib/composite-comp/dito/components/FlashDeal/index.js +0 -86
- package/lib/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +0 -436
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -94
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +0 -220
- package/lib/composite-comp/dito/components/Recommend/index.js +0 -86
- package/lib/composite-comp/dito/components/Recommend/mobile/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +0 -530
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +0 -79
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +0 -56
- package/lib/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg +0 -6
- package/lib/composite-comp/dito/components/SearchBar/index.js +0 -86
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +0 -108
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +0 -38
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +0 -143
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -125
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +0 -62
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +0 -118
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +0 -143
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less +0 -16
- package/lib/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -62
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +0 -138
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +0 -185
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +0 -3
- package/lib/constants/component-types.js +0 -87
- package/lib/constants/index.js +0 -144
- package/lib/constants/layout.js +0 -120
- package/lib/core/Designer/CompListPanel/CompCard/index.js +0 -42
- package/lib/core/Designer/CompListPanel/CompCard/index.less +0 -69
- package/lib/core/Designer/CompListPanel/index.js +0 -156
- package/lib/core/Designer/CompListPanel/index.less +0 -69
- package/lib/core/Designer/ConfigPanel/index.js +0 -294
- package/lib/core/Designer/ConfigPanel/index.less +0 -139
- package/lib/core/Designer/History/index.js +0 -91
- package/lib/core/Designer/PageCompList/index.js +0 -266
- package/lib/core/Designer/PageCompList/index.less +0 -114
- package/lib/core/Designer/QuickMenuBar/index.js +0 -176
- package/lib/core/Designer/QuickMenuBar/index.less +0 -67
- package/lib/core/Designer/ViewArea/index.js +0 -150
- package/lib/core/Designer/ViewArea/index.less +0 -53
- package/lib/core/Designer/index.js +0 -454
- package/lib/core/Designer/index.less +0 -6
- package/lib/core/Renderer/index.js +0 -82
- package/lib/decorator/compositeDecorator.js +0 -130
- package/lib/decorator/index.js +0 -23
- package/lib/decorator/metaDecorator.js +0 -199
- package/lib/index.js +0 -27
- package/lib/meta-comp/components/Button/index.js +0 -185
- package/lib/meta-comp/components/Button/index.less +0 -19
- package/lib/meta-comp/components/Image/index.js +0 -171
- package/lib/meta-comp/components/Image/index.less +0 -18
- package/lib/meta-comp/components/Text/index.js +0 -473
- package/lib/meta-comp/components/Text/index.less +0 -38
- package/lib/meta-comp/components/index.js +0 -31
- package/lib/meta-comp/config-panels/BaseConfig.js +0 -87
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +0 -353
- package/lib/meta-comp/config-panels/ButtonConfig/index.less +0 -4
- package/lib/meta-comp/config-panels/ImageConfig/index.js +0 -204
- package/lib/meta-comp/config-panels/ImageConfig/index.less +0 -16
- package/lib/meta-comp/config-panels/TextConfig/index.js +0 -327
- package/lib/meta-comp/config-panels/TextConfig/index.less +0 -24
- package/lib/mobx/Store.js +0 -95
- package/lib/mobx/index.js +0 -36
- package/lib/utils/androidUtil.js +0 -113
- package/lib/utils/businessUtil.js +0 -235
- package/lib/utils/commonUtil.js +0 -269
- package/lib/utils/compJsonUtil.js +0 -240
- package/lib/utils/coreUtil.js +0 -156
- package/lib/utils/currencyUtil.js +0 -190
- package/lib/utils/dataTreeUtils.js +0 -105
- package/lib/utils/dateUtil.js +0 -70
- package/lib/utils/storeUtil.js +0 -258
|
@@ -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 };
|