@fonixtree/magic-design 0.0.78 → 0.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/fonts/magic-box-iconfont.css +24 -12
- package/es/assets/fonts/magic-box-iconfont.css.bak +24 -12
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -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/layout-icon/layout-navigation-normal.png +0 -0
- package/es/assets/less/common.less +2 -2
- package/es/assets/less/modal.less +7 -2
- package/es/common/Button/index.js +2 -1
- package/es/common/Button/index.less +5 -0
- package/es/common/ButtonIconLayout/index.less +4 -2
- package/es/common/Collapse/index.js +14 -4
- package/es/common/FontStyles/index.less +1 -1
- package/es/common/GroupList/index.js +4 -3
- package/es/common/ImageModal/index.js +31 -26
- package/es/common/ImageModal/index.less +6 -1
- package/es/common/ImgArea/components/Crop.js +267 -0
- package/es/common/ImgArea/components/Icons.js +44 -0
- package/es/common/ImgArea/components/MultiCrops.js +210 -0
- package/es/common/ImgArea/index.js +11 -0
- package/es/common/LinkModal/BundleCampaign/index.js +17 -17
- package/es/common/LinkModal/CustomTable/index.js +1 -0
- package/es/common/LinkModal/FilteredProductModal/index.js +3 -3
- package/es/common/LinkModal/FilteredProductModal/index.less +2 -3
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.less +1 -1
- package/es/common/MagicLink/index.js +89 -0
- package/es/common/MagicLink/index.less +0 -0
- package/es/common/ProductModal/index.js +1 -1
- package/es/common/ProductModal/index.less +12 -7
- package/es/common/UrlPicker/index.js +6 -2
- package/es/common/UrlPicker/index.less +12 -1
- package/es/common/index.js +8 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -10
- package/es/composite-comp/bol/components/Banner/pc/index.js +3 -6
- package/es/composite-comp/bol/components/Button/defaultJSON.js +40 -70
- package/es/composite-comp/bol/components/Button/index.js +8 -14
- package/es/composite-comp/bol/components/Button/index.less +1 -0
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +12 -16
- package/es/composite-comp/bol/components/Carousel/index.js +1 -6
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +4 -8
- package/es/composite-comp/bol/components/Carousel/pc/index.js +15 -7
- package/es/composite-comp/bol/components/Carousel/pc/index.less +13 -5
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +27 -167
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +2 -5
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
- package/es/composite-comp/bol/components/ImageText/pc/index.js +46 -18
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/Newsletter/index.js +1 -6
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
- package/es/composite-comp/bol/components/Tag/index.js +8 -14
- package/es/composite-comp/bol/components/Tag/index.less +1 -0
- package/es/composite-comp/bol/components/Text/defaultJSON.js +4 -6
- package/es/composite-comp/bol/components/Text/index.js +4 -8
- package/es/composite-comp/bol/components/Text/index.less +3 -3
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +141 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
- package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -0
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
- package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +141 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
- package/es/composite-comp/bol/{config-panels/ButtonCompConfig/ButtonConfigContent → second-config-panels/TagSecondConfig}/index.js +40 -38
- package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
- package/es/composite-comp/common/components/ImageLabel/index.js +2 -2
- package/es/composite-comp/common/components/ImageLabel/index.less +6 -2
- package/es/composite-comp/common/components/ProductItem/index.js +1 -1
- package/es/composite-comp/common/components/ProductItem/index.less +9 -9
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +24 -13
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +25 -25
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +62 -2
- package/es/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -1
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +578 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +121 -0
- package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +131 -0
- package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
- package/es/composite-comp/dito/components/PcNavigation/index.js +85 -0
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +478 -0
- package/es/composite-comp/dito/components/PcNavigation/pc/index.less +98 -0
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +30 -12
- package/es/composite-comp/dito/components/Recommend/index.js +5 -6
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +45 -37
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +10 -2
- package/es/composite-comp/dito/components/Recommend/pc/index.js +134 -22
- package/es/composite-comp/dito/components/Recommend/pc/index.less +54 -12
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +45 -19
- package/es/composite-comp/dito/components/SearchBar/index.js +7 -2
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +29 -26
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +13 -3
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +151 -0
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +59 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +12 -2
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +16 -3
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +15 -51
- package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
- package/es/constants/component-types.js +13 -3
- package/es/constants/index.js +20 -2
- package/es/constants/layout.js +34 -8
- package/es/core/Designer/CompListPanel/index.js +8 -33
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
- package/es/core/Designer/ConfigPanel/index.js +72 -23
- package/es/core/Designer/ConfigPanel/index.less +4 -0
- package/es/core/Designer/History/index.js +34 -28
- package/es/core/Designer/PageCompList/index.js +13 -3
- package/es/core/Designer/PageCompList/index.less +10 -10
- package/es/core/Designer/QuickMenuBar/index.js +1 -1
- package/es/core/Designer/ViewArea/index.js +20 -6
- package/es/core/Designer/index.js +43 -37
- package/es/core/Renderer/index.js +21 -5
- package/es/decorator/compositeDecorator.js +45 -12
- package/es/decorator/index.js +8 -0
- package/es/decorator/metaDecorator.js +4 -3
- package/es/decorator/updateConfigDecorator.js +76 -0
- package/es/locale/en/en.json +14 -1
- package/es/locale/es/es.json +14 -1
- package/es/locale/id/id.json +14 -1
- package/es/meta-comp/components/Button/editable.js +114 -0
- package/es/meta-comp/components/Button/editable.less +6 -0
- package/es/meta-comp/components/Button/index.js +14 -33
- package/es/meta-comp/components/Button/index.less +3 -2
- package/es/meta-comp/components/Image/index.js +39 -8
- package/es/meta-comp/components/Image/index.less +7 -4
- package/es/meta-comp/components/Text/index.js +28 -11
- package/es/meta-comp/config-panels/BaseConfig.js +8 -10
- package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -3
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +17 -4
- package/es/meta-comp/config-panels/TextConfig/index.js +15 -6
- package/es/mobx/Store.js +6 -10
- package/es/utils/coreUtil.js +15 -2
- package/lib/assets/fonts/magic-box-iconfont.css +24 -12
- package/lib/assets/fonts/magic-box-iconfont.css.bak +24 -12
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -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/layout-icon/layout-navigation-normal.png +0 -0
- package/lib/assets/less/common.less +2 -2
- package/lib/assets/less/modal.less +7 -2
- package/lib/common/Button/index.js +2 -1
- package/lib/common/Button/index.less +5 -0
- package/lib/common/ButtonIconLayout/index.less +4 -2
- package/lib/common/Collapse/index.js +14 -4
- package/lib/common/FontStyles/index.less +1 -1
- package/lib/common/GroupList/index.js +4 -3
- package/lib/common/ImageModal/index.js +31 -26
- package/lib/common/ImageModal/index.less +6 -1
- package/lib/common/ImgArea/components/Crop.js +267 -0
- package/lib/common/ImgArea/components/Icons.js +44 -0
- package/lib/common/ImgArea/components/MultiCrops.js +210 -0
- package/lib/common/ImgArea/index.js +11 -0
- package/lib/common/LinkModal/BundleCampaign/index.js +17 -17
- package/lib/common/LinkModal/CustomTable/index.js +1 -0
- package/lib/common/LinkModal/FilteredProductModal/index.js +3 -3
- package/lib/common/LinkModal/FilteredProductModal/index.less +2 -3
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.less +1 -1
- package/lib/common/MagicLink/index.js +89 -0
- package/lib/common/MagicLink/index.less +0 -0
- package/lib/common/ProductModal/index.js +1 -1
- package/lib/common/ProductModal/index.less +12 -7
- package/lib/common/UrlPicker/index.js +6 -2
- package/lib/common/UrlPicker/index.less +12 -1
- package/lib/common/index.js +8 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -10
- package/lib/composite-comp/bol/components/Banner/pc/index.js +3 -6
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +40 -70
- package/lib/composite-comp/bol/components/Button/index.js +8 -14
- package/lib/composite-comp/bol/components/Button/index.less +1 -0
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +12 -16
- package/lib/composite-comp/bol/components/Carousel/index.js +1 -6
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +4 -8
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +15 -7
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +13 -5
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +27 -167
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +2 -5
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +46 -18
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/Newsletter/index.js +1 -6
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
- package/lib/composite-comp/bol/components/Tag/index.js +8 -14
- package/lib/composite-comp/bol/components/Tag/index.less +1 -0
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +4 -6
- package/lib/composite-comp/bol/components/Text/index.js +4 -8
- package/lib/composite-comp/bol/components/Text/index.less +3 -3
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +141 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
- package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -0
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +141 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
- package/lib/composite-comp/bol/{config-panels/ButtonCompConfig/ButtonConfigContent → second-config-panels/TagSecondConfig}/index.js +40 -38
- package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
- package/lib/composite-comp/common/components/ImageLabel/index.js +2 -2
- package/lib/composite-comp/common/components/ImageLabel/index.less +6 -2
- package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
- package/lib/composite-comp/common/components/ProductItem/index.less +9 -9
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +24 -13
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +25 -25
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +62 -2
- package/lib/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -1
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +578 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +121 -0
- package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +131 -0
- package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
- package/lib/composite-comp/dito/components/PcNavigation/index.js +85 -0
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +478 -0
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +98 -0
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +30 -12
- package/lib/composite-comp/dito/components/Recommend/index.js +5 -6
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +45 -37
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +10 -2
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +134 -22
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +54 -12
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +45 -19
- package/lib/composite-comp/dito/components/SearchBar/index.js +7 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +29 -26
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +13 -3
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +151 -0
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +59 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +12 -2
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +16 -3
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +15 -51
- package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
- package/lib/constants/component-types.js +13 -3
- package/lib/constants/index.js +20 -2
- package/lib/constants/layout.js +34 -8
- package/lib/core/Designer/CompListPanel/index.js +8 -33
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
- package/lib/core/Designer/ConfigPanel/index.js +72 -23
- package/lib/core/Designer/ConfigPanel/index.less +4 -0
- package/lib/core/Designer/History/index.js +34 -28
- package/lib/core/Designer/PageCompList/index.js +13 -3
- package/lib/core/Designer/PageCompList/index.less +10 -10
- package/lib/core/Designer/QuickMenuBar/index.js +1 -1
- package/lib/core/Designer/ViewArea/index.js +20 -6
- package/lib/core/Designer/index.js +43 -37
- package/lib/core/Renderer/index.js +21 -5
- package/lib/decorator/compositeDecorator.js +45 -12
- package/lib/decorator/index.js +8 -0
- package/lib/decorator/metaDecorator.js +4 -3
- package/lib/decorator/updateConfigDecorator.js +76 -0
- package/lib/locale/en/en.json +14 -1
- package/lib/locale/es/es.json +14 -1
- package/lib/locale/id/id.json +14 -1
- package/lib/meta-comp/components/Button/editable.js +114 -0
- package/lib/meta-comp/components/Button/editable.less +6 -0
- package/lib/meta-comp/components/Button/index.js +14 -33
- package/lib/meta-comp/components/Button/index.less +3 -2
- package/lib/meta-comp/components/Image/index.js +39 -8
- package/lib/meta-comp/components/Image/index.less +7 -4
- package/lib/meta-comp/components/Text/index.js +28 -11
- package/lib/meta-comp/config-panels/BaseConfig.js +8 -10
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -3
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +17 -4
- package/lib/meta-comp/config-panels/TextConfig/index.js +15 -6
- package/lib/mobx/Store.js +6 -10
- package/lib/utils/coreUtil.js +15 -2
- package/package.json +5 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
.m-recommend-pc {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
+
position: relative;
|
|
4
5
|
|
|
5
6
|
.ant-tabs-nav-operations {
|
|
6
7
|
display: none !important;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
::-webkit-scrollbar {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
10
|
+
// ::-webkit-scrollbar {
|
|
11
|
+
// width: 0;
|
|
12
|
+
// height: 0;
|
|
13
|
+
// display: none;
|
|
14
|
+
// }
|
|
15
15
|
|
|
16
16
|
.tab-select-wrap {
|
|
17
17
|
display: flex;
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
.tabTitle {
|
|
26
26
|
display: flex;
|
|
27
27
|
align-items: center;
|
|
28
|
-
padding: 0 24px;
|
|
28
|
+
// padding: 0 24px;
|
|
29
|
+
min-width: 100px;
|
|
29
30
|
height: 100%;
|
|
30
31
|
justify-content: center;
|
|
31
32
|
white-space: nowrap;
|
|
@@ -49,16 +50,47 @@
|
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
|
|
53
|
+
.tab-content {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: row;
|
|
56
|
+
align-items: center;
|
|
57
|
+
|
|
58
|
+
.tab-list {
|
|
59
|
+
width: 100%;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.arrow-icon {
|
|
64
|
+
display: block;
|
|
65
|
+
width: 36px;
|
|
66
|
+
height: 36px;
|
|
67
|
+
line-height: 42px;
|
|
68
|
+
text-align: center;
|
|
69
|
+
background: #FFFFFF;
|
|
70
|
+
box-shadow: -1px -1px 4px rgba(45, 48, 64, 0.08), 1px 1px 4px rgba(45, 48, 64, 0.08);
|
|
71
|
+
border-radius: 100px;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
|
|
74
|
+
&.left {
|
|
75
|
+
margin-right: 40px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.right {
|
|
79
|
+
margin-left: 40px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
52
83
|
.macyContainer {
|
|
53
84
|
display: flex;
|
|
54
|
-
margin: 0
|
|
85
|
+
margin: 0;
|
|
55
86
|
}
|
|
56
87
|
|
|
57
88
|
.scrollContainer {
|
|
58
89
|
display: flex;
|
|
59
90
|
flex-direction: row;
|
|
60
91
|
align-items: center;
|
|
61
|
-
|
|
92
|
+
flex: 1;
|
|
93
|
+
margin: 0;
|
|
62
94
|
overflow-x: auto;
|
|
63
95
|
padding-bottom: 15px;
|
|
64
96
|
|
|
@@ -66,8 +98,14 @@
|
|
|
66
98
|
padding-left: 100px;
|
|
67
99
|
}
|
|
68
100
|
|
|
69
|
-
.
|
|
70
|
-
|
|
101
|
+
.scrollProductList {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: row;
|
|
104
|
+
align-items: flex-start;
|
|
105
|
+
|
|
106
|
+
.productCard {
|
|
107
|
+
margin-right: 20px;
|
|
108
|
+
}
|
|
71
109
|
}
|
|
72
110
|
}
|
|
73
111
|
|
|
@@ -75,6 +113,10 @@
|
|
|
75
113
|
display: block;
|
|
76
114
|
width: fit-content;
|
|
77
115
|
min-width: 80px;
|
|
78
|
-
|
|
116
|
+
flex: none;
|
|
117
|
+
|
|
118
|
+
&.line {
|
|
119
|
+
margin: 0 auto 10px auto;
|
|
120
|
+
}
|
|
79
121
|
}
|
|
80
122
|
}
|
|
@@ -17,28 +17,54 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
17
17
|
return {
|
|
18
18
|
id: (0, _uuid.v4)(),
|
|
19
19
|
type: 'SEARCH',
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
content: {
|
|
21
|
+
logo: {
|
|
22
|
+
id: (0, _uuid.v4)(),
|
|
23
|
+
open: true,
|
|
24
|
+
type: 'IMAGE',
|
|
25
|
+
content: {
|
|
26
|
+
h5Name: 'name2',
|
|
27
|
+
pcName: 'name2',
|
|
28
|
+
h5ImgSrc: _ditoLogo["default"],
|
|
29
|
+
pcImgSrc: _ditoLogo["default"],
|
|
30
|
+
clickUrl: ''
|
|
31
|
+
},
|
|
32
|
+
hover: {
|
|
33
|
+
open: false,
|
|
34
|
+
backgroundType: 'enlarge',
|
|
35
|
+
magnification: 1.5,
|
|
36
|
+
pcImgHoverUrl: '',
|
|
37
|
+
h5ImgHoverUrl: ''
|
|
38
|
+
}
|
|
30
39
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
box: {
|
|
41
|
+
id: (0, _uuid.v4)(),
|
|
42
|
+
open: true,
|
|
43
|
+
color: {
|
|
44
|
+
pc: '#D92929',
|
|
45
|
+
mobile: '#D92929'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
icon: {
|
|
49
|
+
id: (0, _uuid.v4)(),
|
|
50
|
+
open: true,
|
|
51
|
+
color: {
|
|
52
|
+
pc: '#D92929',
|
|
53
|
+
mobile: '#D92929'
|
|
54
|
+
}
|
|
37
55
|
}
|
|
38
56
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
57
|
+
spacing: {
|
|
58
|
+
pc: {
|
|
59
|
+
paddingTop: 20,
|
|
60
|
+
paddingBottom: 30,
|
|
61
|
+
marginBottom: 0
|
|
62
|
+
},
|
|
63
|
+
mobile: {
|
|
64
|
+
paddingTop: 8,
|
|
65
|
+
paddingBottom: 8,
|
|
66
|
+
marginBottom: 0
|
|
67
|
+
}
|
|
42
68
|
},
|
|
43
69
|
customize: {
|
|
44
70
|
layout: 'left',
|
|
@@ -11,6 +11,8 @@ var _defaultJSON = require("./defaultJSON");
|
|
|
11
11
|
|
|
12
12
|
var _index = _interopRequireDefault(require("./mobile/index"));
|
|
13
13
|
|
|
14
|
+
var _index2 = _interopRequireDefault(require("./pc/index"));
|
|
15
|
+
|
|
14
16
|
var _coreUtil = require("../../../../utils/coreUtil");
|
|
15
17
|
|
|
16
18
|
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
@@ -69,8 +71,11 @@ function (_super) {
|
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
SearchBar.prototype.render = function () {
|
|
72
|
-
var nodeData = this.props.nodeData;
|
|
73
|
-
|
|
74
|
+
var nodeData = this.props.nodeData; // console.log('search nodeData', nodeData);
|
|
75
|
+
|
|
76
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(_index2["default"], {
|
|
77
|
+
data: nodeData
|
|
78
|
+
}) : /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
74
79
|
data: nodeData
|
|
75
80
|
}));
|
|
76
81
|
};
|
|
@@ -233,50 +233,53 @@ function (_super) {
|
|
|
233
233
|
|
|
234
234
|
SearchMobile.prototype.render = function () {
|
|
235
235
|
var data = this.props.data;
|
|
236
|
-
|
|
237
|
-
var styleWrap = {};
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
236
|
+
console.log('----search ', data);
|
|
237
|
+
var messageNum = this.state.messageNum; // let styleWrap = {};
|
|
238
|
+
// if (data.content.background.bgType === 'color') {
|
|
239
|
+
// styleWrap = {
|
|
240
|
+
// backgroundColor: data.content.background.color,
|
|
241
|
+
// opacity: data.content.background.opacity,
|
|
242
|
+
// };
|
|
243
|
+
// } else {
|
|
244
|
+
// styleWrap = {
|
|
245
|
+
// backgroundImage: `url(${data.content.background.image})`,
|
|
246
|
+
// backgroundPosition: 'center',
|
|
247
|
+
// backgroundRepeat: 'no-repeat',
|
|
248
|
+
// backgroundSize: '100%',
|
|
249
|
+
// };
|
|
250
|
+
// }
|
|
252
251
|
|
|
253
252
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
254
|
-
className: "m-search-bar"
|
|
255
|
-
style: styleWrap
|
|
253
|
+
className: "m-search-bar"
|
|
256
254
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
257
255
|
className: "right"
|
|
258
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
259
|
-
|
|
256
|
+
}, data.content && data.content.box.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
257
|
+
className: "search-input-wrap",
|
|
260
258
|
onClick: function onClick() {
|
|
261
259
|
return (0, _coreUtil.clickUrl)('/search-page');
|
|
262
260
|
},
|
|
261
|
+
style: {
|
|
262
|
+
borderColor: data.content.box.color.mobile
|
|
263
|
+
}
|
|
264
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
265
|
+
color: data.content.box.color.mobile,
|
|
263
266
|
size: 24,
|
|
264
267
|
type: "icon-search2"
|
|
265
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
268
|
+
})), data.content && data.content.icon.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
266
269
|
className: "message-wrap"
|
|
267
270
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
268
|
-
color:
|
|
271
|
+
color: data.content.icon.color.mobile,
|
|
269
272
|
onClick: function onClick() {
|
|
270
273
|
return (0, _coreUtil.clickUrl)('/message-center');
|
|
271
274
|
},
|
|
272
275
|
size: 24,
|
|
273
|
-
type: "icon-
|
|
276
|
+
type: "icon-ChatDots"
|
|
274
277
|
}), !!messageNum && /*#__PURE__*/_react["default"].createElement("span", {
|
|
275
278
|
className: "num"
|
|
276
|
-
}, messageNum))), data.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
277
|
-
data: data.logo,
|
|
279
|
+
}, messageNum))), data.content && data.content.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
280
|
+
data: data.content.logo,
|
|
278
281
|
style: {
|
|
279
|
-
height:
|
|
282
|
+
height: 30
|
|
280
283
|
}
|
|
281
284
|
}));
|
|
282
285
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.m-search-bar {
|
|
2
|
-
height:
|
|
3
|
-
padding:
|
|
2
|
+
height: 48px;
|
|
3
|
+
padding: 8px 16px;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row-reverse;
|
|
6
6
|
align-items: center;
|
|
@@ -8,13 +8,23 @@
|
|
|
8
8
|
width: 100%;
|
|
9
9
|
|
|
10
10
|
.right {
|
|
11
|
-
width: 60px;
|
|
12
11
|
display: flex;
|
|
13
12
|
align-items: center;
|
|
14
13
|
justify-content: space-between;
|
|
15
14
|
|
|
15
|
+
.search-input-wrap {
|
|
16
|
+
width: 195px;
|
|
17
|
+
background: #fff;
|
|
18
|
+
border-radius: 4px;
|
|
19
|
+
border: 1px solid #D2D9E5;
|
|
20
|
+
padding: 4px 12px;
|
|
21
|
+
height: 32px;
|
|
22
|
+
text-align: right;
|
|
23
|
+
}
|
|
24
|
+
|
|
16
25
|
.message-wrap {
|
|
17
26
|
position: relative;
|
|
27
|
+
margin-left: 16px;
|
|
18
28
|
|
|
19
29
|
.num {
|
|
20
30
|
position: absolute;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
require("./index.less");
|
|
11
|
+
|
|
12
|
+
var _antd = require("antd");
|
|
13
|
+
|
|
14
|
+
var _locale = require("../../../../../locale");
|
|
15
|
+
|
|
16
|
+
var _components = require("../../../../../meta-comp/components");
|
|
17
|
+
|
|
18
|
+
var _common = require("../../../../../common");
|
|
19
|
+
|
|
20
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
25
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
26
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
27
|
+
__proto__: []
|
|
28
|
+
} instanceof Array && function (d, b) {
|
|
29
|
+
d.__proto__ = b;
|
|
30
|
+
} || function (d, b) {
|
|
31
|
+
for (var p in b) {
|
|
32
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return _extendStatics(d, b);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return function (d, b) {
|
|
40
|
+
_extendStatics(d, b);
|
|
41
|
+
|
|
42
|
+
function __() {
|
|
43
|
+
this.constructor = d;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47
|
+
};
|
|
48
|
+
}();
|
|
49
|
+
|
|
50
|
+
var SearchPc =
|
|
51
|
+
/** @class */
|
|
52
|
+
function (_super) {
|
|
53
|
+
__extends(SearchPc, _super);
|
|
54
|
+
|
|
55
|
+
function SearchPc() {
|
|
56
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57
|
+
|
|
58
|
+
_this.state = {
|
|
59
|
+
// messageNum: '',
|
|
60
|
+
inputVal: ''
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
_this.onChangeVal = function (val) {
|
|
64
|
+
// console.log('--onChangeVal', val);
|
|
65
|
+
_this.setState({
|
|
66
|
+
inputVal: val
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
_this.searchProduct = function () {
|
|
71
|
+
console.log('--input', _this.state.inputVal);
|
|
72
|
+
(0, _coreUtil.clickUrl)({
|
|
73
|
+
pathname: "/product/list?q=" + _this.state.inputVal
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
_this.keyUp = function (e) {
|
|
78
|
+
if (e.keyCode === 13) {
|
|
79
|
+
_this.searchProduct();
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
return _this;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
SearchPc.prototype.componentDidMount = function () {};
|
|
87
|
+
|
|
88
|
+
SearchPc.prototype.render = function () {
|
|
89
|
+
var _this = this;
|
|
90
|
+
|
|
91
|
+
var data = this.props.data;
|
|
92
|
+
var inputVal = this.state.inputVal;
|
|
93
|
+
console.log('--pc data', data);
|
|
94
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
95
|
+
className: "pc-search-bar"
|
|
96
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
97
|
+
className: "right"
|
|
98
|
+
}, data.content && data.content.box.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
|
+
className: "search-input-wrap",
|
|
100
|
+
style: {
|
|
101
|
+
borderColor: data.content.box.color.pc
|
|
102
|
+
}
|
|
103
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
104
|
+
className: "search-input",
|
|
105
|
+
onChange: function onChange(e) {
|
|
106
|
+
return _this.onChangeVal(e.target.value);
|
|
107
|
+
},
|
|
108
|
+
onKeyUp: this.keyUp,
|
|
109
|
+
placeholder: (0, _locale.i18n)('PLEASE_INPUT_KEYWORDS'),
|
|
110
|
+
value: inputVal
|
|
111
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
|
+
className: "search-icon",
|
|
113
|
+
onClick: this.searchProduct,
|
|
114
|
+
style: {
|
|
115
|
+
background: data.content.box.color.pc
|
|
116
|
+
}
|
|
117
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
118
|
+
color: "#fff",
|
|
119
|
+
size: 24,
|
|
120
|
+
type: "icon-search2"
|
|
121
|
+
}))), data.content && data.content.icon.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
|
+
className: "shopping-wrap",
|
|
123
|
+
onClick: function onClick() {
|
|
124
|
+
return (0, _coreUtil.clickUrl)('/cart');
|
|
125
|
+
},
|
|
126
|
+
style: {
|
|
127
|
+
borderColor: data.content.icon.color.pc,
|
|
128
|
+
color: data.content.icon.color.pc
|
|
129
|
+
}
|
|
130
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
131
|
+
color: data.content.icon.color.pc,
|
|
132
|
+
size: 16,
|
|
133
|
+
type: "icon-ShoppingCartSimple"
|
|
134
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
135
|
+
className: "shopping-txt"
|
|
136
|
+
}, (0, _locale.i18n)('SHOPPING_CART')))), data.content && data.content.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
137
|
+
data: data.content.logo,
|
|
138
|
+
style: {
|
|
139
|
+
height: 40
|
|
140
|
+
}
|
|
141
|
+
}));
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
SearchPc.defaultProps = {
|
|
145
|
+
data: {}
|
|
146
|
+
};
|
|
147
|
+
return SearchPc;
|
|
148
|
+
}(_react["default"].Component);
|
|
149
|
+
|
|
150
|
+
var _default = SearchPc;
|
|
151
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.pc-search-bar {
|
|
2
|
+
// height: 48px;
|
|
3
|
+
// padding: 20px 100px 30px;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: row-reverse;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
width: 100%;
|
|
9
|
+
|
|
10
|
+
.right {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex: 1;
|
|
13
|
+
margin-left: 90px;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
|
|
17
|
+
.search-input-wrap {
|
|
18
|
+
border: 1px solid #2F54EB;
|
|
19
|
+
border-radius: 6px;
|
|
20
|
+
height: 40px;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex: 1;
|
|
23
|
+
.search-input {
|
|
24
|
+
border: none;
|
|
25
|
+
height: 38px;
|
|
26
|
+
box-shadow: none;
|
|
27
|
+
font-family: 'Open Sans';
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
}
|
|
32
|
+
.search-icon {
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
height: 100%;
|
|
35
|
+
// width: 40px;
|
|
36
|
+
text-align: center;
|
|
37
|
+
padding: 8px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.shopping-wrap {
|
|
42
|
+
border-radius: 4px;
|
|
43
|
+
margin-left: 16px;
|
|
44
|
+
padding: 8px 16px;
|
|
45
|
+
font-family: 'Open Sans';
|
|
46
|
+
font-style: normal;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
line-height: 22px;
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
border: 1px solid #2F54EB;
|
|
54
|
+
.shopping-txt {
|
|
55
|
+
margin-left: 6px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js
CHANGED
|
@@ -19,6 +19,8 @@ var _common = require("../../../../../common");
|
|
|
19
19
|
|
|
20
20
|
var _locale = require("../../../../../locale");
|
|
21
21
|
|
|
22
|
+
require("./index.less");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -116,14 +118,22 @@ function (_super) {
|
|
|
116
118
|
data: panelProps.salesPrice
|
|
117
119
|
}),
|
|
118
120
|
metaOption: panelProps.salesPrice
|
|
119
|
-
}, {
|
|
120
|
-
key: '5',
|
|
121
|
-
name: (0, _locale.i18n)('SALES_PROGRESS'),
|
|
122
|
-
value: null,
|
|
123
|
-
metaOption: panelProps.salesProgressVisible
|
|
124
121
|
}],
|
|
125
122
|
type: "switch"
|
|
126
|
-
})
|
|
123
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
|
+
className: "sales_progress_wrap"
|
|
125
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
126
|
+
className: "label"
|
|
127
|
+
}, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
128
|
+
checked: panelProps.salesProgressVisible.open,
|
|
129
|
+
onChange: function onChange(v) {
|
|
130
|
+
panelProps.salesProgressVisible = {
|
|
131
|
+
open: v
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
_this.reRender();
|
|
135
|
+
}
|
|
136
|
+
})));
|
|
127
137
|
};
|
|
128
138
|
|
|
129
139
|
AComponent.defaultProps = {
|
package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.flash_sale_content {
|
|
2
|
+
|
|
3
|
+
.sales_progress_wrap {
|
|
4
|
+
border-top: 1px solid #EDF0F4;
|
|
5
|
+
padding-top: 20px;
|
|
6
|
+
padding-bottom: 10px;
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
|
|
10
|
+
.label {
|
|
11
|
+
font-size: 16px !important;
|
|
12
|
+
line-height: 24px !important;
|
|
13
|
+
height: 24px !important;
|
|
14
|
+
font-weight: 600 !important;
|
|
15
|
+
color: #232F46;
|
|
16
|
+
font-family: 'Open Sans';
|
|
17
|
+
font-style: normal;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -13,6 +13,8 @@ var _FlashDealConfigContent = _interopRequireDefault(require("./FlashDealConfigC
|
|
|
13
13
|
|
|
14
14
|
var _layout = _interopRequireDefault(require("./imgs/layout1.png"));
|
|
15
15
|
|
|
16
|
+
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
17
|
+
|
|
16
18
|
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
17
19
|
|
|
18
20
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
@@ -42,18 +44,26 @@ function FlashDealConfig(props) {
|
|
|
42
44
|
})
|
|
43
45
|
}, {
|
|
44
46
|
key: '3',
|
|
47
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
48
|
+
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
49
|
+
configCompSpace: true,
|
|
50
|
+
configPaddingLR: false,
|
|
51
|
+
data: data.spacing
|
|
52
|
+
})
|
|
53
|
+
}, {
|
|
54
|
+
key: '4',
|
|
45
55
|
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
46
56
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
47
57
|
data: data.customize,
|
|
48
58
|
isHideAlign: true,
|
|
49
59
|
layoutSource: [{
|
|
50
60
|
id: 'layout1',
|
|
51
|
-
name: '
|
|
61
|
+
name: 'layout1',
|
|
52
62
|
image: _layout["default"]
|
|
53
63
|
}]
|
|
54
64
|
})
|
|
55
65
|
}, {
|
|
56
|
-
key: '
|
|
66
|
+
key: '5',
|
|
57
67
|
name: (0, _locale.i18n)('BACKGROUND'),
|
|
58
68
|
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
59
69
|
data: data.background
|
|
@@ -19,6 +19,8 @@ var _defaultJSON = require("../../../components/MobileNavigation/defaultJSON");
|
|
|
19
19
|
|
|
20
20
|
var _locale = require("../../../../../locale");
|
|
21
21
|
|
|
22
|
+
var _decorator = require("../../../../../decorator");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -118,7 +120,7 @@ function (_super) {
|
|
|
118
120
|
ImageTextConfigGroup.defaultProps = {
|
|
119
121
|
source: []
|
|
120
122
|
};
|
|
121
|
-
ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], ImageTextConfigGroup);
|
|
123
|
+
ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], ImageTextConfigGroup);
|
|
122
124
|
return ImageTextConfigGroup;
|
|
123
125
|
}(_react["default"].Component);
|
|
124
126
|
|