@fonixtree/magic-design 0.0.73 → 0.0.74
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/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 +307 -0
- package/es/assets/fonts/magic-box-iconfont.css.bak +307 -0
- package/es/assets/fonts/magic-box-iconfont.js +1 -0
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -0
- 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 +68 -0
- 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 +4 -0
- 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 +18 -0
- package/es/assets/images/layout-icon/layout-imagetext-m3-2.svg +9 -0
- 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-navigation-newline.png +0 -0
- package/es/assets/images/layout-icon/layout-navigation-tile.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-1.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-2.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-3.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-4.png +0 -0
- package/es/assets/images/layout-icon/layout-recommend-5.png +0 -0
- package/es/assets/images/layout-icon/layout-search.png +0 -0
- package/es/assets/images/layout-icon/newsletter.svg +7 -0
- package/es/assets/less/button.less +9 -0
- package/es/assets/less/common.less +82 -0
- package/es/assets/less/cylon-antd.less +32534 -0
- package/es/assets/less/font.less +48 -0
- package/es/assets/less/form.less +9 -0
- package/es/assets/less/global.less +8 -0
- package/es/assets/less/index.less +12 -0
- package/es/assets/less/input.less +19 -0
- package/es/assets/less/menu.less +21 -0
- package/es/assets/less/modal.less +19 -0
- package/es/assets/less/select.less +32 -0
- package/es/assets/less/slider.less +21 -0
- package/es/assets/less/switch.less +20 -0
- package/es/assets/less/table.less +52 -0
- package/es/assets/less/variables.less +4 -0
- package/es/common/AlignSelector/index.js +104 -0
- package/es/common/AlignSelector/index.less +28 -0
- package/es/common/Button/index.js +134 -0
- package/es/common/Button/index.less +68 -0
- package/es/common/ButtonIconLayout/index.js +105 -0
- package/es/common/ButtonIconLayout/index.less +53 -0
- package/es/common/Collapse/index.js +384 -0
- package/es/common/Collapse/index.less +97 -0
- package/es/common/ColorPicker/imgs/no-color.png +0 -0
- package/es/common/ColorPicker/index.js +131 -0
- package/es/common/ColorPicker/index.less +26 -0
- package/es/common/ColorPickerInput/imgs/code.png +0 -0
- package/es/common/ColorPickerInput/index.js +114 -0
- package/es/common/ColorPickerInput/index.less +50 -0
- package/es/common/CountDown/index.js +151 -0
- package/es/common/CountDown/index.less +23 -0
- package/es/common/Field/index.js +80 -0
- package/es/common/Field/index.less +37 -0
- package/es/common/FontStyles/index.js +197 -0
- package/es/common/FontStyles/index.less +63 -0
- package/es/common/GroupList/defaultImg.png +0 -0
- package/es/common/GroupList/index.js +210 -0
- package/es/common/GroupList/index.less +85 -0
- package/es/common/IconPicker/index.js +147 -0
- package/es/common/IconPicker/index.less +46 -0
- package/es/common/Iconfont/index.js +148 -0
- package/es/common/Iconfont/index.less +20 -0
- package/es/common/ImageModal/CommonModal/const.js +22 -0
- package/es/common/ImageModal/CommonModal/index.js +46 -0
- package/es/common/ImageModal/CommonSelPicCard/index.js +80 -0
- package/es/common/ImageModal/CommonSelPicCard/index.less +40 -0
- package/es/common/ImageModal/const.js +24 -0
- package/es/common/ImageModal/index.js +750 -0
- package/es/common/ImageModal/index.less +21 -0
- package/es/common/ImagePicker/index.js +164 -0
- package/es/common/ImagePicker/index.less +104 -0
- package/es/common/InputNumber/index.js +91 -0
- package/es/common/InputNumber/index.less +33 -0
- 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 +111 -0
- package/es/common/LayoutSelector/index.less +37 -0
- package/es/common/LinkModal/BundleCampaign/index.js +390 -0
- package/es/common/LinkModal/BundleCampaign/index.less +17 -0
- package/es/common/LinkModal/CatgTable/index.js +234 -0
- package/es/common/LinkModal/CouponTable/index.js +302 -0
- package/es/common/LinkModal/CustomTable/index.js +228 -0
- package/es/common/LinkModal/FilteredProductModal/index.js +692 -0
- package/es/common/LinkModal/FilteredProductModal/index.less +126 -0
- package/es/common/LinkModal/FunctionTable/index.js +224 -0
- package/es/common/LinkModal/ProductDetailPage/index.js +496 -0
- package/es/common/LinkModal/ProductDetailPage/index.less +12 -0
- package/es/common/LinkModal/index.js +144 -0
- package/es/common/LinkModal/index.less +103 -0
- package/es/common/NewImg/index.js +165 -0
- package/es/common/NewImg/index.less +0 -0
- package/es/common/ProductModal/index.js +793 -0
- package/es/common/ProductModal/index.less +140 -0
- package/es/common/ProductSource/index.js +254 -0
- package/es/common/ProductSource/index.less +14 -0
- package/es/common/RcCollapse/Collapse.js +240 -0
- package/es/common/RcCollapse/Panel.js +193 -0
- package/es/common/RcCollapse/PanelContent.js +59 -0
- package/es/common/RcCollapse/index.js +15 -0
- package/es/common/RcCollapse/index.less +108 -0
- package/es/common/RcCollapse/interface.js +1 -0
- package/es/common/RcCollapse/motion.less +12 -0
- package/es/common/RcCollapse/motionUtil.js +44 -0
- package/es/common/Slider/index.js +151 -0
- package/es/common/Slider/index.less +45 -0
- package/es/common/SwitchCollapse/index.js +216 -0
- package/es/common/SwitchCollapse/index.less +40 -0
- package/es/common/UrlPicker/index.js +121 -0
- package/es/common/UrlPicker/index.less +72 -0
- package/es/common/index.js +127 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +268 -0
- package/es/composite-comp/bol/components/Banner/imgs/banner.png +0 -0
- package/es/composite-comp/bol/components/Banner/index.js +89 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +216 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.less +73 -0
- package/es/composite-comp/bol/components/Banner/pc/index.js +278 -0
- package/es/composite-comp/bol/components/Banner/pc/index.less +78 -0
- package/es/composite-comp/bol/components/Button/defaultJSON.js +114 -0
- package/es/composite-comp/bol/components/Button/index.js +103 -0
- package/es/composite-comp/bol/components/Button/index.less +47 -0
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +294 -0
- package/es/composite-comp/bol/components/Carousel/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/components/Carousel/index.js +93 -0
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +257 -0
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +79 -0
- package/es/composite-comp/bol/components/Carousel/pc/index.js +261 -0
- package/es/composite-comp/bol/components/Carousel/pc/index.less +89 -0
- package/es/composite-comp/bol/components/Divider/defaultJSON.js +47 -0
- package/es/composite-comp/bol/components/Divider/index.js +101 -0
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +74 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/banner.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/index.js +84 -0
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +83 -0
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +73 -0
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +544 -0
- package/es/composite-comp/bol/components/ImageText/index.js +88 -0
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +193 -0
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -0
- package/es/composite-comp/bol/components/ImageText/pc/index.js +186 -0
- package/es/composite-comp/bol/components/ImageText/pc/index.less +116 -0
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +135 -0
- package/es/composite-comp/bol/components/Newsletter/index.js +127 -0
- package/es/composite-comp/bol/components/Newsletter/index.less +75 -0
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +112 -0
- package/es/composite-comp/bol/components/Tag/index.js +107 -0
- package/es/composite-comp/bol/components/Tag/index.less +34 -0
- package/es/composite-comp/bol/components/Text/defaultJSON.js +155 -0
- package/es/composite-comp/bol/components/Text/index.js +123 -0
- package/es/composite-comp/bol/components/Text/index.less +61 -0
- package/es/composite-comp/bol/components/Text/slice.svg +1 -0
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +128 -0
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +227 -0
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less +9 -0
- package/es/composite-comp/bol/config-panels/BannerConfig/index.js +48 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +101 -0
- 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 +69 -0
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +146 -0
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.less +0 -0
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +201 -0
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less +9 -0
- package/es/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +71 -0
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +100 -0
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.less +9 -0
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +179 -0
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +91 -0
- package/es/composite-comp/bol/config-panels/DividerConfig/index.js +59 -0
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +146 -0
- 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 +59 -0
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +128 -0
- package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +199 -0
- package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +187 -0
- package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +113 -0
- package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +57 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +109 -0
- 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 +61 -0
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +101 -0
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.less +0 -0
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +140 -0
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less +16 -0
- 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 +71 -0
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +153 -0
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.less +3 -0
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +164 -0
- package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +82 -0
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +186 -0
- package/es/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +101 -0
- 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 +92 -0
- package/es/composite-comp/bol/second-config-panels/TextSecondConfig/index.less +3 -0
- package/es/composite-comp/common/components/ImageLabel/index.js +90 -0
- package/es/composite-comp/common/components/ImageLabel/index.less +35 -0
- package/es/composite-comp/common/components/ProductItem/index.js +209 -0
- package/es/composite-comp/common/components/ProductItem/index.less +157 -0
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +111 -0
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +254 -0
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +21 -0
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +173 -0
- package/es/composite-comp/common/config-panels/SpacingConfig/index.less +17 -0
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +183 -0
- package/es/composite-comp/dito/components/FlashDeal/index.js +86 -0
- 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 +454 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +100 -0
- package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +92 -0
- package/es/composite-comp/dito/components/MobileNavigation/index.js +84 -0
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +117 -0
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +37 -0
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +294 -0
- package/es/composite-comp/dito/components/Recommend/index.js +91 -0
- 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 +664 -0
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +80 -0
- package/es/composite-comp/dito/components/Recommend/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/Recommend/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/Recommend/pc/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/Recommend/pc/index.js +653 -0
- package/es/composite-comp/dito/components/Recommend/pc/index.less +80 -0
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +56 -0
- package/es/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg +6 -0
- package/es/composite-comp/dito/components/SearchBar/index.js +86 -0
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +291 -0
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +38 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +145 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +127 -0
- 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 +64 -0
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +126 -0
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/index.js +184 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +120 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.less +0 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +145 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +127 -0
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +140 -0
- package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +111 -0
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +423 -0
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +213 -0
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +3 -0
- package/es/constants/component-types.js +93 -0
- package/es/constants/index.js +152 -0
- package/es/constants/layout.js +162 -0
- package/es/core/Designer/CompListPanel/CompCard/index.js +42 -0
- package/es/core/Designer/CompListPanel/CompCard/index.less +69 -0
- package/es/core/Designer/CompListPanel/index.js +158 -0
- package/es/core/Designer/CompListPanel/index.less +69 -0
- package/es/core/Designer/ConfigPanel/index.js +300 -0
- package/es/core/Designer/ConfigPanel/index.less +139 -0
- package/es/core/Designer/History/index.js +91 -0
- package/es/core/Designer/PageCompList/index.js +268 -0
- package/es/core/Designer/PageCompList/index.less +139 -0
- package/es/core/Designer/QuickMenuBar/index.js +192 -0
- package/es/core/Designer/QuickMenuBar/index.less +76 -0
- package/es/core/Designer/ViewArea/index.js +150 -0
- package/es/core/Designer/ViewArea/index.less +53 -0
- package/es/core/Designer/index.js +482 -0
- package/es/core/Designer/index.less +6 -0
- package/es/core/Renderer/index.js +82 -0
- package/es/decorator/compositeDecorator.js +130 -0
- package/es/decorator/index.js +23 -0
- package/es/decorator/metaDecorator.js +199 -0
- package/es/index.js +29 -0
- package/es/locale/en/en.json +128 -0
- package/es/locale/es/es.json +128 -0
- package/es/locale/id/id.json +128 -0
- package/es/locale/index.js +45 -0
- package/es/meta-comp/components/Button/index.js +193 -0
- package/es/meta-comp/components/Button/index.less +20 -0
- package/es/meta-comp/components/Image/image/default-img.png +0 -0
- package/es/meta-comp/components/Image/index.js +199 -0
- package/es/meta-comp/components/Image/index.less +21 -0
- package/es/meta-comp/components/Text/index.js +478 -0
- package/es/meta-comp/components/Text/index.less +38 -0
- package/es/meta-comp/components/index.js +31 -0
- package/es/meta-comp/config-panels/BaseConfig.js +87 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +368 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.less +4 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +406 -0
- package/es/meta-comp/config-panels/ImageConfig/index.less +16 -0
- package/es/meta-comp/config-panels/TextConfig/index.js +362 -0
- package/es/meta-comp/config-panels/TextConfig/index.less +24 -0
- package/es/mobx/Store.js +102 -0
- package/es/mobx/index.js +36 -0
- package/es/utils/androidUtil.js +113 -0
- package/es/utils/businessUtil.js +235 -0
- package/es/utils/commonUtil.js +289 -0
- package/es/utils/compJsonUtil.js +240 -0
- package/es/utils/coreUtil.js +157 -0
- package/es/utils/currencyUtil.js +190 -0
- package/es/utils/dataTreeUtils.js +134 -0
- package/es/utils/dateUtil.js +70 -0
- package/es/utils/storeUtil.js +258 -0
- 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 +307 -0
- package/lib/assets/fonts/magic-box-iconfont.css.bak +307 -0
- package/lib/assets/fonts/magic-box-iconfont.js +1 -0
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -0
- 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 +68 -0
- 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 +4 -0
- 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 +18 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m3-2.svg +9 -0
- 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-navigation-newline.png +0 -0
- package/lib/assets/images/layout-icon/layout-navigation-tile.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-4.png +0 -0
- package/lib/assets/images/layout-icon/layout-recommend-5.png +0 -0
- package/lib/assets/images/layout-icon/layout-search.png +0 -0
- package/lib/assets/images/layout-icon/newsletter.svg +7 -0
- package/lib/assets/less/button.less +9 -0
- package/lib/assets/less/common.less +82 -0
- package/lib/assets/less/cylon-antd.less +32534 -0
- package/lib/assets/less/font.less +48 -0
- package/lib/assets/less/form.less +9 -0
- package/lib/assets/less/global.less +8 -0
- package/lib/assets/less/index.less +12 -0
- package/lib/assets/less/input.less +19 -0
- package/lib/assets/less/menu.less +21 -0
- package/lib/assets/less/modal.less +19 -0
- package/lib/assets/less/select.less +32 -0
- package/lib/assets/less/slider.less +21 -0
- package/lib/assets/less/switch.less +20 -0
- package/lib/assets/less/table.less +52 -0
- package/lib/assets/less/variables.less +4 -0
- package/lib/common/AlignSelector/index.js +104 -0
- package/lib/common/AlignSelector/index.less +28 -0
- package/lib/common/Button/index.js +134 -0
- package/lib/common/Button/index.less +68 -0
- package/lib/common/ButtonIconLayout/index.js +105 -0
- package/lib/common/ButtonIconLayout/index.less +53 -0
- package/lib/common/Collapse/index.js +384 -0
- package/lib/common/Collapse/index.less +97 -0
- package/lib/common/ColorPicker/imgs/no-color.png +0 -0
- package/lib/common/ColorPicker/index.js +131 -0
- package/lib/common/ColorPicker/index.less +26 -0
- package/lib/common/ColorPickerInput/imgs/code.png +0 -0
- package/lib/common/ColorPickerInput/index.js +114 -0
- package/lib/common/ColorPickerInput/index.less +50 -0
- package/lib/common/CountDown/index.js +151 -0
- package/lib/common/CountDown/index.less +23 -0
- package/lib/common/Field/index.js +80 -0
- package/lib/common/Field/index.less +37 -0
- package/lib/common/FontStyles/index.js +197 -0
- package/lib/common/FontStyles/index.less +63 -0
- package/lib/common/GroupList/defaultImg.png +0 -0
- package/lib/common/GroupList/index.js +210 -0
- package/lib/common/GroupList/index.less +85 -0
- package/lib/common/IconPicker/index.js +147 -0
- package/lib/common/IconPicker/index.less +46 -0
- package/lib/common/Iconfont/index.js +148 -0
- package/lib/common/Iconfont/index.less +20 -0
- package/lib/common/ImageModal/CommonModal/const.js +22 -0
- package/lib/common/ImageModal/CommonModal/index.js +46 -0
- package/lib/common/ImageModal/CommonSelPicCard/index.js +80 -0
- package/lib/common/ImageModal/CommonSelPicCard/index.less +40 -0
- package/lib/common/ImageModal/const.js +24 -0
- package/lib/common/ImageModal/index.js +750 -0
- package/lib/common/ImageModal/index.less +21 -0
- package/lib/common/ImagePicker/index.js +164 -0
- package/lib/common/ImagePicker/index.less +104 -0
- package/lib/common/InputNumber/index.js +91 -0
- package/lib/common/InputNumber/index.less +33 -0
- 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 +111 -0
- package/lib/common/LayoutSelector/index.less +37 -0
- package/lib/common/LinkModal/BundleCampaign/index.js +390 -0
- package/lib/common/LinkModal/BundleCampaign/index.less +17 -0
- package/lib/common/LinkModal/CatgTable/index.js +234 -0
- package/lib/common/LinkModal/CouponTable/index.js +302 -0
- package/lib/common/LinkModal/CustomTable/index.js +228 -0
- package/lib/common/LinkModal/FilteredProductModal/index.js +692 -0
- package/lib/common/LinkModal/FilteredProductModal/index.less +126 -0
- package/lib/common/LinkModal/FunctionTable/index.js +224 -0
- package/lib/common/LinkModal/ProductDetailPage/index.js +496 -0
- package/lib/common/LinkModal/ProductDetailPage/index.less +12 -0
- package/lib/common/LinkModal/index.js +144 -0
- package/lib/common/LinkModal/index.less +103 -0
- package/lib/common/NewImg/index.js +165 -0
- package/lib/common/NewImg/index.less +0 -0
- package/lib/common/ProductModal/index.js +793 -0
- package/lib/common/ProductModal/index.less +140 -0
- package/lib/common/ProductSource/index.js +254 -0
- package/lib/common/ProductSource/index.less +14 -0
- package/lib/common/RcCollapse/Collapse.js +240 -0
- package/lib/common/RcCollapse/Panel.js +193 -0
- package/lib/common/RcCollapse/PanelContent.js +59 -0
- package/lib/common/RcCollapse/index.js +15 -0
- package/lib/common/RcCollapse/index.less +108 -0
- package/lib/common/RcCollapse/interface.js +1 -0
- package/lib/common/RcCollapse/motion.less +12 -0
- package/lib/common/RcCollapse/motionUtil.js +44 -0
- package/lib/common/Slider/index.js +151 -0
- package/lib/common/Slider/index.less +45 -0
- package/lib/common/SwitchCollapse/index.js +216 -0
- package/lib/common/SwitchCollapse/index.less +40 -0
- package/lib/common/UrlPicker/index.js +121 -0
- package/lib/common/UrlPicker/index.less +72 -0
- package/lib/common/index.js +127 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +268 -0
- package/lib/composite-comp/bol/components/Banner/imgs/banner.png +0 -0
- package/lib/composite-comp/bol/components/Banner/index.js +89 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +216 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +73 -0
- package/lib/composite-comp/bol/components/Banner/pc/index.js +278 -0
- package/lib/composite-comp/bol/components/Banner/pc/index.less +78 -0
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +114 -0
- package/lib/composite-comp/bol/components/Button/index.js +103 -0
- package/lib/composite-comp/bol/components/Button/index.less +47 -0
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +294 -0
- package/lib/composite-comp/bol/components/Carousel/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/components/Carousel/index.js +93 -0
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +257 -0
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +79 -0
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +261 -0
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +89 -0
- package/lib/composite-comp/bol/components/Divider/defaultJSON.js +47 -0
- package/lib/composite-comp/bol/components/Divider/index.js +101 -0
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +74 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/banner.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/index.js +84 -0
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +83 -0
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +73 -0
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +544 -0
- package/lib/composite-comp/bol/components/ImageText/index.js +88 -0
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +193 -0
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -0
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +186 -0
- package/lib/composite-comp/bol/components/ImageText/pc/index.less +116 -0
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +135 -0
- package/lib/composite-comp/bol/components/Newsletter/index.js +127 -0
- package/lib/composite-comp/bol/components/Newsletter/index.less +75 -0
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +112 -0
- package/lib/composite-comp/bol/components/Tag/index.js +107 -0
- package/lib/composite-comp/bol/components/Tag/index.less +34 -0
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +155 -0
- package/lib/composite-comp/bol/components/Text/index.js +123 -0
- package/lib/composite-comp/bol/components/Text/index.less +61 -0
- package/lib/composite-comp/bol/components/Text/slice.svg +1 -0
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +128 -0
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +227 -0
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less +9 -0
- package/lib/composite-comp/bol/config-panels/BannerConfig/index.js +48 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +101 -0
- 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 +69 -0
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +146 -0
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +201 -0
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less +9 -0
- package/lib/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +71 -0
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +100 -0
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.less +9 -0
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +179 -0
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +91 -0
- package/lib/composite-comp/bol/config-panels/DividerConfig/index.js +59 -0
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +146 -0
- 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 +59 -0
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +128 -0
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +199 -0
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +187 -0
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +113 -0
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +57 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +109 -0
- 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 +61 -0
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +101 -0
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +140 -0
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less +16 -0
- 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 +71 -0
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +153 -0
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.less +3 -0
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +164 -0
- package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +82 -0
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +186 -0
- package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +101 -0
- 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 +92 -0
- package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/index.less +3 -0
- package/lib/composite-comp/common/components/ImageLabel/index.js +90 -0
- package/lib/composite-comp/common/components/ImageLabel/index.less +35 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +209 -0
- package/lib/composite-comp/common/components/ProductItem/index.less +157 -0
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +111 -0
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +254 -0
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +21 -0
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +173 -0
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.less +17 -0
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +183 -0
- package/lib/composite-comp/dito/components/FlashDeal/index.js +86 -0
- 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 +454 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +100 -0
- package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +92 -0
- package/lib/composite-comp/dito/components/MobileNavigation/index.js +84 -0
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +117 -0
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +37 -0
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +294 -0
- package/lib/composite-comp/dito/components/Recommend/index.js +91 -0
- 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 +664 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +80 -0
- package/lib/composite-comp/dito/components/Recommend/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/Recommend/pc/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/Recommend/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +653 -0
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +80 -0
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +56 -0
- package/lib/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg +6 -0
- package/lib/composite-comp/dito/components/SearchBar/index.js +86 -0
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +291 -0
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +38 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +145 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +127 -0
- 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 +64 -0
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +126 -0
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/index.js +184 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +120 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +145 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +127 -0
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +140 -0
- package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +111 -0
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +423 -0
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +213 -0
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +3 -0
- package/lib/constants/component-types.js +93 -0
- package/lib/constants/index.js +152 -0
- package/lib/constants/layout.js +162 -0
- package/lib/core/Designer/CompListPanel/CompCard/index.js +42 -0
- package/lib/core/Designer/CompListPanel/CompCard/index.less +69 -0
- package/lib/core/Designer/CompListPanel/index.js +158 -0
- package/lib/core/Designer/CompListPanel/index.less +69 -0
- package/lib/core/Designer/ConfigPanel/index.js +300 -0
- package/lib/core/Designer/ConfigPanel/index.less +139 -0
- package/lib/core/Designer/History/index.js +91 -0
- package/lib/core/Designer/PageCompList/index.js +268 -0
- package/lib/core/Designer/PageCompList/index.less +139 -0
- package/lib/core/Designer/QuickMenuBar/index.js +192 -0
- package/lib/core/Designer/QuickMenuBar/index.less +76 -0
- package/lib/core/Designer/ViewArea/index.js +150 -0
- package/lib/core/Designer/ViewArea/index.less +53 -0
- package/lib/core/Designer/index.js +482 -0
- package/lib/core/Designer/index.less +6 -0
- package/lib/core/Renderer/index.js +82 -0
- package/lib/decorator/compositeDecorator.js +130 -0
- package/lib/decorator/index.js +23 -0
- package/lib/decorator/metaDecorator.js +199 -0
- package/lib/index.js +29 -0
- package/lib/locale/en/en.json +128 -0
- package/lib/locale/es/es.json +128 -0
- package/lib/locale/id/id.json +128 -0
- package/lib/locale/index.js +45 -0
- package/lib/meta-comp/components/Button/index.js +193 -0
- package/lib/meta-comp/components/Button/index.less +20 -0
- package/lib/meta-comp/components/Image/image/default-img.png +0 -0
- package/lib/meta-comp/components/Image/index.js +199 -0
- package/lib/meta-comp/components/Image/index.less +21 -0
- package/lib/meta-comp/components/Text/index.js +478 -0
- package/lib/meta-comp/components/Text/index.less +38 -0
- package/lib/meta-comp/components/index.js +31 -0
- package/lib/meta-comp/config-panels/BaseConfig.js +87 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +368 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.less +4 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +406 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.less +16 -0
- package/lib/meta-comp/config-panels/TextConfig/index.js +362 -0
- package/lib/meta-comp/config-panels/TextConfig/index.less +24 -0
- package/lib/mobx/Store.js +102 -0
- package/lib/mobx/index.js +36 -0
- package/lib/utils/androidUtil.js +113 -0
- package/lib/utils/businessUtil.js +235 -0
- package/lib/utils/commonUtil.js +289 -0
- package/lib/utils/compJsonUtil.js +240 -0
- package/lib/utils/coreUtil.js +157 -0
- package/lib/utils/currencyUtil.js +190 -0
- package/lib/utils/dataTreeUtils.js +134 -0
- package/lib/utils/dateUtil.js +70 -0
- package/lib/utils/storeUtil.js +258 -0
- package/package.json +1 -86
- package/README.md +0 -320
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _antd = require("antd");
|
|
11
|
+
|
|
12
|
+
var _mobxReact = require("mobx-react");
|
|
13
|
+
|
|
14
|
+
require("./index.less");
|
|
15
|
+
|
|
16
|
+
var _locale = require("../../../../locale");
|
|
17
|
+
|
|
18
|
+
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
19
|
+
|
|
20
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
21
|
+
|
|
22
|
+
var _common = require("../../../../common");
|
|
23
|
+
|
|
24
|
+
var _mobx = require("../../../../mobx");
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
+
|
|
28
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
29
|
+
|
|
30
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
31
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
32
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
33
|
+
__proto__: []
|
|
34
|
+
} instanceof Array && function (d, b) {
|
|
35
|
+
d.__proto__ = b;
|
|
36
|
+
} || function (d, b) {
|
|
37
|
+
for (var p in b) {
|
|
38
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return _extendStatics(d, b);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
return function (d, b) {
|
|
46
|
+
_extendStatics(d, b);
|
|
47
|
+
|
|
48
|
+
function __() {
|
|
49
|
+
this.constructor = d;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
53
|
+
};
|
|
54
|
+
}();
|
|
55
|
+
|
|
56
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
57
|
+
__assign = Object.assign || function (t) {
|
|
58
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
59
|
+
s = arguments[i];
|
|
60
|
+
|
|
61
|
+
for (var p in s) {
|
|
62
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return t;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
return __assign.apply(this, arguments);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
73
|
+
var c = arguments.length,
|
|
74
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
75
|
+
d;
|
|
76
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
77
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
78
|
+
}
|
|
79
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
var CustomizeConfig =
|
|
83
|
+
/** @class */
|
|
84
|
+
function (_super) {
|
|
85
|
+
__extends(CustomizeConfig, _super);
|
|
86
|
+
|
|
87
|
+
function CustomizeConfig() {
|
|
88
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
89
|
+
|
|
90
|
+
_this.state = {
|
|
91
|
+
showRowNum: true
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
_this.layoutChange = function (v) {
|
|
95
|
+
var _a;
|
|
96
|
+
|
|
97
|
+
var _b = _this.props,
|
|
98
|
+
selectedLayoutFun = _b.selectedLayoutFun,
|
|
99
|
+
data = _b.data,
|
|
100
|
+
component = _b.component,
|
|
101
|
+
id = _b.id;
|
|
102
|
+
|
|
103
|
+
if (selectedLayoutFun) {
|
|
104
|
+
selectedLayoutFun(v);
|
|
105
|
+
} else {
|
|
106
|
+
data.layout = v;
|
|
107
|
+
} // 轮播组件特殊处理
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
if (component === 'carousel') {
|
|
111
|
+
if (v === 'layout2') {
|
|
112
|
+
_this.setState({
|
|
113
|
+
showRowNum: false
|
|
114
|
+
});
|
|
115
|
+
} else {
|
|
116
|
+
_this.setState({
|
|
117
|
+
showRowNum: true
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
_this.props.store.setState({
|
|
122
|
+
CarouselStore: __assign(__assign({}, _mobx.store.CarouselStore), (_a = {}, _a[id] = v, _a))
|
|
123
|
+
});
|
|
124
|
+
} // 移动端导航特殊处理
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
if (component == 'mobileNavigation') {
|
|
128
|
+
if (v === 'tile') {
|
|
129
|
+
_this.setState({
|
|
130
|
+
showRowNum: false
|
|
131
|
+
});
|
|
132
|
+
} else {
|
|
133
|
+
_this.setState({
|
|
134
|
+
showRowNum: true
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
_this.selfRender(); // this.setState({});
|
|
140
|
+
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
_this.onChangeRowNum = function (num) {
|
|
144
|
+
var data = _this.props.data;
|
|
145
|
+
|
|
146
|
+
if ((0, _coreUtil.isPc)()) {
|
|
147
|
+
data.pcRowNum = num;
|
|
148
|
+
} else {
|
|
149
|
+
data.rowNum = num;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
_this.selfRender();
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
return _this;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
CustomizeConfig.prototype.componentDidMount = function () {
|
|
159
|
+
var _a;
|
|
160
|
+
|
|
161
|
+
if (((_a = this.props.data) === null || _a === void 0 ? void 0 : _a.layout) === 'layout2') {
|
|
162
|
+
this.setState({
|
|
163
|
+
showRowNum: false
|
|
164
|
+
});
|
|
165
|
+
} else {
|
|
166
|
+
this.setState({
|
|
167
|
+
showRowNum: true
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
CustomizeConfig.prototype.render = function () {
|
|
173
|
+
var _this = this;
|
|
174
|
+
|
|
175
|
+
var _a = this.props,
|
|
176
|
+
data = _a.data,
|
|
177
|
+
isHideAlign = _a.isHideAlign,
|
|
178
|
+
layoutSource = _a.layoutSource,
|
|
179
|
+
selectedLayoutFun = _a.selectedLayoutFun;
|
|
180
|
+
var showRowNum = this.state.showRowNum;
|
|
181
|
+
var layoutVal = data.layout;
|
|
182
|
+
|
|
183
|
+
if (selectedLayoutFun) {
|
|
184
|
+
layoutVal = (0, _coreUtil.isPc)() ? data === null || data === void 0 ? void 0 : data.layout.pcLayout : data === null || data === void 0 ? void 0 : data.layout.h5Layout;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
var maxRowNum = ((0, _coreUtil.isPc)() ? data === null || data === void 0 ? void 0 : data.pcMaxRowNum : data === null || data === void 0 ? void 0 : data.mobileMaxRowNum) || 3;
|
|
188
|
+
var minRowNum = ((0, _coreUtil.isPc)() ? data === null || data === void 0 ? void 0 : data.pcMinRowNum : data === null || data === void 0 ? void 0 : data.mobileMinRowNum) || 1;
|
|
189
|
+
var rowNumArr = [];
|
|
190
|
+
|
|
191
|
+
for (var i = minRowNum; i <= maxRowNum; i += 1) {
|
|
192
|
+
rowNumArr.push(i);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
var _showRowNum = showRowNum && ((0, _coreUtil.isPc)() && this.props.data.pcRowNum || !(0, _coreUtil.isPc)() && this.props.data.rowNum);
|
|
196
|
+
|
|
197
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
198
|
+
className: "m-customize-config"
|
|
199
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
200
|
+
split: !isHideAlign,
|
|
201
|
+
title: (0, _locale.i18n)('LAYOUT')
|
|
202
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.LayoutSelector, {
|
|
203
|
+
onChange: function onChange(value) {
|
|
204
|
+
_this.layoutChange(value);
|
|
205
|
+
},
|
|
206
|
+
source: layoutSource,
|
|
207
|
+
value: layoutVal
|
|
208
|
+
})), !isHideAlign && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
209
|
+
title: (0, _locale.i18n)('ALIGNMENT')
|
|
210
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.AlignSelector, {
|
|
211
|
+
onChange: function onChange(value) {
|
|
212
|
+
data.align = value;
|
|
213
|
+
|
|
214
|
+
_this.selfRender();
|
|
215
|
+
},
|
|
216
|
+
value: data.align
|
|
217
|
+
})), _showRowNum && /*#__PURE__*/_react["default"].createElement("div", {
|
|
218
|
+
className: "selectWrap"
|
|
219
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
220
|
+
className: "iconNum",
|
|
221
|
+
color: "#232F46",
|
|
222
|
+
size: 20,
|
|
223
|
+
type: "icon-a-3"
|
|
224
|
+
}), /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
225
|
+
onChange: function onChange(num) {
|
|
226
|
+
return _this.onChangeRowNum(num);
|
|
227
|
+
},
|
|
228
|
+
style: {
|
|
229
|
+
marginBottom: '15px'
|
|
230
|
+
},
|
|
231
|
+
value: (0, _coreUtil.isPc)() ? data.pcRowNum : data.rowNum
|
|
232
|
+
}, rowNumArr.map(function (m) {
|
|
233
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
234
|
+
key: m,
|
|
235
|
+
value: m
|
|
236
|
+
}, m);
|
|
237
|
+
}))));
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
CustomizeConfig.defaultProps = {
|
|
241
|
+
data: {
|
|
242
|
+
layout: 'left',
|
|
243
|
+
align: 'left'
|
|
244
|
+
},
|
|
245
|
+
isHideAlign: false,
|
|
246
|
+
layoutObj: null,
|
|
247
|
+
component: ''
|
|
248
|
+
};
|
|
249
|
+
CustomizeConfig = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], CustomizeConfig);
|
|
250
|
+
return CustomizeConfig;
|
|
251
|
+
}(_BaseConfig["default"]);
|
|
252
|
+
|
|
253
|
+
var _default = CustomizeConfig;
|
|
254
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.m-customize-config {
|
|
2
|
+
|
|
3
|
+
.selectWrap {
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
|
+
.iconNum {
|
|
7
|
+
position: absolute;
|
|
8
|
+
z-index: 9;
|
|
9
|
+
left: 15px;
|
|
10
|
+
top: 10px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ant-select {
|
|
14
|
+
width: 100%;
|
|
15
|
+
|
|
16
|
+
.ant-select-selector {
|
|
17
|
+
padding-left: 45px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _antd = require("antd");
|
|
11
|
+
|
|
12
|
+
var _common = require("../../../../common");
|
|
13
|
+
|
|
14
|
+
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
15
|
+
|
|
16
|
+
require("./index.less");
|
|
17
|
+
|
|
18
|
+
var _locale = require("../../../../locale");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
23
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
24
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
25
|
+
__proto__: []
|
|
26
|
+
} instanceof Array && function (d, b) {
|
|
27
|
+
d.__proto__ = b;
|
|
28
|
+
} || function (d, b) {
|
|
29
|
+
for (var p in b) {
|
|
30
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
return _extendStatics(d, b);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return function (d, b) {
|
|
38
|
+
_extendStatics(d, b);
|
|
39
|
+
|
|
40
|
+
function __() {
|
|
41
|
+
this.constructor = d;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45
|
+
};
|
|
46
|
+
}();
|
|
47
|
+
|
|
48
|
+
var SpacingConfig =
|
|
49
|
+
/** @class */
|
|
50
|
+
function (_super) {
|
|
51
|
+
__extends(SpacingConfig, _super);
|
|
52
|
+
|
|
53
|
+
function SpacingConfig() {
|
|
54
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55
|
+
|
|
56
|
+
_this.state = {};
|
|
57
|
+
return _this;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
SpacingConfig.prototype.render = function () {
|
|
61
|
+
var _this = this;
|
|
62
|
+
|
|
63
|
+
var _a = this.props,
|
|
64
|
+
data = _a.data,
|
|
65
|
+
configPaddingLR = _a.configPaddingLR,
|
|
66
|
+
configCompSpace = _a.configCompSpace,
|
|
67
|
+
configWidth = _a.configWidth;
|
|
68
|
+
var obj = data[window.magicDesign.device];
|
|
69
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
|
+
className: "spacing-config-container"
|
|
71
|
+
}, configWidth && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
72
|
+
title: "Width"
|
|
73
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
74
|
+
maxVal: window.magicDesign.device === 'pc' ? 1240 : 375,
|
|
75
|
+
minVal: window.magicDesign.device === 'pc' ? 1010 : 348,
|
|
76
|
+
onChange: function onChange(value) {
|
|
77
|
+
obj.contentWidth = value.count;
|
|
78
|
+
|
|
79
|
+
_this.selfRender();
|
|
80
|
+
},
|
|
81
|
+
value: {
|
|
82
|
+
count: obj.contentWidth
|
|
83
|
+
}
|
|
84
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
85
|
+
title: (0, _locale.i18n)('PADDING')
|
|
86
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
87
|
+
className: "padding-wrap"
|
|
88
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
|
+
className: "padding-item"
|
|
90
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
91
|
+
type: "icon-padding-top"
|
|
92
|
+
}), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
93
|
+
onChange: function onChange(e) {
|
|
94
|
+
obj.paddingTop = e.target.value;
|
|
95
|
+
|
|
96
|
+
_this.selfRender();
|
|
97
|
+
},
|
|
98
|
+
value: obj.paddingTop
|
|
99
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
+
className: "padding-item"
|
|
101
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
102
|
+
type: "icon-padding-bottom"
|
|
103
|
+
}), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
104
|
+
onChange: function onChange(e) {
|
|
105
|
+
obj.paddingBottom = e.target.value;
|
|
106
|
+
|
|
107
|
+
_this.selfRender();
|
|
108
|
+
},
|
|
109
|
+
value: obj.paddingBottom
|
|
110
|
+
})), configPaddingLR && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
|
+
className: "padding-item"
|
|
112
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
113
|
+
type: "icon-padding-left"
|
|
114
|
+
}), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
115
|
+
onChange: function onChange(e) {
|
|
116
|
+
obj.paddingLeft = e.target.value;
|
|
117
|
+
|
|
118
|
+
_this.selfRender();
|
|
119
|
+
},
|
|
120
|
+
value: obj.paddingLeft
|
|
121
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
|
+
className: "padding-item"
|
|
123
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
124
|
+
type: "icon-padding-right"
|
|
125
|
+
}), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
126
|
+
onChange: function onChange(e) {
|
|
127
|
+
obj.paddingRight = e.target.value;
|
|
128
|
+
|
|
129
|
+
_this.selfRender();
|
|
130
|
+
},
|
|
131
|
+
value: obj.paddingRight
|
|
132
|
+
}))))), configCompSpace && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
133
|
+
title: (0, _locale.i18n)('COMPONENT_SPACING')
|
|
134
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
135
|
+
maxVal: 100,
|
|
136
|
+
minVal: 0,
|
|
137
|
+
onChange: function onChange(value) {
|
|
138
|
+
obj.marginBottom = value.count;
|
|
139
|
+
|
|
140
|
+
_this.selfRender();
|
|
141
|
+
},
|
|
142
|
+
value: {
|
|
143
|
+
count: obj.marginBottom
|
|
144
|
+
}
|
|
145
|
+
})));
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
SpacingConfig.defaultProps = {
|
|
149
|
+
configPaddingLR: false,
|
|
150
|
+
configCompSpace: true,
|
|
151
|
+
configWidth: false,
|
|
152
|
+
data: {
|
|
153
|
+
pc: {
|
|
154
|
+
paddingTop: 10,
|
|
155
|
+
paddingBottom: 10,
|
|
156
|
+
paddingLeft: 10,
|
|
157
|
+
paddingRight: 10,
|
|
158
|
+
marginBottom: 10
|
|
159
|
+
},
|
|
160
|
+
mobile: {
|
|
161
|
+
paddingTop: 10,
|
|
162
|
+
paddingBottom: 10,
|
|
163
|
+
paddingLeft: 10,
|
|
164
|
+
paddingRight: 10,
|
|
165
|
+
marginBottom: 10
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
return SpacingConfig;
|
|
170
|
+
}(_BaseConfig["default"]);
|
|
171
|
+
|
|
172
|
+
var _default = SpacingConfig;
|
|
173
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDefaultJSON = void 0;
|
|
7
|
+
|
|
8
|
+
var _uuid = require("uuid");
|
|
9
|
+
|
|
10
|
+
var getDefaultJSON = function getDefaultJSON() {
|
|
11
|
+
return {
|
|
12
|
+
id: (0, _uuid.v4)(),
|
|
13
|
+
type: 'FLASH_DEAL',
|
|
14
|
+
title: {
|
|
15
|
+
icon: {
|
|
16
|
+
open: true,
|
|
17
|
+
url: '/get/resource/platform/conf/20220722/picture/组633391550411058986147840.png'
|
|
18
|
+
},
|
|
19
|
+
headline: {
|
|
20
|
+
id: (0, _uuid.v4)(),
|
|
21
|
+
open: true,
|
|
22
|
+
type: 'Text',
|
|
23
|
+
specialContent: [],
|
|
24
|
+
text: 'Flash Deal',
|
|
25
|
+
content: {
|
|
26
|
+
fontFamily: 'Open Sans',
|
|
27
|
+
fontWeight: 600,
|
|
28
|
+
fontSize: 14,
|
|
29
|
+
color: '#2C2C2C'
|
|
30
|
+
},
|
|
31
|
+
underline: {
|
|
32
|
+
open: false,
|
|
33
|
+
textDecorationColor: '',
|
|
34
|
+
textDecorationStyle: 'solid'
|
|
35
|
+
},
|
|
36
|
+
vertical: {
|
|
37
|
+
open: false,
|
|
38
|
+
lineHeight: 18
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
button: {
|
|
42
|
+
id: (0, _uuid.v4)(),
|
|
43
|
+
open: true,
|
|
44
|
+
type: 'BUTTON',
|
|
45
|
+
text: 'Shop More',
|
|
46
|
+
content: {
|
|
47
|
+
url: '',
|
|
48
|
+
backgroundColor: ''
|
|
49
|
+
},
|
|
50
|
+
buttonText: {
|
|
51
|
+
fontFamily: 'Open Sans',
|
|
52
|
+
fontWeight: 600,
|
|
53
|
+
fontSize: 12,
|
|
54
|
+
fontStyle: 'normal',
|
|
55
|
+
color: '#0038A8',
|
|
56
|
+
padding: '0'
|
|
57
|
+
},
|
|
58
|
+
buttonBorder: {
|
|
59
|
+
open: false,
|
|
60
|
+
borderColor: '',
|
|
61
|
+
borderRadius: 6
|
|
62
|
+
},
|
|
63
|
+
buttonIcon: {
|
|
64
|
+
iconUrl: '/get/resource/platform/conf/20220719/picture/icon-arrow-right-s1549371733179686912.png',
|
|
65
|
+
layout: 'right'
|
|
66
|
+
},
|
|
67
|
+
hover: null
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
content: {
|
|
71
|
+
sortType: '1',
|
|
72
|
+
label: {
|
|
73
|
+
id: (0, _uuid.v4)(),
|
|
74
|
+
open: true,
|
|
75
|
+
type: 'BUTTON',
|
|
76
|
+
text: 'Button',
|
|
77
|
+
content: {
|
|
78
|
+
url: '',
|
|
79
|
+
backgroundColor: '#CC1D20'
|
|
80
|
+
},
|
|
81
|
+
buttonText: {
|
|
82
|
+
fontFamily: 'Open Sans',
|
|
83
|
+
fontWeight: 600,
|
|
84
|
+
fontSize: 8,
|
|
85
|
+
fontStyle: 'normal',
|
|
86
|
+
color: '#fff',
|
|
87
|
+
padding: '0 5px'
|
|
88
|
+
},
|
|
89
|
+
buttonBorder: {
|
|
90
|
+
open: true,
|
|
91
|
+
borderColor: '',
|
|
92
|
+
borderRadius: 7
|
|
93
|
+
},
|
|
94
|
+
buttonIcon: {
|
|
95
|
+
iconUrl: '',
|
|
96
|
+
layout: 'right'
|
|
97
|
+
},
|
|
98
|
+
hover: null
|
|
99
|
+
},
|
|
100
|
+
productName: {
|
|
101
|
+
id: (0, _uuid.v4)(),
|
|
102
|
+
open: true,
|
|
103
|
+
type: 'Text',
|
|
104
|
+
specialContent: [],
|
|
105
|
+
text: 'Flash Deal',
|
|
106
|
+
content: {
|
|
107
|
+
fontFamily: 'Open Sans',
|
|
108
|
+
fontWeight: 500,
|
|
109
|
+
fontSize: 14,
|
|
110
|
+
color: '#2C2C2C'
|
|
111
|
+
},
|
|
112
|
+
underline: {
|
|
113
|
+
open: false,
|
|
114
|
+
textDecorationColor: '',
|
|
115
|
+
textDecorationStyle: 'solid'
|
|
116
|
+
},
|
|
117
|
+
vertical: {
|
|
118
|
+
open: false,
|
|
119
|
+
lineHeight: 18
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
activityPrice: {
|
|
123
|
+
id: (0, _uuid.v4)(),
|
|
124
|
+
open: true,
|
|
125
|
+
type: 'Text',
|
|
126
|
+
specialContent: [],
|
|
127
|
+
text: 'Flash Deal',
|
|
128
|
+
content: {
|
|
129
|
+
fontFamily: 'Open Sans',
|
|
130
|
+
fontWeight: 600,
|
|
131
|
+
fontSize: 14,
|
|
132
|
+
color: '#CE1126'
|
|
133
|
+
},
|
|
134
|
+
underline: {
|
|
135
|
+
open: false,
|
|
136
|
+
textDecorationColor: '',
|
|
137
|
+
textDecorationStyle: 'solid'
|
|
138
|
+
},
|
|
139
|
+
vertical: {
|
|
140
|
+
open: false,
|
|
141
|
+
lineHeight: 18
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
salesPrice: {
|
|
145
|
+
id: (0, _uuid.v4)(),
|
|
146
|
+
open: true,
|
|
147
|
+
type: 'Text',
|
|
148
|
+
specialContent: [],
|
|
149
|
+
text: 'Flash Deal',
|
|
150
|
+
content: {
|
|
151
|
+
fontFamily: 'Open Sans',
|
|
152
|
+
fontWeight: 500,
|
|
153
|
+
fontSize: 10,
|
|
154
|
+
color: '#929292'
|
|
155
|
+
},
|
|
156
|
+
underline: {
|
|
157
|
+
open: false,
|
|
158
|
+
textDecorationColor: '',
|
|
159
|
+
textDecorationStyle: 'solid'
|
|
160
|
+
},
|
|
161
|
+
vertical: {
|
|
162
|
+
open: false,
|
|
163
|
+
lineHeight: 18
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
salesProgressVisible: {
|
|
167
|
+
open: true
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
customize: {
|
|
171
|
+
layout: 'left',
|
|
172
|
+
align: 'left'
|
|
173
|
+
},
|
|
174
|
+
background: {
|
|
175
|
+
opacity: 100,
|
|
176
|
+
color: '#fff',
|
|
177
|
+
image: '',
|
|
178
|
+
bgType: 'color'
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
exports.getDefaultJSON = getDefaultJSON;
|