@fonixtree/magic-design 0.0.71 → 0.0.72
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 +12 -24
- package/es/assets/fonts/magic-box-iconfont.css.bak +12 -24
- 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/less/modal.less +2 -7
- package/es/common/Button/index.js +1 -2
- package/es/common/Button/index.less +0 -5
- package/es/common/ButtonIconLayout/index.less +2 -4
- package/es/common/Collapse/index.js +4 -14
- package/es/common/GroupList/index.js +3 -2
- package/es/common/ImageModal/index.js +26 -31
- package/es/common/ImageModal/index.less +1 -6
- package/es/common/LinkModal/BundleCampaign/index.js +17 -17
- package/es/common/LinkModal/CustomTable/index.js +1 -2
- package/es/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/es/common/LinkModal/FilteredProductModal/index.less +2 -6
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.less +1 -1
- package/es/common/ProductModal/index.js +1 -1
- package/es/common/ProductModal/index.less +7 -12
- package/es/common/UrlPicker/index.js +2 -6
- package/es/common/UrlPicker/index.less +1 -12
- package/es/common/index.js +0 -8
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/es/composite-comp/bol/components/Banner/mobile/index.js +10 -4
- package/es/composite-comp/bol/components/Banner/pc/index.js +6 -3
- package/es/composite-comp/bol/components/Button/defaultJSON.js +70 -40
- package/es/composite-comp/bol/components/Button/index.js +14 -8
- package/es/composite-comp/bol/components/Button/index.less +0 -1
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +16 -12
- package/es/composite-comp/bol/components/Carousel/index.js +6 -1
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +7 -4
- package/es/composite-comp/bol/components/Carousel/pc/index.js +7 -12
- package/es/composite-comp/bol/components/Carousel/pc/index.less +5 -13
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +166 -26
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +5 -2
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
- package/es/composite-comp/bol/components/ImageText/pc/index.js +18 -46
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/Newsletter/index.js +6 -1
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +48 -38
- package/es/composite-comp/bol/components/Tag/index.js +14 -8
- package/es/composite-comp/bol/components/Tag/index.less +0 -1
- package/es/composite-comp/bol/components/Text/defaultJSON.js +4 -4
- package/es/composite-comp/bol/components/Text/index.js +8 -4
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +1 -3
- package/{lib/composite-comp/bol/second-config-panels/TagSecondConfig → es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent}/index.js +38 -40
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +2 -4
- package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -1
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +1 -3
- package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +1 -2
- package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -6
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +17 -9
- package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -7
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +1 -3
- package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +13 -8
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +5 -10
- package/es/composite-comp/common/components/ImageLabel/index.js +2 -2
- package/es/composite-comp/common/components/ImageLabel/index.less +2 -6
- package/es/composite-comp/common/components/ProductItem/index.less +10 -9
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -24
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +8 -8
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +2 -62
- package/es/composite-comp/dito/components/FlashDeal/index.js +1 -5
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -0
- package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -5
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +3 -13
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +2 -3
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +12 -30
- package/es/composite-comp/dito/components/Recommend/index.js +6 -5
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +35 -40
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +3 -10
- package/es/composite-comp/dito/components/Recommend/pc/index.js +19 -123
- package/es/composite-comp/dito/components/Recommend/pc/index.less +12 -53
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -26
- package/es/composite-comp/dito/components/SearchBar/index.js +2 -7
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +23 -26
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +3 -13
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +6 -16
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -20
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +3 -21
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -17
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +5 -42
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +29 -39
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +49 -80
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +1 -13
- package/es/constants/component-types.js +3 -13
- package/es/constants/index.js +2 -20
- package/es/constants/layout.js +8 -34
- package/es/core/Designer/CompListPanel/index.js +33 -8
- package/es/core/Designer/ConfigPanel/index.js +23 -72
- package/es/core/Designer/ConfigPanel/index.less +0 -4
- package/es/core/Designer/History/index.js +28 -34
- package/es/core/Designer/PageCompList/index.js +3 -13
- 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 +6 -20
- package/es/core/Designer/index.js +37 -42
- package/es/core/Renderer/index.js +2 -17
- package/es/decorator/compositeDecorator.js +12 -45
- package/es/decorator/index.js +0 -8
- package/es/decorator/metaDecorator.js +2 -2
- package/es/locale/en/en.json +1 -14
- package/es/locale/es/es.json +1 -14
- package/es/locale/id/id.json +1 -14
- package/es/meta-comp/components/Button/index.js +13 -32
- package/es/meta-comp/components/Button/index.less +2 -10
- package/es/meta-comp/components/Image/index.js +7 -38
- package/es/meta-comp/components/Image/index.less +0 -2
- package/es/meta-comp/components/Text/index.js +11 -27
- package/es/meta-comp/config-panels/BaseConfig.js +10 -8
- package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -2
- package/es/meta-comp/config-panels/ImageConfig/index.js +4 -17
- package/es/meta-comp/config-panels/TextConfig/index.js +3 -10
- package/es/mobx/Store.js +10 -6
- package/es/utils/coreUtil.js +3 -17
- package/lib/assets/fonts/magic-box-iconfont.css +12 -24
- package/lib/assets/fonts/magic-box-iconfont.css.bak +12 -24
- 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/less/modal.less +2 -7
- package/lib/common/Button/index.js +1 -2
- package/lib/common/Button/index.less +0 -5
- package/lib/common/ButtonIconLayout/index.less +2 -4
- package/lib/common/Collapse/index.js +4 -14
- package/lib/common/GroupList/index.js +3 -2
- package/lib/common/ImageModal/index.js +26 -31
- package/lib/common/ImageModal/index.less +1 -6
- package/lib/common/LinkModal/BundleCampaign/index.js +17 -17
- package/lib/common/LinkModal/CustomTable/index.js +1 -2
- package/lib/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/lib/common/LinkModal/FilteredProductModal/index.less +2 -6
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.less +1 -1
- package/lib/common/ProductModal/index.js +1 -1
- package/lib/common/ProductModal/index.less +7 -12
- package/lib/common/UrlPicker/index.js +2 -6
- package/lib/common/UrlPicker/index.less +1 -12
- package/lib/common/index.js +0 -8
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +10 -4
- package/lib/composite-comp/bol/components/Banner/pc/index.js +6 -3
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +70 -40
- package/lib/composite-comp/bol/components/Button/index.js +14 -8
- package/lib/composite-comp/bol/components/Button/index.less +0 -1
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +16 -12
- package/lib/composite-comp/bol/components/Carousel/index.js +6 -1
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +7 -4
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +7 -12
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +5 -13
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +166 -26
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +5 -2
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +18 -46
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/Newsletter/index.js +6 -1
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +48 -38
- package/lib/composite-comp/bol/components/Tag/index.js +14 -8
- package/lib/composite-comp/bol/components/Tag/index.less +0 -1
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +4 -4
- package/lib/composite-comp/bol/components/Text/index.js +8 -4
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +1 -3
- package/{es/composite-comp/bol/second-config-panels/TagSecondConfig → lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent}/index.js +38 -40
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +2 -4
- package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -1
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +1 -3
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +1 -2
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -6
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +17 -9
- package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -7
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +1 -3
- package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +13 -8
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +5 -10
- package/lib/composite-comp/common/components/ImageLabel/index.js +2 -2
- package/lib/composite-comp/common/components/ImageLabel/index.less +2 -6
- package/lib/composite-comp/common/components/ProductItem/index.less +10 -9
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -24
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +8 -8
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +2 -62
- package/lib/composite-comp/dito/components/FlashDeal/index.js +1 -5
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -0
- package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -5
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +3 -13
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +2 -3
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +12 -30
- package/lib/composite-comp/dito/components/Recommend/index.js +6 -5
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +35 -40
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +3 -10
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +19 -123
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +12 -53
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -26
- package/lib/composite-comp/dito/components/SearchBar/index.js +2 -7
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +23 -26
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +3 -13
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +6 -16
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -20
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +3 -21
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -17
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +5 -42
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +29 -39
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +49 -80
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +1 -13
- package/lib/constants/component-types.js +3 -13
- package/lib/constants/index.js +2 -20
- package/lib/constants/layout.js +8 -34
- package/lib/core/Designer/CompListPanel/index.js +33 -8
- package/lib/core/Designer/ConfigPanel/index.js +23 -72
- package/lib/core/Designer/ConfigPanel/index.less +0 -4
- package/lib/core/Designer/History/index.js +28 -34
- package/lib/core/Designer/PageCompList/index.js +3 -13
- 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 +6 -20
- package/lib/core/Designer/index.js +37 -42
- package/lib/core/Renderer/index.js +2 -17
- package/lib/decorator/compositeDecorator.js +12 -45
- package/lib/decorator/index.js +0 -8
- package/lib/decorator/metaDecorator.js +2 -2
- package/lib/locale/en/en.json +1 -14
- package/lib/locale/es/es.json +1 -14
- package/lib/locale/id/id.json +1 -14
- package/lib/meta-comp/components/Button/index.js +13 -32
- package/lib/meta-comp/components/Button/index.less +2 -10
- package/lib/meta-comp/components/Image/index.js +7 -38
- package/lib/meta-comp/components/Image/index.less +0 -2
- package/lib/meta-comp/components/Text/index.js +11 -27
- package/lib/meta-comp/config-panels/BaseConfig.js +10 -8
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -2
- package/lib/meta-comp/config-panels/ImageConfig/index.js +4 -17
- package/lib/meta-comp/config-panels/TextConfig/index.js +3 -10
- package/lib/mobx/Store.js +10 -6
- package/lib/utils/coreUtil.js +3 -17
- package/package.json +3 -5
- package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/es/common/ImgArea/components/Crop.js +0 -267
- package/es/common/ImgArea/components/Icons.js +0 -44
- package/es/common/ImgArea/components/MultiCrops.js +0 -210
- package/es/common/ImgArea/index.js +0 -11
- package/es/common/MagicLink/index.js +0 -89
- package/es/common/MagicLink/index.less +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -141
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +0 -16
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +0 -141
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +0 -16
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +0 -103
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +0 -3
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +0 -8
- package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +0 -3
- 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 +0 -578
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +0 -121
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -131
- package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +0 -6
- package/es/composite-comp/dito/components/PcNavigation/index.js +0 -85
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +0 -478
- package/es/composite-comp/dito/components/PcNavigation/pc/index.less +0 -98
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -151
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +0 -59
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -130
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +0 -128
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +0 -222
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -195
- package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +0 -73
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +0 -29
- package/es/decorator/updateConfigDecorator.js +0 -76
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +0 -164
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +0 -26
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +0 -133
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +0 -17
- package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/lib/common/ImgArea/components/Crop.js +0 -267
- package/lib/common/ImgArea/components/Icons.js +0 -44
- package/lib/common/ImgArea/components/MultiCrops.js +0 -210
- package/lib/common/ImgArea/index.js +0 -11
- package/lib/common/MagicLink/index.js +0 -89
- package/lib/common/MagicLink/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -141
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +0 -16
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +0 -141
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +0 -16
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +0 -103
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +0 -3
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +0 -8
- package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +0 -3
- 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 +0 -578
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +0 -121
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -131
- package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +0 -6
- package/lib/composite-comp/dito/components/PcNavigation/index.js +0 -85
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +0 -478
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +0 -98
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -151
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +0 -59
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -130
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +0 -128
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +0 -222
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -195
- package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +0 -73
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +0 -29
- package/lib/decorator/updateConfigDecorator.js +0 -76
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +0 -164
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +0 -26
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +0 -133
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +0 -17
|
@@ -13,8 +13,6 @@ require("./index.less");
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
var _lodash = _interopRequireDefault(require("lodash.throttle"));
|
|
17
|
-
|
|
18
16
|
var _mobx = require("../../../../../mobx");
|
|
19
17
|
|
|
20
18
|
var _ProductItem = _interopRequireDefault(require("../../../../common/components/ProductItem"));
|
|
@@ -27,8 +25,6 @@ var _commonUtil = require("../../../../../utils/commonUtil");
|
|
|
27
25
|
|
|
28
26
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
29
27
|
|
|
30
|
-
var _Iconfont = _interopRequireDefault(require("../../../../../common/Iconfont"));
|
|
31
|
-
|
|
32
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
29
|
|
|
34
30
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -232,24 +228,16 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
|
232
228
|
|
|
233
229
|
var LAYOUT_IMAGE_SIZE = {
|
|
234
230
|
layout1: {
|
|
235
|
-
w:
|
|
231
|
+
w: 180,
|
|
236
232
|
h: 180
|
|
237
233
|
},
|
|
238
|
-
|
|
234
|
+
layout2: {
|
|
239
235
|
w: 160,
|
|
240
236
|
h: 160
|
|
241
237
|
},
|
|
242
|
-
|
|
243
|
-
w:
|
|
244
|
-
h:
|
|
245
|
-
},
|
|
246
|
-
layout3_col6: {
|
|
247
|
-
w: 160,
|
|
248
|
-
h: 160
|
|
249
|
-
},
|
|
250
|
-
layout3_col5: {
|
|
251
|
-
w: 200,
|
|
252
|
-
h: 200
|
|
238
|
+
layout3: {
|
|
239
|
+
w: 180,
|
|
240
|
+
h: 180
|
|
253
241
|
}
|
|
254
242
|
};
|
|
255
243
|
|
|
@@ -266,27 +254,14 @@ function (_super) {
|
|
|
266
254
|
_this._cache = (0, _coreUtil.isDesignMode)() ? {} : (0, _commonUtil.ensure)(function () {
|
|
267
255
|
return (0, _storeUtil.getMagicStore)("recommend_" + _this.props.panelProps.id);
|
|
268
256
|
}, {});
|
|
269
|
-
_this.scrollRef = /*#__PURE__*/_react["default"].createRef();
|
|
270
257
|
_this.state = __assign({
|
|
271
258
|
tabIndex: 0,
|
|
272
259
|
tabLeft: 0,
|
|
273
260
|
tabWidth: 0,
|
|
274
261
|
groupSource: [],
|
|
275
|
-
hideTabs: false
|
|
276
|
-
scrollToLeftDisabled: true,
|
|
277
|
-
scrollToRightDisabled: true
|
|
262
|
+
hideTabs: false
|
|
278
263
|
}, _this._cache);
|
|
279
264
|
|
|
280
|
-
_this.setScrollDisabled = function (scrollDom) {
|
|
281
|
-
var scrollToLeftDisabled = scrollDom.scrollLeft === 0;
|
|
282
|
-
var scrollToRightDisabled = scrollDom.clientWidth + scrollDom.scrollLeft >= scrollDom.scrollWidth;
|
|
283
|
-
|
|
284
|
-
_this.setState({
|
|
285
|
-
scrollToLeftDisabled: scrollToLeftDisabled,
|
|
286
|
-
scrollToRightDisabled: scrollToRightDisabled
|
|
287
|
-
});
|
|
288
|
-
};
|
|
289
|
-
|
|
290
265
|
_this.initTab = function (index, hideTabs) {
|
|
291
266
|
var selectedTabDom = document.querySelector(".tab-select-wrap .tabTitle:nth-child(" + (index + 1) + ")");
|
|
292
267
|
var tabLeft = 0;
|
|
@@ -475,7 +450,8 @@ function (_super) {
|
|
|
475
450
|
|
|
476
451
|
_this.onTabClick = function (e, index) {
|
|
477
452
|
var tabIndex = _this.state.tabIndex;
|
|
478
|
-
if (tabIndex === index) return;
|
|
453
|
+
if (tabIndex === index) return;
|
|
454
|
+
e.currentTarget.scrollIntoView(false);
|
|
479
455
|
|
|
480
456
|
_this.setState({
|
|
481
457
|
tabIndex: index
|
|
@@ -486,34 +462,6 @@ function (_super) {
|
|
|
486
462
|
});
|
|
487
463
|
|
|
488
464
|
_this.getProductList(index);
|
|
489
|
-
|
|
490
|
-
setTimeout(function () {
|
|
491
|
-
var scrollDom = _this.scrollRef.current;
|
|
492
|
-
|
|
493
|
-
if (scrollDom) {
|
|
494
|
-
_this.setScrollDisabled(scrollDom);
|
|
495
|
-
|
|
496
|
-
scrollDom.onscroll = (0, _lodash["default"])(function () {
|
|
497
|
-
_this.setScrollDisabled(scrollDom);
|
|
498
|
-
}, 500);
|
|
499
|
-
}
|
|
500
|
-
}, 0);
|
|
501
|
-
};
|
|
502
|
-
|
|
503
|
-
_this.scrollToRight = function () {
|
|
504
|
-
var scrollDom = _this.scrollRef.current;
|
|
505
|
-
|
|
506
|
-
if (scrollDom.clientWidth + scrollDom.scrollLeft < scrollDom.scrollWidth) {
|
|
507
|
-
scrollDom.scrollTo(scrollDom.scrollLeft + scrollDom.clientWidth, 0);
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
|
|
511
|
-
_this.scrollToLeft = function () {
|
|
512
|
-
var scrollDom = _this.scrollRef.current;
|
|
513
|
-
|
|
514
|
-
if (scrollDom.scrollLeft > 0) {
|
|
515
|
-
scrollDom.scrollTo(scrollDom.scrollLeft - scrollDom.clientWidth, 0);
|
|
516
|
-
}
|
|
517
465
|
};
|
|
518
466
|
|
|
519
467
|
return _this;
|
|
@@ -535,17 +483,6 @@ function (_super) {
|
|
|
535
483
|
|
|
536
484
|
_this.getProductList(0);
|
|
537
485
|
});
|
|
538
|
-
setTimeout(function () {
|
|
539
|
-
var scrollDom = _this.scrollRef.current;
|
|
540
|
-
|
|
541
|
-
if (scrollDom) {
|
|
542
|
-
_this.setScrollDisabled(scrollDom);
|
|
543
|
-
|
|
544
|
-
scrollDom.onscroll = (0, _lodash["default"])(function () {
|
|
545
|
-
_this.setScrollDisabled(scrollDom);
|
|
546
|
-
}, 500);
|
|
547
|
-
}
|
|
548
|
-
}, 0);
|
|
549
486
|
};
|
|
550
487
|
|
|
551
488
|
RecommendMobile.prototype.componentWillReceiveProps = function () {
|
|
@@ -587,21 +524,10 @@ function (_super) {
|
|
|
587
524
|
hideTabs: hideTabs
|
|
588
525
|
});
|
|
589
526
|
});
|
|
590
|
-
var curLayout =
|
|
527
|
+
var curLayout = panelProps.customize.layout.pcLayout;
|
|
591
528
|
|
|
592
529
|
if (curLayout !== this.preLayout) {
|
|
593
530
|
this.resetLayout();
|
|
594
|
-
setTimeout(function () {
|
|
595
|
-
var scrollDom = _this.scrollRef.current;
|
|
596
|
-
|
|
597
|
-
if (scrollDom) {
|
|
598
|
-
_this.setScrollDisabled(scrollDom);
|
|
599
|
-
|
|
600
|
-
scrollDom.onscroll = (0, _lodash["default"])(function () {
|
|
601
|
-
_this.setScrollDisabled(scrollDom);
|
|
602
|
-
}, 500);
|
|
603
|
-
}
|
|
604
|
-
}, 0);
|
|
605
531
|
}
|
|
606
532
|
|
|
607
533
|
this.preLayout = curLayout;
|
|
@@ -616,12 +542,10 @@ function (_super) {
|
|
|
616
542
|
tabLeft = _a.tabLeft,
|
|
617
543
|
tabWidth = _a.tabWidth,
|
|
618
544
|
groupSource = _a.groupSource,
|
|
619
|
-
hideTabs = _a.hideTabs
|
|
620
|
-
scrollToLeftDisabled = _a.scrollToLeftDisabled,
|
|
621
|
-
scrollToRightDisabled = _a.scrollToRightDisabled;
|
|
545
|
+
hideTabs = _a.hideTabs;
|
|
622
546
|
var bgStyle = this.getBackgroundStyle();
|
|
623
547
|
var products = this.state["products" + tabIndex] || [];
|
|
624
|
-
var isDivide = groupSource.length <=
|
|
548
|
+
var isDivide = groupSource.length <= 3;
|
|
625
549
|
var layout = panelProps.customize.layout.pcLayout;
|
|
626
550
|
|
|
627
551
|
var _seeAll = (0, _commonUtil.ensure)(function () {
|
|
@@ -629,10 +553,10 @@ function (_super) {
|
|
|
629
553
|
}, '');
|
|
630
554
|
|
|
631
555
|
var imgHeight = (0, _commonUtil.ensure)(function () {
|
|
632
|
-
return
|
|
556
|
+
return LAYOUT_IMAGE_SIZE[layout].h;
|
|
633
557
|
}, 140);
|
|
634
558
|
var imgWidth = (0, _commonUtil.ensure)(function () {
|
|
635
|
-
return
|
|
559
|
+
return LAYOUT_IMAGE_SIZE[layout].w;
|
|
636
560
|
}, 140);
|
|
637
561
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
638
562
|
className: "m-recommend-pc",
|
|
@@ -674,22 +598,8 @@ function (_super) {
|
|
|
674
598
|
transform: "translateX(" + tabLeft + "px)",
|
|
675
599
|
background: this.getTabBarActiveColor(panelProps)
|
|
676
600
|
}
|
|
677
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
678
|
-
className: "tab-content"
|
|
679
|
-
}, layout !== 'layout1' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
680
|
-
className: "arrow-icon left",
|
|
681
|
-
onClick: function onClick() {
|
|
682
|
-
return _this.scrollToLeft();
|
|
683
|
-
}
|
|
684
|
-
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
685
|
-
color: scrollToLeftDisabled ? '#BDC1C8' : '#232F46',
|
|
686
|
-
size: 20,
|
|
687
|
-
type: "icon-outlined-left"
|
|
688
|
-
})), layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
689
|
-
className: "tab-list"
|
|
690
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
601
|
+
})), layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
691
602
|
key: "macyContainer",
|
|
692
|
-
ref: this.scrollRef,
|
|
693
603
|
className: "macyContainer"
|
|
694
604
|
}, products.map(function (item) {
|
|
695
605
|
return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
|
|
@@ -699,24 +609,19 @@ function (_super) {
|
|
|
699
609
|
imgHeight: imgHeight,
|
|
700
610
|
imgWidth: imgWidth,
|
|
701
611
|
onItemClick: function onItemClick() {
|
|
702
|
-
return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId);
|
|
612
|
+
return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
|
|
703
613
|
},
|
|
704
614
|
panelProps: panelProps.content,
|
|
705
615
|
showProgress: false
|
|
706
616
|
});
|
|
707
617
|
})), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
708
|
-
className:
|
|
709
|
-
line: layout === 'layout1'
|
|
710
|
-
}),
|
|
618
|
+
className: "btnSeeAll",
|
|
711
619
|
data: _seeAll
|
|
712
620
|
})) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
713
621
|
key: "scrollContainer",
|
|
714
|
-
ref: this.scrollRef,
|
|
715
622
|
className: (0, _classnames["default"])('scrollContainer', {
|
|
716
623
|
pl_100: layout === 'layout3'
|
|
717
624
|
})
|
|
718
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
719
|
-
className: "productList"
|
|
720
625
|
}, products.map(function (item) {
|
|
721
626
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
722
627
|
className: "productCard"
|
|
@@ -727,24 +632,15 @@ function (_super) {
|
|
|
727
632
|
imgHeight: imgHeight,
|
|
728
633
|
imgWidth: imgWidth,
|
|
729
634
|
onItemClick: function onItemClick() {
|
|
730
|
-
return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId);
|
|
635
|
+
return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
|
|
731
636
|
},
|
|
732
637
|
panelProps: panelProps.content,
|
|
733
638
|
showProgress: false
|
|
734
639
|
}));
|
|
735
|
-
})
|
|
640
|
+
}), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
736
641
|
className: "btnSeeAll",
|
|
737
642
|
data: _seeAll
|
|
738
|
-
}))
|
|
739
|
-
className: "arrow-icon right",
|
|
740
|
-
onClick: function onClick() {
|
|
741
|
-
return _this.scrollToRight();
|
|
742
|
-
}
|
|
743
|
-
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
744
|
-
color: scrollToRightDisabled ? '#BDC1C8' : '#232F46',
|
|
745
|
-
size: 20,
|
|
746
|
-
type: "icon-outlined-right"
|
|
747
|
-
}))));
|
|
643
|
+
})));
|
|
748
644
|
};
|
|
749
645
|
|
|
750
646
|
RecommendMobile.defaultProps = {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
.m-recommend-pc {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
position: relative;
|
|
5
4
|
|
|
6
5
|
.ant-tabs-nav-operations {
|
|
7
6
|
display: none !important;
|
|
8
7
|
}
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
::-webkit-scrollbar {
|
|
10
|
+
width: 0;
|
|
11
|
+
height: 0;
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
15
|
|
|
16
16
|
.tab-select-wrap {
|
|
17
17
|
display: flex;
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
.tabTitle {
|
|
26
26
|
display: flex;
|
|
27
27
|
align-items: center;
|
|
28
|
-
|
|
29
|
-
min-width: 100px;
|
|
28
|
+
padding: 0 24px;
|
|
30
29
|
height: 100%;
|
|
31
30
|
justify-content: center;
|
|
32
31
|
white-space: nowrap;
|
|
@@ -50,47 +49,16 @@
|
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
51
|
|
|
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
|
-
|
|
83
52
|
.macyContainer {
|
|
84
53
|
display: flex;
|
|
85
|
-
margin: 0;
|
|
54
|
+
margin: 0 16px;
|
|
86
55
|
}
|
|
87
56
|
|
|
88
57
|
.scrollContainer {
|
|
89
58
|
display: flex;
|
|
90
59
|
flex-direction: row;
|
|
91
60
|
align-items: center;
|
|
92
|
-
|
|
93
|
-
margin: 0;
|
|
61
|
+
margin: 0 16px;
|
|
94
62
|
overflow-x: auto;
|
|
95
63
|
padding-bottom: 15px;
|
|
96
64
|
|
|
@@ -98,14 +66,8 @@
|
|
|
98
66
|
padding-left: 100px;
|
|
99
67
|
}
|
|
100
68
|
|
|
101
|
-
.
|
|
102
|
-
|
|
103
|
-
flex-direction: row;
|
|
104
|
-
align-items: flex-start;
|
|
105
|
-
|
|
106
|
-
.productCard {
|
|
107
|
-
margin-right: 20px;
|
|
108
|
-
}
|
|
69
|
+
.productCard {
|
|
70
|
+
margin-right: 12px;
|
|
109
71
|
}
|
|
110
72
|
}
|
|
111
73
|
|
|
@@ -113,9 +75,6 @@
|
|
|
113
75
|
display: block;
|
|
114
76
|
width: fit-content;
|
|
115
77
|
min-width: 80px;
|
|
116
|
-
|
|
117
|
-
&.line {
|
|
118
|
-
margin: 0 auto 10px auto;
|
|
119
|
-
}
|
|
78
|
+
margin: 0 auto;
|
|
120
79
|
}
|
|
121
80
|
}
|
|
@@ -25,7 +25,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
25
25
|
h5Name: 'name2',
|
|
26
26
|
pcName: 'name2',
|
|
27
27
|
h5ImgSrc: _ditoLogo["default"],
|
|
28
|
-
pcImgSrc:
|
|
28
|
+
pcImgSrc: 'https://online.iwhalecloud.com/static/banner3.d4d11f4b.webp',
|
|
29
29
|
clickUrl: ''
|
|
30
30
|
},
|
|
31
31
|
hover: {
|
|
@@ -36,33 +36,9 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
36
36
|
h5ImgHoverUrl: ''
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
box: {
|
|
40
|
-
id: (0, _uuid.v4)(),
|
|
41
|
-
open: true,
|
|
42
|
-
color: {
|
|
43
|
-
pc: '#D92929',
|
|
44
|
-
mobile: '#D92929'
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
39
|
icon: {
|
|
48
|
-
id: (0, _uuid.v4)(),
|
|
49
40
|
open: true,
|
|
50
|
-
color:
|
|
51
|
-
pc: '#D92929',
|
|
52
|
-
mobile: '#D92929'
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
spacing: {
|
|
56
|
-
pc: {
|
|
57
|
-
paddingTop: 20,
|
|
58
|
-
paddingBottom: 30,
|
|
59
|
-
marginBottom: 0
|
|
60
|
-
},
|
|
61
|
-
mobile: {
|
|
62
|
-
paddingTop: 8,
|
|
63
|
-
paddingBottom: 8,
|
|
64
|
-
marginBottom: 0
|
|
65
|
-
}
|
|
41
|
+
color: '#2F54EB'
|
|
66
42
|
},
|
|
67
43
|
customize: {
|
|
68
44
|
layout: 'left',
|
|
@@ -11,8 +11,6 @@ var _defaultJSON = require("./defaultJSON");
|
|
|
11
11
|
|
|
12
12
|
var _index = _interopRequireDefault(require("./mobile/index"));
|
|
13
13
|
|
|
14
|
-
var _index2 = _interopRequireDefault(require("./pc/index"));
|
|
15
|
-
|
|
16
14
|
var _coreUtil = require("../../../../utils/coreUtil");
|
|
17
15
|
|
|
18
16
|
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
@@ -71,11 +69,8 @@ function (_super) {
|
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
SearchBar.prototype.render = function () {
|
|
74
|
-
var nodeData = this.props.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"], {
|
|
72
|
+
var nodeData = this.props.nodeData;
|
|
73
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? null : /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
79
74
|
data: nodeData
|
|
80
75
|
}));
|
|
81
76
|
};
|
|
@@ -233,47 +233,44 @@ function (_super) {
|
|
|
233
233
|
|
|
234
234
|
SearchMobile.prototype.render = function () {
|
|
235
235
|
var data = this.props.data;
|
|
236
|
-
|
|
237
|
-
var
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
236
|
+
var messageNum = this.state.messageNum;
|
|
237
|
+
var styleWrap = {};
|
|
238
|
+
|
|
239
|
+
if (data.background.bgType === 'color') {
|
|
240
|
+
styleWrap = {
|
|
241
|
+
backgroundColor: data.background.color,
|
|
242
|
+
opacity: data.background.opacity
|
|
243
|
+
};
|
|
244
|
+
} else {
|
|
245
|
+
styleWrap = {
|
|
246
|
+
backgroundImage: "url(" + data.background.image + ")",
|
|
247
|
+
backgroundPosition: 'center',
|
|
248
|
+
backgroundRepeat: 'no-repeat',
|
|
249
|
+
backgroundSize: '100%'
|
|
250
|
+
};
|
|
251
|
+
}
|
|
251
252
|
|
|
252
253
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
253
|
-
className: "m-search-bar"
|
|
254
|
+
className: "m-search-bar",
|
|
255
|
+
style: styleWrap
|
|
254
256
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
255
257
|
className: "right"
|
|
256
|
-
},
|
|
257
|
-
|
|
258
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
259
|
+
color: "#2C2C2C",
|
|
258
260
|
onClick: function onClick() {
|
|
259
261
|
return (0, _coreUtil.clickUrl)('/search-page');
|
|
260
262
|
},
|
|
261
|
-
style: {
|
|
262
|
-
borderColor: data.box.color.mobile
|
|
263
|
-
}
|
|
264
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
265
|
-
color: data.box.color.mobile,
|
|
266
263
|
size: 24,
|
|
267
264
|
type: "icon-search2"
|
|
268
|
-
})
|
|
265
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
269
266
|
className: "message-wrap"
|
|
270
267
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
271
|
-
color:
|
|
268
|
+
color: "#2C2C2C",
|
|
272
269
|
onClick: function onClick() {
|
|
273
270
|
return (0, _coreUtil.clickUrl)('/message-center');
|
|
274
271
|
},
|
|
275
272
|
size: 24,
|
|
276
|
-
type: "icon-
|
|
273
|
+
type: "icon-message"
|
|
277
274
|
}), !!messageNum && /*#__PURE__*/_react["default"].createElement("span", {
|
|
278
275
|
className: "num"
|
|
279
276
|
}, messageNum))), data.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.m-search-bar {
|
|
2
|
-
height:
|
|
3
|
-
padding:
|
|
2
|
+
height: 44px;
|
|
3
|
+
padding: 10px 16px;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row-reverse;
|
|
6
6
|
align-items: center;
|
|
@@ -8,23 +8,13 @@
|
|
|
8
8
|
width: 100%;
|
|
9
9
|
|
|
10
10
|
.right {
|
|
11
|
+
width: 60px;
|
|
11
12
|
display: flex;
|
|
12
13
|
align-items: center;
|
|
13
14
|
justify-content: space-between;
|
|
14
15
|
|
|
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
|
-
|
|
25
16
|
.message-wrap {
|
|
26
17
|
position: relative;
|
|
27
|
-
margin-left: 16px;
|
|
28
18
|
|
|
29
19
|
.num {
|
|
30
20
|
position: absolute;
|
package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js
CHANGED
|
@@ -19,8 +19,6 @@ var _common = require("../../../../../common");
|
|
|
19
19
|
|
|
20
20
|
var _locale = require("../../../../../locale");
|
|
21
21
|
|
|
22
|
-
require("./index.less");
|
|
23
|
-
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
23
|
|
|
26
24
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -118,22 +116,14 @@ function (_super) {
|
|
|
118
116
|
data: panelProps.salesPrice
|
|
119
117
|
}),
|
|
120
118
|
metaOption: panelProps.salesPrice
|
|
119
|
+
}, {
|
|
120
|
+
key: '5',
|
|
121
|
+
name: (0, _locale.i18n)('SALES_PROGRESS'),
|
|
122
|
+
value: null,
|
|
123
|
+
metaOption: panelProps.salesProgressVisible
|
|
121
124
|
}],
|
|
122
125
|
type: "switch"
|
|
123
|
-
})
|
|
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
|
-
})));
|
|
126
|
+
}));
|
|
137
127
|
};
|
|
138
128
|
|
|
139
129
|
AComponent.defaultProps = {
|
package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
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,27 +13,18 @@ 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
|
-
|
|
18
16
|
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
19
17
|
|
|
20
18
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
21
19
|
|
|
22
20
|
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
23
21
|
|
|
24
|
-
var _mobx = require("../../../../mobx");
|
|
25
|
-
|
|
26
22
|
var _locale = require("../../../../locale");
|
|
27
23
|
|
|
28
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
25
|
|
|
30
26
|
function FlashDealConfig(props) {
|
|
31
27
|
var data = props.data;
|
|
32
|
-
|
|
33
|
-
var getIsContentActive = function getIsContentActive(content) {
|
|
34
|
-
return JSON.stringify(content).includes(_mobx.store.clickedMetaParent);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
28
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
38
29
|
divider: "bold",
|
|
39
30
|
headerSize: "large",
|
|
@@ -48,30 +39,21 @@ function FlashDealConfig(props) {
|
|
|
48
39
|
name: (0, _locale.i18n)('CONTENT'),
|
|
49
40
|
value: /*#__PURE__*/_react["default"].createElement(_FlashDealConfigContent["default"], {
|
|
50
41
|
panelProps: data.content
|
|
51
|
-
}),
|
|
52
|
-
active: getIsContentActive(data.content)
|
|
53
|
-
}, {
|
|
54
|
-
key: '3',
|
|
55
|
-
name: (0, _locale.i18n)('SPACING'),
|
|
56
|
-
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
57
|
-
configCompSpace: true,
|
|
58
|
-
configPaddingLR: true,
|
|
59
|
-
data: data.spacing
|
|
60
42
|
})
|
|
61
43
|
}, {
|
|
62
|
-
key: '
|
|
44
|
+
key: '3',
|
|
63
45
|
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
64
46
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
65
47
|
data: data.customize,
|
|
66
48
|
isHideAlign: true,
|
|
67
49
|
layoutSource: [{
|
|
68
50
|
id: 'layout1',
|
|
69
|
-
name: '
|
|
51
|
+
name: 'left',
|
|
70
52
|
image: _layout["default"]
|
|
71
53
|
}]
|
|
72
54
|
})
|
|
73
55
|
}, {
|
|
74
|
-
key: '
|
|
56
|
+
key: '4',
|
|
75
57
|
name: (0, _locale.i18n)('BACKGROUND'),
|
|
76
58
|
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
77
59
|
data: data.background
|