@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
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
require("./index.less");
|
|
13
|
+
|
|
14
|
+
var _Text = require("../../../../../meta-comp/components/Text");
|
|
15
|
+
|
|
16
|
+
var _components = require("../../../../../meta-comp/components");
|
|
17
|
+
|
|
18
|
+
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
19
|
+
|
|
20
|
+
var _common = require("../../../../../common");
|
|
21
|
+
|
|
22
|
+
var _menuIcon = _interopRequireDefault(require("../images/menu-icon.svg"));
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
27
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
28
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
29
|
+
__proto__: []
|
|
30
|
+
} instanceof Array && function (d, b) {
|
|
31
|
+
d.__proto__ = b;
|
|
32
|
+
} || function (d, b) {
|
|
33
|
+
for (var p in b) {
|
|
34
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
return _extendStatics(d, b);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return function (d, b) {
|
|
42
|
+
_extendStatics(d, b);
|
|
43
|
+
|
|
44
|
+
function __() {
|
|
45
|
+
this.constructor = d;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49
|
+
};
|
|
50
|
+
}();
|
|
51
|
+
|
|
52
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
53
|
+
__assign = Object.assign || function (t) {
|
|
54
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
55
|
+
s = arguments[i];
|
|
56
|
+
|
|
57
|
+
for (var p in s) {
|
|
58
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return t;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
return __assign.apply(this, arguments);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
69
|
+
function adopt(value) {
|
|
70
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
71
|
+
resolve(value);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
76
|
+
function fulfilled(value) {
|
|
77
|
+
try {
|
|
78
|
+
step(generator.next(value));
|
|
79
|
+
} catch (e) {
|
|
80
|
+
reject(e);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function rejected(value) {
|
|
85
|
+
try {
|
|
86
|
+
step(generator["throw"](value));
|
|
87
|
+
} catch (e) {
|
|
88
|
+
reject(e);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function step(result) {
|
|
93
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
101
|
+
var _ = {
|
|
102
|
+
label: 0,
|
|
103
|
+
sent: function sent() {
|
|
104
|
+
if (t[0] & 1) throw t[1];
|
|
105
|
+
return t[1];
|
|
106
|
+
},
|
|
107
|
+
trys: [],
|
|
108
|
+
ops: []
|
|
109
|
+
},
|
|
110
|
+
f,
|
|
111
|
+
y,
|
|
112
|
+
t,
|
|
113
|
+
g;
|
|
114
|
+
return g = {
|
|
115
|
+
next: verb(0),
|
|
116
|
+
"throw": verb(1),
|
|
117
|
+
"return": verb(2)
|
|
118
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
119
|
+
return this;
|
|
120
|
+
}), g;
|
|
121
|
+
|
|
122
|
+
function verb(n) {
|
|
123
|
+
return function (v) {
|
|
124
|
+
return step([n, v]);
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function step(op) {
|
|
129
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
130
|
+
|
|
131
|
+
while (_) {
|
|
132
|
+
try {
|
|
133
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
134
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
135
|
+
|
|
136
|
+
switch (op[0]) {
|
|
137
|
+
case 0:
|
|
138
|
+
case 1:
|
|
139
|
+
t = op;
|
|
140
|
+
break;
|
|
141
|
+
|
|
142
|
+
case 4:
|
|
143
|
+
_.label++;
|
|
144
|
+
return {
|
|
145
|
+
value: op[1],
|
|
146
|
+
done: false
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
case 5:
|
|
150
|
+
_.label++;
|
|
151
|
+
y = op[1];
|
|
152
|
+
op = [0];
|
|
153
|
+
continue;
|
|
154
|
+
|
|
155
|
+
case 7:
|
|
156
|
+
op = _.ops.pop();
|
|
157
|
+
|
|
158
|
+
_.trys.pop();
|
|
159
|
+
|
|
160
|
+
continue;
|
|
161
|
+
|
|
162
|
+
default:
|
|
163
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
164
|
+
_ = 0;
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
169
|
+
_.label = op[1];
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
174
|
+
_.label = t[1];
|
|
175
|
+
t = op;
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (t && _.label < t[2]) {
|
|
180
|
+
_.label = t[2];
|
|
181
|
+
|
|
182
|
+
_.ops.push(op);
|
|
183
|
+
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (t[2]) _.ops.pop();
|
|
188
|
+
|
|
189
|
+
_.trys.pop();
|
|
190
|
+
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
op = body.call(thisArg, _);
|
|
195
|
+
} catch (e) {
|
|
196
|
+
op = [6, e];
|
|
197
|
+
y = 0;
|
|
198
|
+
} finally {
|
|
199
|
+
f = t = 0;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (op[0] & 5) throw op[1];
|
|
204
|
+
return {
|
|
205
|
+
value: op[0] ? op[1] : void 0,
|
|
206
|
+
done: true
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
var JsonToUrl = function JsonToUrl(data) {
|
|
212
|
+
var tempArr = []; // eslint-disable-next-line no-unused-vars, no-restricted-syntax, guard-for-in
|
|
213
|
+
|
|
214
|
+
for (var i in data) {
|
|
215
|
+
var keyData = encodeURIComponent(i);
|
|
216
|
+
var value = encodeURIComponent(data[i]) === 'null' ? null : encodeURIComponent(data[i]);
|
|
217
|
+
tempArr.push(keyData + "=" + value);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
var urlParamsStr = tempArr.join('&');
|
|
221
|
+
return urlParamsStr;
|
|
222
|
+
}; // 跳转配置
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
var jumpUrlConfig = function jumpUrlConfig(item) {
|
|
226
|
+
var _a = item || {},
|
|
227
|
+
objType = _a.objType,
|
|
228
|
+
objValue = _a.objValue;
|
|
229
|
+
|
|
230
|
+
var jumpUrl = '';
|
|
231
|
+
|
|
232
|
+
switch (objType) {
|
|
233
|
+
case 'Category':
|
|
234
|
+
jumpUrl = "/product/list/" + objValue.objId;
|
|
235
|
+
break;
|
|
236
|
+
|
|
237
|
+
case 'ProductDetail':
|
|
238
|
+
{
|
|
239
|
+
var offerId = objValue.objId && objValue.objId.split(',')[0];
|
|
240
|
+
var productId = objValue.objId && objValue.objId.split(',')[1];
|
|
241
|
+
jumpUrl = "/product/detail/" + offerId + "?productId=" + productId;
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
case 'FilteredProducts':
|
|
246
|
+
{
|
|
247
|
+
var params = JsonToUrl(objValue.filteredProductsRela);
|
|
248
|
+
params = params.replace('productName', 'q');
|
|
249
|
+
jumpUrl = "/product/list/null?" + params;
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
case 'FunctionPage':
|
|
254
|
+
{
|
|
255
|
+
var url = objValue.objId && objValue.objId.split(',')[1];
|
|
256
|
+
jumpUrl = "" + url;
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
case 'CustomizedPage':
|
|
261
|
+
jumpUrl = "/group/" + objValue.objId;
|
|
262
|
+
(0, _commonUtil.navigateTo)(jumpUrl);
|
|
263
|
+
break;
|
|
264
|
+
|
|
265
|
+
case 'URL':
|
|
266
|
+
{
|
|
267
|
+
var lastUrl = void 0;
|
|
268
|
+
|
|
269
|
+
if (objValue.url) {
|
|
270
|
+
lastUrl = objValue.url;
|
|
271
|
+
} else {
|
|
272
|
+
lastUrl = objValue.maskValue ? objValue.maskValue.replace('URL: ', '') : '';
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
window.location.href = lastUrl;
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
default:
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
(0, _commonUtil.navigateTo)(jumpUrl);
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
var PcNavigationPage =
|
|
287
|
+
/** @class */
|
|
288
|
+
function (_super) {
|
|
289
|
+
__extends(PcNavigationPage, _super);
|
|
290
|
+
|
|
291
|
+
function PcNavigationPage() {
|
|
292
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
293
|
+
|
|
294
|
+
_this.state = {
|
|
295
|
+
categList: [],
|
|
296
|
+
list: []
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
_this.getCategory = function () {
|
|
300
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
301
|
+
var res, e_1;
|
|
302
|
+
return __generator(this, function (_a) {
|
|
303
|
+
switch (_a.label) {
|
|
304
|
+
case 0:
|
|
305
|
+
_a.trys.push([0, 2,, 3]);
|
|
306
|
+
|
|
307
|
+
return [4
|
|
308
|
+
/*yield*/
|
|
309
|
+
, (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/pages/buyer/displaycatgs", {}, 'GET')];
|
|
310
|
+
|
|
311
|
+
case 1:
|
|
312
|
+
res = _a.sent();
|
|
313
|
+
this.setState({
|
|
314
|
+
list: [res],
|
|
315
|
+
categList: res
|
|
316
|
+
});
|
|
317
|
+
return [3
|
|
318
|
+
/*break*/
|
|
319
|
+
, 3];
|
|
320
|
+
|
|
321
|
+
case 2:
|
|
322
|
+
e_1 = _a.sent(); // newData = [];
|
|
323
|
+
|
|
324
|
+
console.log('error', e_1);
|
|
325
|
+
return [3
|
|
326
|
+
/*break*/
|
|
327
|
+
, 3];
|
|
328
|
+
|
|
329
|
+
case 3:
|
|
330
|
+
return [2
|
|
331
|
+
/*return*/
|
|
332
|
+
];
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
_this.getListArr = function (pre, arr, index) {
|
|
339
|
+
if (arr) {
|
|
340
|
+
pre[index] = arr.map(function (item) {
|
|
341
|
+
return __assign(__assign({}, item), {
|
|
342
|
+
hoverActive: false
|
|
343
|
+
});
|
|
344
|
+
});
|
|
345
|
+
|
|
346
|
+
_this.setState({
|
|
347
|
+
list: pre.slice(0, index + 1)
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
_this.getCategoryStyle = function (index) {
|
|
353
|
+
var data = _this.props.data;
|
|
354
|
+
|
|
355
|
+
switch (index) {
|
|
356
|
+
case 0:
|
|
357
|
+
return (0, _Text.contentStyle)(data.home.firstCategory.content);
|
|
358
|
+
break;
|
|
359
|
+
|
|
360
|
+
case 1:
|
|
361
|
+
return (0, _Text.contentStyle)(data.home.secondCategory.content);
|
|
362
|
+
break;
|
|
363
|
+
|
|
364
|
+
case 2:
|
|
365
|
+
return (0, _Text.contentStyle)(data.home.lastCategory.content);
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
_this.renderMenuList = function (menuList, index) {
|
|
371
|
+
var list = _this.state.list;
|
|
372
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
373
|
+
className: "cate-wrap"
|
|
374
|
+
}, menuList.map(function (item) {
|
|
375
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
376
|
+
key: item.model.categId,
|
|
377
|
+
className: (0, _classnames["default"])('cate-item', {
|
|
378
|
+
'cate-active': item.hoverActive
|
|
379
|
+
}),
|
|
380
|
+
onClick: function onClick() {
|
|
381
|
+
var _a;
|
|
382
|
+
|
|
383
|
+
jumpUrlConfig((_a = item.model) === null || _a === void 0 ? void 0 : _a.catgRela);
|
|
384
|
+
},
|
|
385
|
+
onMouseEnter: function onMouseEnter() {
|
|
386
|
+
_this.getListArr(list, item.children, index + 1);
|
|
387
|
+
|
|
388
|
+
menuList.forEach(function (_item) {
|
|
389
|
+
_item.hoverActive = false;
|
|
390
|
+
});
|
|
391
|
+
item.hoverActive = true;
|
|
392
|
+
|
|
393
|
+
_this.setState({});
|
|
394
|
+
}
|
|
395
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
396
|
+
style: _this.getCategoryStyle(index)
|
|
397
|
+
}, item.model.catgName), item.children && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
398
|
+
color: item.hoverActive ? '#CE1126' : '#232F46',
|
|
399
|
+
size: 14,
|
|
400
|
+
type: "icon-outlined-right"
|
|
401
|
+
}));
|
|
402
|
+
}));
|
|
403
|
+
}; // getCardStyle = (source: TextMetaType[], i) => {
|
|
404
|
+
// const { data } = this.props;
|
|
405
|
+
// let cardStyle = {};
|
|
406
|
+
// cardStyle.marginRight = (1 + i) % data.customize.rowNum !== 0 ? '2%' : 0;
|
|
407
|
+
// if (data.customize.layout === 'newline') {
|
|
408
|
+
// cardStyle.marginBottom = 12;
|
|
409
|
+
// cardStyle.width = this.calcWidth(data.customize.rowNum);
|
|
410
|
+
// }
|
|
411
|
+
// return cardStyle;
|
|
412
|
+
// }
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
_this.mouseEnterBtn = function () {
|
|
416
|
+
document.querySelector('.all-category .m-meta-text').style.color = '#ED2121';
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
_this.mouseLeaveBtn = function () {
|
|
420
|
+
var data = _this.props.data;
|
|
421
|
+
var categList = _this.state.categList;
|
|
422
|
+
document.querySelector('.all-category .m-meta-text').style.color = data.home.allCategory.content.color;
|
|
423
|
+
|
|
424
|
+
_this.setState({
|
|
425
|
+
list: [categList]
|
|
426
|
+
});
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
return _this;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
PcNavigationPage.prototype.componentDidMount = function () {
|
|
433
|
+
this.getCategory();
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
PcNavigationPage.prototype.render = function () {
|
|
437
|
+
var _this = this;
|
|
438
|
+
|
|
439
|
+
var data = this.props.data; // const { ready } = this.state;
|
|
440
|
+
|
|
441
|
+
console.log('----nav pc', data);
|
|
442
|
+
var list = this.state.list;
|
|
443
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
444
|
+
className: (0, _classnames["default"])('pc-navigation')
|
|
445
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
446
|
+
className: "menu-wrap",
|
|
447
|
+
onMouseEnter: this.mouseEnterBtn,
|
|
448
|
+
onMouseLeave: this.mouseLeaveBtn
|
|
449
|
+
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
450
|
+
className: "menu-drop"
|
|
451
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
452
|
+
alt: "icon",
|
|
453
|
+
src: data.home.allCategory.iconUrl || _menuIcon["default"]
|
|
454
|
+
}), /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
455
|
+
className: "all-category",
|
|
456
|
+
data: data.home.allCategory
|
|
457
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
458
|
+
className: "category"
|
|
459
|
+
}, list.map(function (arrItem, index) {
|
|
460
|
+
return _this.renderMenuList(arrItem, index);
|
|
461
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
462
|
+
className: "category-group"
|
|
463
|
+
}, data.groupSource.map(function (source) {
|
|
464
|
+
return /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
465
|
+
className: "one-category",
|
|
466
|
+
data: source.title
|
|
467
|
+
});
|
|
468
|
+
})));
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
PcNavigationPage.defaultProps = {
|
|
472
|
+
data: {}
|
|
473
|
+
};
|
|
474
|
+
return PcNavigationPage;
|
|
475
|
+
}(_react["default"].Component);
|
|
476
|
+
|
|
477
|
+
var _default = PcNavigationPage;
|
|
478
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
.pc-navigation {
|
|
2
|
+
display: flex;
|
|
3
|
+
.menu-wrap {
|
|
4
|
+
// margin-top: 26px;
|
|
5
|
+
position: relative;
|
|
6
|
+
width: fit-content;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
|
|
10
|
+
&:hover {
|
|
11
|
+
@keyframes show-active{
|
|
12
|
+
0% {
|
|
13
|
+
opacity: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
100% {
|
|
17
|
+
opacity: 1;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
.category {
|
|
21
|
+
display: flex;
|
|
22
|
+
&:local {
|
|
23
|
+
animation: show-active .3s linear both;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.menu-drop {
|
|
27
|
+
// .all-category {
|
|
28
|
+
// color: #ED2121 !important;
|
|
29
|
+
// }
|
|
30
|
+
&>img {
|
|
31
|
+
position: relative;
|
|
32
|
+
left: 5000px;
|
|
33
|
+
filter: drop-shadow(#ED2121 -5000px 0);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.menu-drop {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
&> img {
|
|
41
|
+
width: 16px;
|
|
42
|
+
margin-right: 10px;
|
|
43
|
+
}
|
|
44
|
+
// &> span {
|
|
45
|
+
// color: #3A2E2E;
|
|
46
|
+
// font-family: NunitoSans-Bold;
|
|
47
|
+
// font-size: 16px;
|
|
48
|
+
// line-height: 22px;
|
|
49
|
+
// }
|
|
50
|
+
}
|
|
51
|
+
.category {
|
|
52
|
+
display: none;
|
|
53
|
+
position: absolute;
|
|
54
|
+
z-index: 9999;
|
|
55
|
+
left: 0;
|
|
56
|
+
bottom: 0;
|
|
57
|
+
transform: translateY(100%);
|
|
58
|
+
// :global {
|
|
59
|
+
.cate-wrap {
|
|
60
|
+
width: 290px;
|
|
61
|
+
border: 1px solid #E6EAF0;
|
|
62
|
+
padding: 8px 0;
|
|
63
|
+
background-color: #fff;
|
|
64
|
+
.cate-item {
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
font-family: 'Open Sans';
|
|
67
|
+
font-style: normal;
|
|
68
|
+
font-weight: 400;
|
|
69
|
+
font-size: 14px;
|
|
70
|
+
line-height: 38px;
|
|
71
|
+
color: #232F46;
|
|
72
|
+
display: flex;
|
|
73
|
+
width: 100%;
|
|
74
|
+
padding: 0 16px;
|
|
75
|
+
justify-content: space-between;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.cate-active {
|
|
79
|
+
background: #FCF1F2;
|
|
80
|
+
&> span {
|
|
81
|
+
color: #CE1126 !important;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
// }
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.category-group {
|
|
90
|
+
margin-left: 180px;
|
|
91
|
+
display: flex;
|
|
92
|
+
.one-category {
|
|
93
|
+
margin-right: 44px;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
}
|
|
98
|
+
|