@fonixtree/magic-design 2.0.202 → 2.0.203
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/AvenirNext-Bold.ttf +0 -0
- package/es/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
- package/es/assets/fonts/AvenirNext-Medium.ttf +0 -0
- package/es/assets/fonts/AvenirNext-Regular.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +27 -3
- package/es/assets/fonts/magic-box-iconfont.js +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/banner-slide-layout3.png +0 -0
- package/es/assets/images/layout-icon/grouped-carousel-layout1.png +0 -0
- package/es/assets/images/layout-icon/news-layout1.png +0 -0
- package/es/assets/images/layout-icon/search-dito-layout1.png +0 -0
- package/es/assets/images/layout-icon/slide-image-layout1.png +0 -0
- package/es/assets/less/font.less +30 -0
- package/es/assets/less/global.less +5 -0
- package/es/common/CountDown/index.js +29 -2
- package/es/common/CountDown/index.less +38 -5
- package/es/common/LinkModal/ProductList/index.js +484 -0
- package/es/common/LinkModal/ProductList/index.less +130 -0
- package/es/common/LinkModal/index.js +8 -1
- package/es/common/ProductCardModal/imgs/dot-icon.png +0 -0
- package/es/common/ProductCardModal/index.js +255 -0
- package/es/common/ProductCardModal/index.less +131 -0
- package/es/common/Toast/index.js +30 -0
- package/es/common/Toast/index.less +29 -0
- package/es/common/UrlPicker/index.js +1 -1
- package/es/common/Video/index.js +5 -3
- package/es/common/VideoPC/background.png +0 -0
- package/es/common/VideoPC/closeImg.png +0 -0
- package/es/common/VideoPC/components/index.js +100 -0
- package/es/common/VideoPC/components/index.less +62 -0
- package/es/common/VideoPC/cover.png +0 -0
- package/es/common/VideoPC/index.js +750 -0
- package/es/common/VideoPC/index.less +79 -0
- package/es/common/index.js +24 -0
- package/es/composite-comp/common/components/ProductItem/index.js +15 -8
- package/es/composite-comp/common/components/ProductItem/index.less +7 -0
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
- package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +26 -12
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
- package/es/composite-comp/dito/components/GroupBuy/mobile/index.less +5 -2
- package/es/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +312 -0
- package/es/composite-comp/dito/components/GroupedCarousel/index.js +86 -0
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.js +189 -0
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.less +65 -0
- package/es/composite-comp/dito/components/News/defaultJSON.js +172 -0
- package/{lib/composite-comp/dito/components/Orders → es/composite-comp/dito/components/News}/index.js +13 -13
- package/es/composite-comp/dito/components/News/pc/index.js +113 -0
- package/es/composite-comp/dito/components/News/pc/index.less +46 -0
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +56 -2
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +147 -15
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +100 -8
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +130 -14
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +3 -11
- package/es/composite-comp/dito/components/SearchDITO/defaultJSON.js +221 -0
- package/es/composite-comp/dito/components/SearchDITO/index.js +86 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +153 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.less +25 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/imgs/avatar.png +0 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.js +176 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.less +57 -0
- package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +138 -0
- package/es/composite-comp/dito/components/SlideImage/index.js +86 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +105 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +5 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +170 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.less +23 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/cursor.png +0 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/d.png +0 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +176 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +61 -0
- package/es/composite-comp/dito/components/SlideImage/pc/index.js +76 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.js +149 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.js +93 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/index.js +114 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.js +148 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.js +101 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/imgs/defaultImg.png +0 -0
- package/{lib/composite-comp/dito/config-panels/OrdersConfig → es/composite-comp/dito/config-panels/NewsConfig}/index.js +40 -40
- package/es/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +165 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +7 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.js +179 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.less +0 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.js +181 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.less +9 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/index.js +69 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.js +150 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +134 -0
- package/es/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.js +196 -0
- package/es/composite-comp/dito/second-config-panels/NewsSecondConfig/index.js +133 -0
- package/es/composite-comp/dito/second-config-panels/NewsSecondConfig/index.less +8 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
- package/es/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.js +366 -0
- package/es/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.less +79 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +243 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +71 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +4 -3
- package/es/constants/component-types.js +27 -9
- package/es/constants/index.js +40 -20
- package/es/constants/layout.js +46 -2
- package/es/core/Designer/ConfigPanel/index.js +17 -1
- package/es/core/Renderer/index.js +37 -2
- package/es/decorator/compositeDecorator.js +5 -1
- package/es/decorator/metaDecorator.js +1 -2
- package/es/locale/ar/ar.json +11 -1
- package/es/locale/en/en.json +11 -1
- package/es/locale/es/es.json +11 -1
- package/es/meta-comp/components/Button/editable.js +3 -1
- package/es/meta-comp/components/Button/index.js +13 -4
- package/es/meta-comp/components/Button/index.less +8 -1
- package/es/meta-comp/components/Image/index.js +7 -2
- package/es/meta-comp/components/Image/index.less +7 -0
- package/es/meta-comp/components/Text/index.js +6 -2
- package/es/meta-comp/components/Text/index.less +3 -0
- package/es/mobx/Frame.js +12 -1
- package/es/mobx/Store.js +12 -0
- package/es/utils/androidUtil.js +10 -2
- package/es/utils/businessUtil.js +218 -3
- package/es/utils/commonUtil.js +155 -4
- package/es/utils/coreUtil.js +59 -4
- package/es/utils/messageUtil.js +40 -0
- package/es/utils/pluginsUtil.js +1 -0
- package/lib/assets/fonts/AvenirNext-Bold.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-Medium.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-Regular.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +27 -3
- package/lib/assets/fonts/magic-box-iconfont.js +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/banner-slide-layout3.png +0 -0
- package/lib/assets/images/layout-icon/grouped-carousel-layout1.png +0 -0
- package/lib/assets/images/layout-icon/news-layout1.png +0 -0
- package/lib/assets/images/layout-icon/search-dito-layout1.png +0 -0
- package/lib/assets/images/layout-icon/slide-image-layout1.png +0 -0
- package/lib/assets/less/font.less +30 -0
- package/lib/assets/less/global.less +5 -0
- package/lib/common/CountDown/index.js +29 -2
- package/lib/common/CountDown/index.less +38 -5
- package/lib/common/LinkModal/ProductList/index.js +484 -0
- package/lib/common/LinkModal/ProductList/index.less +130 -0
- package/lib/common/LinkModal/index.js +8 -1
- package/lib/common/ProductCardModal/imgs/dot-icon.png +0 -0
- package/lib/common/ProductCardModal/index.js +255 -0
- package/lib/common/ProductCardModal/index.less +131 -0
- package/lib/common/Toast/index.js +30 -0
- package/lib/common/Toast/index.less +29 -0
- package/lib/common/UrlPicker/index.js +1 -1
- package/lib/common/Video/index.js +5 -3
- package/lib/common/VideoPC/background.png +0 -0
- package/lib/common/VideoPC/closeImg.png +0 -0
- package/lib/common/VideoPC/components/index.js +100 -0
- package/lib/common/VideoPC/components/index.less +62 -0
- package/lib/common/VideoPC/cover.png +0 -0
- package/lib/common/VideoPC/index.js +750 -0
- package/lib/common/VideoPC/index.less +79 -0
- package/lib/common/index.js +24 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +15 -8
- package/lib/composite-comp/common/components/ProductItem/index.less +7 -0
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
- package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +26 -12
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
- package/lib/composite-comp/dito/components/GroupBuy/mobile/index.less +5 -2
- package/lib/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +312 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/index.js +86 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.js +189 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.less +65 -0
- package/lib/composite-comp/dito/components/News/defaultJSON.js +172 -0
- package/{es/composite-comp/dito/components/Orders → lib/composite-comp/dito/components/News}/index.js +13 -13
- package/lib/composite-comp/dito/components/News/pc/index.js +113 -0
- package/lib/composite-comp/dito/components/News/pc/index.less +46 -0
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +56 -2
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +147 -15
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +100 -8
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +130 -14
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +3 -11
- package/lib/composite-comp/dito/components/SearchDITO/defaultJSON.js +221 -0
- package/lib/composite-comp/dito/components/SearchDITO/index.js +86 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +153 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.less +25 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/imgs/avatar.png +0 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +176 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.less +57 -0
- package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +138 -0
- package/lib/composite-comp/dito/components/SlideImage/index.js +86 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +105 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +5 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +170 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.less +23 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/cursor.png +0 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/d.png +0 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +176 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +61 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/index.js +76 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.js +149 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.js +93 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/index.js +114 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.js +148 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.js +101 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/imgs/defaultImg.png +0 -0
- package/{es/composite-comp/dito/config-panels/OrdersConfig → lib/composite-comp/dito/config-panels/NewsConfig}/index.js +40 -40
- package/lib/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +165 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +7 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.js +179 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.js +181 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.less +9 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/index.js +69 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.js +150 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +134 -0
- package/lib/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.js +196 -0
- package/lib/composite-comp/dito/second-config-panels/NewsSecondConfig/index.js +133 -0
- package/lib/composite-comp/dito/second-config-panels/NewsSecondConfig/index.less +8 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
- package/lib/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.js +366 -0
- package/lib/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.less +79 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +243 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +71 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +4 -3
- package/lib/constants/component-types.js +27 -9
- package/lib/constants/index.js +40 -20
- package/lib/constants/layout.js +46 -2
- package/lib/core/Designer/ConfigPanel/index.js +17 -1
- package/lib/core/Renderer/index.js +37 -2
- package/lib/decorator/compositeDecorator.js +5 -1
- package/lib/decorator/metaDecorator.js +1 -2
- package/lib/locale/ar/ar.json +11 -1
- package/lib/locale/en/en.json +11 -1
- package/lib/locale/es/es.json +11 -1
- package/lib/meta-comp/components/Button/editable.js +3 -1
- package/lib/meta-comp/components/Button/index.js +13 -4
- package/lib/meta-comp/components/Button/index.less +8 -1
- package/lib/meta-comp/components/Image/index.js +7 -2
- package/lib/meta-comp/components/Image/index.less +7 -0
- package/lib/meta-comp/components/Text/index.js +6 -2
- package/lib/meta-comp/components/Text/index.less +3 -0
- package/lib/mobx/Frame.js +12 -1
- package/lib/mobx/Store.js +12 -0
- package/lib/utils/androidUtil.js +10 -2
- package/lib/utils/businessUtil.js +218 -3
- package/lib/utils/commonUtil.js +155 -4
- package/lib/utils/coreUtil.js +59 -4
- package/lib/utils/messageUtil.js +40 -0
- package/lib/utils/pluginsUtil.js +1 -0
- package/package.json +5 -2
- 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/Orders/mobile/index.js +0 -352
- package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- 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/Orders/mobile/index.js +0 -352
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- /package/es/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
- /package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.groupSourceJSON = exports.getDefaultJSON = void 0;
|
|
7
|
+
|
|
8
|
+
var _uuid = require("uuid");
|
|
9
|
+
|
|
10
|
+
var groupSourceJSON = function groupSourceJSON(parentId, text) {
|
|
11
|
+
var groupId = (0, _uuid.v4)();
|
|
12
|
+
return {
|
|
13
|
+
id: groupId,
|
|
14
|
+
parentId: parentId,
|
|
15
|
+
groupName: {
|
|
16
|
+
parentId: groupId,
|
|
17
|
+
id: (0, _uuid.v4)(),
|
|
18
|
+
open: true,
|
|
19
|
+
type: 'BUTTON',
|
|
20
|
+
text: text,
|
|
21
|
+
content: {
|
|
22
|
+
url: '',
|
|
23
|
+
backgroundColor: ''
|
|
24
|
+
},
|
|
25
|
+
buttonText: {
|
|
26
|
+
sizeType: 'Customize font styles',
|
|
27
|
+
fontWeight: 600,
|
|
28
|
+
pcFontSize: 14,
|
|
29
|
+
fontStyle: 'normal',
|
|
30
|
+
color: '#232F46'
|
|
31
|
+
},
|
|
32
|
+
buttonBorder: {
|
|
33
|
+
open: false,
|
|
34
|
+
borderColor: '',
|
|
35
|
+
borderRadius: 6
|
|
36
|
+
},
|
|
37
|
+
spacing: {
|
|
38
|
+
pc: {
|
|
39
|
+
paddingTop: 0,
|
|
40
|
+
paddingBottom: 0,
|
|
41
|
+
paddingLeft: 0,
|
|
42
|
+
paddingRight: 0
|
|
43
|
+
},
|
|
44
|
+
mobile: {
|
|
45
|
+
paddingTop: 0,
|
|
46
|
+
paddingBottom: 0,
|
|
47
|
+
paddingLeft: 0,
|
|
48
|
+
paddingRight: 0
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
buttonIcon: {
|
|
52
|
+
iconUrl: '',
|
|
53
|
+
layout: 'right'
|
|
54
|
+
},
|
|
55
|
+
hover: null
|
|
56
|
+
},
|
|
57
|
+
image: {
|
|
58
|
+
parentId: groupId,
|
|
59
|
+
id: (0, _uuid.v4)(),
|
|
60
|
+
open: true,
|
|
61
|
+
type: 'IMAGE',
|
|
62
|
+
content: {
|
|
63
|
+
h5Name: '',
|
|
64
|
+
pcName: '',
|
|
65
|
+
h5ImgSrc: '',
|
|
66
|
+
pcImgSrc: '',
|
|
67
|
+
clickUrl: ''
|
|
68
|
+
},
|
|
69
|
+
hover: {
|
|
70
|
+
open: false,
|
|
71
|
+
backgroundType: 'enlarge',
|
|
72
|
+
magnification: 1.5,
|
|
73
|
+
pcImgHoverUrl: '',
|
|
74
|
+
h5ImgHoverUrl: ''
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
title: {
|
|
78
|
+
parentId: groupId,
|
|
79
|
+
id: (0, _uuid.v4)(),
|
|
80
|
+
open: true,
|
|
81
|
+
type: 'TEXT',
|
|
82
|
+
specialContent: [],
|
|
83
|
+
text: 'title',
|
|
84
|
+
content: {
|
|
85
|
+
sizeType: 'Customize font styles',
|
|
86
|
+
fontWeight: 700,
|
|
87
|
+
pcFontSize: 29,
|
|
88
|
+
color: '#232F46',
|
|
89
|
+
textAlign: 'center'
|
|
90
|
+
},
|
|
91
|
+
underline: {
|
|
92
|
+
open: false,
|
|
93
|
+
textDecorationColor: '',
|
|
94
|
+
textDecorationStyle: 'solid'
|
|
95
|
+
},
|
|
96
|
+
vertical: {}
|
|
97
|
+
},
|
|
98
|
+
text: {
|
|
99
|
+
parentId: groupId,
|
|
100
|
+
id: (0, _uuid.v4)(),
|
|
101
|
+
open: true,
|
|
102
|
+
type: 'TEXT',
|
|
103
|
+
specialContent: [],
|
|
104
|
+
text: 'text',
|
|
105
|
+
content: {
|
|
106
|
+
sizeType: 'Customize font styles',
|
|
107
|
+
fontWeight: 600,
|
|
108
|
+
pcFontSize: 14,
|
|
109
|
+
color: '#232F46',
|
|
110
|
+
textAlign: 'center'
|
|
111
|
+
},
|
|
112
|
+
underline: {
|
|
113
|
+
open: false,
|
|
114
|
+
textDecorationColor: '',
|
|
115
|
+
textDecorationStyle: 'solid'
|
|
116
|
+
},
|
|
117
|
+
vertical: {}
|
|
118
|
+
},
|
|
119
|
+
button: {
|
|
120
|
+
parentId: groupId,
|
|
121
|
+
id: (0, _uuid.v4)(),
|
|
122
|
+
open: true,
|
|
123
|
+
type: 'BUTTON',
|
|
124
|
+
text: 'Button',
|
|
125
|
+
content: {
|
|
126
|
+
url: '',
|
|
127
|
+
backgroundColor: '#232F46'
|
|
128
|
+
},
|
|
129
|
+
buttonText: {
|
|
130
|
+
sizeType: 'Customize font styles',
|
|
131
|
+
fontWeight: 600,
|
|
132
|
+
pcFontSize: 14,
|
|
133
|
+
fontStyle: 'normal',
|
|
134
|
+
color: '#fff'
|
|
135
|
+
},
|
|
136
|
+
buttonBorder: {
|
|
137
|
+
open: true,
|
|
138
|
+
borderColor: '',
|
|
139
|
+
borderRadius: 100
|
|
140
|
+
},
|
|
141
|
+
spacing: {
|
|
142
|
+
pc: {
|
|
143
|
+
paddingTop: 8,
|
|
144
|
+
paddingBottom: 8,
|
|
145
|
+
paddingLeft: 12,
|
|
146
|
+
paddingRight: 12
|
|
147
|
+
},
|
|
148
|
+
mobile: {
|
|
149
|
+
paddingTop: 0,
|
|
150
|
+
paddingBottom: 0,
|
|
151
|
+
paddingLeft: 0,
|
|
152
|
+
paddingRight: 0
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
buttonIcon: {
|
|
156
|
+
iconUrl: '',
|
|
157
|
+
layout: 'right'
|
|
158
|
+
},
|
|
159
|
+
hover: null
|
|
160
|
+
},
|
|
161
|
+
secondaryButton: {
|
|
162
|
+
parentId: groupId,
|
|
163
|
+
id: (0, _uuid.v4)(),
|
|
164
|
+
open: true,
|
|
165
|
+
type: 'BUTTON',
|
|
166
|
+
text: 'Secondary Button',
|
|
167
|
+
content: {
|
|
168
|
+
url: '',
|
|
169
|
+
backgroundColor: ''
|
|
170
|
+
},
|
|
171
|
+
buttonText: {
|
|
172
|
+
sizeType: 'Customize font styles',
|
|
173
|
+
fontWeight: 600,
|
|
174
|
+
pcFontSize: 14,
|
|
175
|
+
fontStyle: 'normal',
|
|
176
|
+
color: '#232F46'
|
|
177
|
+
},
|
|
178
|
+
buttonBorder: {
|
|
179
|
+
open: true,
|
|
180
|
+
borderColor: '',
|
|
181
|
+
borderRadius: 100
|
|
182
|
+
},
|
|
183
|
+
spacing: {
|
|
184
|
+
pc: {
|
|
185
|
+
paddingTop: 8,
|
|
186
|
+
paddingBottom: 8,
|
|
187
|
+
paddingLeft: 0,
|
|
188
|
+
paddingRight: 0
|
|
189
|
+
},
|
|
190
|
+
mobile: {
|
|
191
|
+
paddingTop: 0,
|
|
192
|
+
paddingBottom: 0,
|
|
193
|
+
paddingLeft: 0,
|
|
194
|
+
paddingRight: 0
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
buttonIcon: {
|
|
198
|
+
iconUrl: '',
|
|
199
|
+
layout: 'right'
|
|
200
|
+
},
|
|
201
|
+
hover: null
|
|
202
|
+
},
|
|
203
|
+
hover: {
|
|
204
|
+
open: true,
|
|
205
|
+
groupName: {
|
|
206
|
+
parentId: groupId,
|
|
207
|
+
id: (0, _uuid.v4)(),
|
|
208
|
+
open: true,
|
|
209
|
+
type: 'BUTTON',
|
|
210
|
+
text: text,
|
|
211
|
+
content: {
|
|
212
|
+
url: '',
|
|
213
|
+
backgroundColor: ''
|
|
214
|
+
},
|
|
215
|
+
buttonText: {
|
|
216
|
+
sizeType: 'Customize font styles',
|
|
217
|
+
fontWeight: 700,
|
|
218
|
+
pcFontSize: 14,
|
|
219
|
+
fontStyle: 'normal',
|
|
220
|
+
color: '#232F46'
|
|
221
|
+
},
|
|
222
|
+
buttonBorder: {
|
|
223
|
+
open: false,
|
|
224
|
+
borderColor: '',
|
|
225
|
+
borderRadius: 6
|
|
226
|
+
},
|
|
227
|
+
spacing: {
|
|
228
|
+
pc: {
|
|
229
|
+
paddingTop: 0,
|
|
230
|
+
paddingBottom: 0,
|
|
231
|
+
paddingLeft: 0,
|
|
232
|
+
paddingRight: 0
|
|
233
|
+
},
|
|
234
|
+
mobile: {
|
|
235
|
+
paddingTop: 0,
|
|
236
|
+
paddingBottom: 0,
|
|
237
|
+
paddingLeft: 0,
|
|
238
|
+
paddingRight: 0
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
buttonIcon: {
|
|
242
|
+
iconUrl: '',
|
|
243
|
+
layout: 'right'
|
|
244
|
+
},
|
|
245
|
+
hover: null
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
exports.groupSourceJSON = groupSourceJSON;
|
|
252
|
+
|
|
253
|
+
var getDefaultJSON = function getDefaultJSON() {
|
|
254
|
+
var groupId = (0, _uuid.v4)();
|
|
255
|
+
return {
|
|
256
|
+
id: groupId,
|
|
257
|
+
type: 'GROUPED_CAROUSEL',
|
|
258
|
+
title: {
|
|
259
|
+
headline: {
|
|
260
|
+
id: (0, _uuid.v4)(),
|
|
261
|
+
open: true,
|
|
262
|
+
type: 'TEXT',
|
|
263
|
+
specialContent: [],
|
|
264
|
+
text: 'Headline',
|
|
265
|
+
content: {
|
|
266
|
+
sizeType: 'Customize font styles',
|
|
267
|
+
fontWeight: 700,
|
|
268
|
+
pcFontSize: 29,
|
|
269
|
+
color: '#232F46',
|
|
270
|
+
textAlign: 'center'
|
|
271
|
+
},
|
|
272
|
+
underline: {
|
|
273
|
+
open: false,
|
|
274
|
+
textDecorationColor: '',
|
|
275
|
+
textDecorationStyle: 'solid'
|
|
276
|
+
},
|
|
277
|
+
vertical: {
|
|
278
|
+
open: false,
|
|
279
|
+
lineHeight: 18
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
groupSource: [groupSourceJSON(groupId, 'Group Name'), groupSourceJSON(groupId, 'Group Name'), groupSourceJSON(groupId, 'Group Name')],
|
|
284
|
+
spacing: {
|
|
285
|
+
pc: {
|
|
286
|
+
paddingTop: 0,
|
|
287
|
+
paddingBottom: 0,
|
|
288
|
+
paddingLeft: 0,
|
|
289
|
+
paddingRight: 0,
|
|
290
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
291
|
+
},
|
|
292
|
+
mobile: {
|
|
293
|
+
paddingTop: 0,
|
|
294
|
+
paddingBottom: 0,
|
|
295
|
+
paddingLeft: 0,
|
|
296
|
+
paddingRight: 0,
|
|
297
|
+
marginBottom: window.magicDesign.compSpacing
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
customize: {
|
|
301
|
+
layout: 'layout1'
|
|
302
|
+
},
|
|
303
|
+
background: {
|
|
304
|
+
opacity: 100,
|
|
305
|
+
color: '#FFFFFF',
|
|
306
|
+
image: '',
|
|
307
|
+
bgType: 'color'
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
exports.getDefaultJSON = getDefaultJSON;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _pc = _interopRequireDefault(require("./pc"));
|
|
11
|
+
|
|
12
|
+
var _defaultJSON = require("./defaultJSON");
|
|
13
|
+
|
|
14
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
15
|
+
|
|
16
|
+
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
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); }
|
|
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 __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
53
|
+
var c = arguments.length,
|
|
54
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
55
|
+
d;
|
|
56
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
57
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
58
|
+
}
|
|
59
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
var GroupedCarousel =
|
|
63
|
+
/** @class */
|
|
64
|
+
function (_super) {
|
|
65
|
+
__extends(GroupedCarousel, _super);
|
|
66
|
+
|
|
67
|
+
function GroupedCarousel() {
|
|
68
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
GroupedCarousel.prototype.render = function () {
|
|
72
|
+
var nodeData = this.props.nodeData;
|
|
73
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
|
|
74
|
+
panelProps: nodeData
|
|
75
|
+
}) : null);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
GroupedCarousel.defaultProps = {};
|
|
79
|
+
GroupedCarousel.type = 'GROUPED_CAROUSEL';
|
|
80
|
+
GroupedCarousel.getDefaultJSON = _defaultJSON.getDefaultJSON;
|
|
81
|
+
GroupedCarousel = __decorate([_compositeDecorator["default"]], GroupedCarousel);
|
|
82
|
+
return GroupedCarousel;
|
|
83
|
+
}(_react.Component);
|
|
84
|
+
|
|
85
|
+
var _default = GroupedCarousel;
|
|
86
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,189 @@
|
|
|
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("antd4");
|
|
13
|
+
|
|
14
|
+
var _components = require("../../../../../meta-comp/components");
|
|
15
|
+
|
|
16
|
+
var _mobx = require("../../../../../mobx");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
21
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
22
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
23
|
+
__proto__: []
|
|
24
|
+
} instanceof Array && function (d, b) {
|
|
25
|
+
d.__proto__ = b;
|
|
26
|
+
} || function (d, b) {
|
|
27
|
+
for (var p in b) {
|
|
28
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
return _extendStatics(d, b);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return function (d, b) {
|
|
36
|
+
_extendStatics(d, b);
|
|
37
|
+
|
|
38
|
+
function __() {
|
|
39
|
+
this.constructor = d;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43
|
+
};
|
|
44
|
+
}();
|
|
45
|
+
|
|
46
|
+
var GroupedCarouselPc =
|
|
47
|
+
/** @class */
|
|
48
|
+
function (_super) {
|
|
49
|
+
__extends(GroupedCarouselPc, _super);
|
|
50
|
+
|
|
51
|
+
function GroupedCarouselPc() {
|
|
52
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53
|
+
|
|
54
|
+
_this.state = {
|
|
55
|
+
tabIndex: 0
|
|
56
|
+
};
|
|
57
|
+
_this.carouselImgRef = /*#__PURE__*/_react["default"].createRef();
|
|
58
|
+
_this.carouselTextRef = /*#__PURE__*/_react["default"].createRef();
|
|
59
|
+
_this.destroy = null;
|
|
60
|
+
|
|
61
|
+
_this.bannerGoto = function (groupSource) {
|
|
62
|
+
var nextIndex = groupSource.findIndex(function (item) {
|
|
63
|
+
return item.id === _mobx.store.clickedGroup;
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
if (nextIndex != -1 && nextIndex != _this.state.tabIndex) {
|
|
67
|
+
_this.carouselImgRef.current.goTo(nextIndex);
|
|
68
|
+
|
|
69
|
+
_this.carouselTextRef.current.goTo(nextIndex);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
_this.onTabClick = function (e, index) {
|
|
74
|
+
var tabIndex = _this.state.tabIndex;
|
|
75
|
+
if (tabIndex === index) return;
|
|
76
|
+
|
|
77
|
+
_this.setState({
|
|
78
|
+
tabIndex: index
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
_this.carouselImgRef.current.goTo(index);
|
|
82
|
+
|
|
83
|
+
setTimeout(function () {
|
|
84
|
+
_this.carouselTextRef.current.goTo(index);
|
|
85
|
+
}, 300);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
return _this;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
GroupedCarouselPc.prototype.componentDidMount = function () {
|
|
92
|
+
var _this = this;
|
|
93
|
+
|
|
94
|
+
this.destroy = (0, _mobx.autorun)(function () {
|
|
95
|
+
_this.bannerGoto(_this.props.panelProps.groupSource);
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
GroupedCarouselPc.prototype.componentWillReceiveProps = function (nextProps) {
|
|
100
|
+
this.bannerGoto(nextProps.panelProps.groupSource);
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
GroupedCarouselPc.prototype.componentWillUnmount = function () {
|
|
104
|
+
this.destroy();
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
GroupedCarouselPc.prototype.render = function () {
|
|
108
|
+
var _this = this;
|
|
109
|
+
|
|
110
|
+
var panelProps = this.props.panelProps;
|
|
111
|
+
var groupSource = panelProps.groupSource;
|
|
112
|
+
var tabIndex = this.state.tabIndex; // const isDivide = groupSource.length <= 3;
|
|
113
|
+
|
|
114
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
|
+
className: "m-grouped-carousel-pc"
|
|
116
|
+
}, panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
117
|
+
className: "title",
|
|
118
|
+
data: panelProps.title.headline
|
|
119
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
+
className: "tab-select-wrap"
|
|
121
|
+
}, groupSource.map(function (tab, index) {
|
|
122
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
|
+
key: tab.id,
|
|
124
|
+
className: "tab-title",
|
|
125
|
+
onClick: function onClick(e) {
|
|
126
|
+
_this.onTabClick(e, index);
|
|
127
|
+
}
|
|
128
|
+
}, tab.groupName.open && (tabIndex === index ? /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
129
|
+
data: tab.hover.groupName,
|
|
130
|
+
iconHeight: 46
|
|
131
|
+
}) : /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
132
|
+
data: tab.groupName,
|
|
133
|
+
iconHeight: 46
|
|
134
|
+
})));
|
|
135
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
136
|
+
className: "tab-content"
|
|
137
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
|
|
138
|
+
ref: this.carouselImgRef,
|
|
139
|
+
afterChange: function afterChange(n) {
|
|
140
|
+
return _this.setState({
|
|
141
|
+
tabIndex: n
|
|
142
|
+
});
|
|
143
|
+
},
|
|
144
|
+
autoplay: false,
|
|
145
|
+
autoplaySpeed: 3000,
|
|
146
|
+
className: "carousel-img",
|
|
147
|
+
dots: false
|
|
148
|
+
}, groupSource.map(function (m) {
|
|
149
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
150
|
+
key: m.image.id
|
|
151
|
+
}, m.image.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
152
|
+
className: "bgImg",
|
|
153
|
+
data: m.image,
|
|
154
|
+
imgCover: true,
|
|
155
|
+
isBackground: true
|
|
156
|
+
}));
|
|
157
|
+
})), /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
|
|
158
|
+
ref: this.carouselTextRef,
|
|
159
|
+
autoplay: false,
|
|
160
|
+
autoplaySpeed: 1000,
|
|
161
|
+
dots: false
|
|
162
|
+
}, groupSource.map(function (m) {
|
|
163
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
164
|
+
key: m.id,
|
|
165
|
+
className: "text-wrap"
|
|
166
|
+
}, m.title.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
167
|
+
className: "title",
|
|
168
|
+
data: m.title
|
|
169
|
+
}), m.text.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
170
|
+
className: "text",
|
|
171
|
+
data: m.text
|
|
172
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
173
|
+
className: "btn-wrap"
|
|
174
|
+
}, m.secondaryButton.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
175
|
+
data: m.secondaryButton
|
|
176
|
+
}), m.button.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
177
|
+
data: m.button
|
|
178
|
+
})));
|
|
179
|
+
}))));
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
GroupedCarouselPc.defaultProps = {
|
|
183
|
+
panelProps: {}
|
|
184
|
+
};
|
|
185
|
+
return GroupedCarouselPc;
|
|
186
|
+
}(_react["default"].Component);
|
|
187
|
+
|
|
188
|
+
var _default = GroupedCarouselPc;
|
|
189
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
.m-grouped-carousel-pc {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
position: relative;
|
|
5
|
+
padding: 48px 0;
|
|
6
|
+
|
|
7
|
+
.tab-select-wrap {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
height: 46px;
|
|
12
|
+
overflow: auto;
|
|
13
|
+
position: relative;
|
|
14
|
+
margin-top: 12px;
|
|
15
|
+
margin-bottom: 12px;
|
|
16
|
+
z-index: 2;
|
|
17
|
+
|
|
18
|
+
.tab-title {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
text-align: center;
|
|
22
|
+
padding: 0 24px;
|
|
23
|
+
width: fit-content;
|
|
24
|
+
height: 100%;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tab-content {
|
|
33
|
+
margin-top: 360px;
|
|
34
|
+
|
|
35
|
+
.carousel-img {
|
|
36
|
+
position: absolute;
|
|
37
|
+
top: 0;
|
|
38
|
+
bottom: 0;
|
|
39
|
+
left: 0;
|
|
40
|
+
right: 0;
|
|
41
|
+
|
|
42
|
+
.bgImg {
|
|
43
|
+
height: 680px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.text-wrap {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
align-items: center;
|
|
52
|
+
|
|
53
|
+
.text {
|
|
54
|
+
margin-bottom: 12px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.btn-wrap {
|
|
58
|
+
display: flex;
|
|
59
|
+
gap: 24px;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
z-index: 2;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|