@fonixtree/magic-design 0.0.100 → 0.0.102
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 -28
- package/es/assets/fonts/magic-box-iconfont.css.bak +12 -28
- 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/imageGalleryLayout1.png +0 -0
- package/es/assets/less/button.less +0 -23
- package/es/assets/less/common.less +2 -2
- package/es/assets/less/index.less +1 -2
- 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/FontStyles/index.less +1 -1
- package/es/common/GroupList/index.js +3 -4
- 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 +2 -3
- package/es/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/es/common/LinkModal/FilteredProductModal/index.less +3 -2
- 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 -16
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/es/composite-comp/bol/components/Banner/mobile/index.js +11 -48
- package/es/composite-comp/bol/components/Banner/pc/index.js +20 -50
- 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 +9 -9
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +20 -16
- package/es/composite-comp/bol/components/Carousel/index.js +6 -1
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +38 -58
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +9 -22
- package/es/composite-comp/bol/components/Carousel/pc/index.js +34 -67
- package/es/composite-comp/bol/components/Carousel/pc/index.less +16 -29
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +10 -19
- package/es/composite-comp/bol/components/ImageGallery/index.js +1 -5
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +15 -77
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +66 -15
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +179 -57
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +5 -3
- 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/ImageText/pc/index.less +0 -2
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +3 -3
- package/es/composite-comp/bol/components/Newsletter/index.js +8 -16
- package/es/composite-comp/bol/components/Newsletter/index.less +1 -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 +7 -5
- package/es/composite-comp/bol/components/Text/index.js +8 -4
- package/es/composite-comp/bol/components/Text/index.less +3 -3
- 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/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +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 +1 -1
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +2 -4
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +4 -20
- 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/ImageGallerySecondConfig/index.js +17 -6
- 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 +9 -4
- package/es/composite-comp/common/components/ProductItem/index.js +32 -39
- package/es/composite-comp/common/components/ProductItem/index.less +16 -18
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +25 -52
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +29 -40
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +8 -67
- package/es/composite-comp/dito/components/FlashDeal/index.js +1 -5
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +38 -24
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -1
- 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 +15 -33
- package/es/composite-comp/dito/components/Recommend/index.js +6 -5
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +72 -93
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +2 -11
- package/es/composite-comp/dito/components/Recommend/pc/index.js +53 -184
- package/es/composite-comp/dito/components/Recommend/pc/index.less +12 -56
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +20 -49
- package/es/composite-comp/dito/components/SearchBar/index.js +2 -7
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +26 -31
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +3 -15
- 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 +2 -11
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +1 -3
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -18
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +51 -16
- 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 -15
- package/es/constants/index.js +2 -21
- package/es/constants/layout.js +14 -35
- package/es/core/Designer/CompListPanel/CompCard/index.js +1 -3
- package/es/core/Designer/CompListPanel/index.js +36 -11
- package/es/core/Designer/ConfigPanel/index.js +23 -73
- 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 +4 -42
- package/es/core/Designer/PageCompList/index.less +10 -10
- package/es/core/Designer/QuickMenuBar/index.js +4 -38
- package/es/core/Designer/QuickMenuBar/index.less +0 -34
- package/es/core/Designer/ViewArea/index.js +8 -48
- package/es/core/Designer/ViewArea/index.less +4 -40
- package/es/core/Designer/index.js +41 -93
- package/es/core/Renderer/index.js +5 -23
- package/es/decorator/compositeDecorator.js +17 -147
- package/es/decorator/index.js +0 -8
- package/es/decorator/metaDecorator.js +8 -41
- package/es/locale/en/en.json +3 -21
- package/es/locale/es/es.json +1 -19
- package/es/locale/id/id.json +3 -21
- package/es/meta-comp/components/Button/index.js +33 -14
- package/es/meta-comp/components/Button/index.less +2 -3
- package/es/meta-comp/components/Image/index.js +8 -47
- package/es/meta-comp/components/Image/index.less +3 -7
- package/es/meta-comp/components/Text/index.js +11 -38
- package/es/meta-comp/config-panels/BaseConfig.js +10 -8
- package/es/meta-comp/config-panels/ButtonConfig/index.js +3 -2
- package/es/meta-comp/config-panels/ImageConfig/index.js +4 -17
- package/es/meta-comp/config-panels/TextConfig/index.js +7 -16
- package/es/mobx/Store.js +10 -9
- package/es/mobx/index.js +3 -9
- package/es/utils/businessUtil.js +3 -3
- package/es/utils/coreUtil.js +2 -15
- package/lib/assets/fonts/magic-box-iconfont.css +12 -28
- package/lib/assets/fonts/magic-box-iconfont.css.bak +12 -28
- 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/imageGalleryLayout1.png +0 -0
- package/lib/assets/less/button.less +0 -23
- package/lib/assets/less/common.less +2 -2
- package/lib/assets/less/index.less +1 -2
- 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/FontStyles/index.less +1 -1
- package/lib/common/GroupList/index.js +3 -4
- 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 +2 -3
- package/lib/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/lib/common/LinkModal/FilteredProductModal/index.less +3 -2
- 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 -16
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +11 -48
- package/lib/composite-comp/bol/components/Banner/pc/index.js +20 -50
- 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 +9 -9
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +20 -16
- package/lib/composite-comp/bol/components/Carousel/index.js +6 -1
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +38 -58
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +9 -22
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +34 -67
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +16 -29
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +10 -19
- package/lib/composite-comp/bol/components/ImageGallery/index.js +1 -5
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +15 -77
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +66 -15
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +179 -57
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +5 -3
- 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/ImageText/pc/index.less +0 -2
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +3 -3
- package/lib/composite-comp/bol/components/Newsletter/index.js +8 -16
- package/lib/composite-comp/bol/components/Newsletter/index.less +1 -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 +7 -5
- package/lib/composite-comp/bol/components/Text/index.js +8 -4
- package/lib/composite-comp/bol/components/Text/index.less +3 -3
- 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/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +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 +1 -1
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +2 -4
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +4 -20
- 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/ImageGallerySecondConfig/index.js +17 -6
- 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 +9 -4
- package/lib/composite-comp/common/components/ProductItem/index.js +32 -39
- package/lib/composite-comp/common/components/ProductItem/index.less +16 -18
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +25 -52
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +29 -40
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +8 -67
- package/lib/composite-comp/dito/components/FlashDeal/index.js +1 -5
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +38 -24
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -1
- 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 +15 -33
- package/lib/composite-comp/dito/components/Recommend/index.js +6 -5
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +72 -93
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +2 -11
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +53 -184
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +12 -56
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +20 -49
- package/lib/composite-comp/dito/components/SearchBar/index.js +2 -7
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +26 -31
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +3 -15
- 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 +2 -11
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +1 -3
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -18
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +51 -16
- 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 -15
- package/lib/constants/index.js +2 -21
- package/lib/constants/layout.js +14 -35
- package/lib/core/Designer/CompListPanel/CompCard/index.js +1 -3
- package/lib/core/Designer/CompListPanel/index.js +36 -11
- package/lib/core/Designer/ConfigPanel/index.js +23 -73
- 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 +4 -42
- package/lib/core/Designer/PageCompList/index.less +10 -10
- package/lib/core/Designer/QuickMenuBar/index.js +4 -38
- package/lib/core/Designer/QuickMenuBar/index.less +0 -34
- package/lib/core/Designer/ViewArea/index.js +8 -48
- package/lib/core/Designer/ViewArea/index.less +4 -40
- package/lib/core/Designer/index.js +41 -93
- package/lib/core/Renderer/index.js +5 -23
- package/lib/decorator/compositeDecorator.js +17 -147
- package/lib/decorator/index.js +0 -8
- package/lib/decorator/metaDecorator.js +8 -41
- package/lib/locale/en/en.json +3 -21
- package/lib/locale/es/es.json +1 -19
- package/lib/locale/id/id.json +3 -21
- package/lib/meta-comp/components/Button/index.js +33 -14
- package/lib/meta-comp/components/Button/index.less +2 -3
- package/lib/meta-comp/components/Image/index.js +8 -47
- package/lib/meta-comp/components/Image/index.less +3 -7
- package/lib/meta-comp/components/Text/index.js +11 -38
- package/lib/meta-comp/config-panels/BaseConfig.js +10 -8
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +3 -2
- package/lib/meta-comp/config-panels/ImageConfig/index.js +4 -17
- package/lib/meta-comp/config-panels/TextConfig/index.js +7 -16
- package/lib/mobx/Store.js +10 -9
- package/lib/mobx/index.js +3 -9
- package/lib/utils/businessUtil.js +3 -3
- package/lib/utils/coreUtil.js +2 -15
- package/package.json +3 -5
- package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/es/assets/less/datepicker.less +0 -11
- 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/common/SystemNotification/Confirm/index.js +0 -263
- package/es/common/SystemNotification/Confirm/index.less +0 -33
- package/es/common/SystemNotification/index.js +0 -115
- package/es/composite-comp/bol/components/Carousel/imgs/pcDefImg1.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg1.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg2.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg3.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg4.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg5.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg1.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg2.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg3.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg4.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg5.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg6.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +0 -166
- package/es/composite-comp/bol/components/ImageGallery/pc/index.less +0 -23
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -143
- 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 -143
- 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/mobile/imgs/defImg.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg.png +0 -0
- 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 -566
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +0 -122
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -136
- 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 -482
- package/es/composite-comp/dito/components/PcNavigation/pc/index.less +0 -107
- package/es/composite-comp/dito/components/SearchBar/imgs/xt-logo.png +0 -0
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -149
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +0 -60
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -129
- 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 -194
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +0 -140
- package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
- package/es/core/Designer/AppointmentModal/index.js +0 -87
- package/es/core/Designer/AppointmentModal/index.less +0 -23
- 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/components/Button/editable.js +0 -114
- package/es/meta-comp/components/Button/editable.less +0 -6
- package/es/meta-comp/components/Image/image/h5DefImg.png +0 -0
- package/es/meta-comp/components/Image/image/h5Img.png +0 -0
- package/es/meta-comp/components/Image/image/pcDefImg.png +0 -0
- package/es/meta-comp/components/Image/image/pcImg.png +0 -0
- 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/es/mobx/Frame.js +0 -64
- package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/lib/assets/less/datepicker.less +0 -11
- 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/common/SystemNotification/Confirm/index.js +0 -263
- package/lib/common/SystemNotification/Confirm/index.less +0 -33
- package/lib/common/SystemNotification/index.js +0 -115
- package/lib/composite-comp/bol/components/Carousel/imgs/pcDefImg1.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg1.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg2.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg3.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg4.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg5.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg1.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg2.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg3.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg4.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg5.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg6.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +0 -166
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.less +0 -23
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -143
- 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 -143
- 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/mobile/imgs/defImg.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg.png +0 -0
- 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 -566
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +0 -122
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -136
- 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 -482
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +0 -107
- package/lib/composite-comp/dito/components/SearchBar/imgs/xt-logo.png +0 -0
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -149
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +0 -60
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -129
- 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 -194
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +0 -140
- package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
- package/lib/core/Designer/AppointmentModal/index.js +0 -87
- package/lib/core/Designer/AppointmentModal/index.less +0 -23
- 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/components/Button/editable.js +0 -114
- package/lib/meta-comp/components/Button/editable.less +0 -6
- package/lib/meta-comp/components/Image/image/h5DefImg.png +0 -0
- package/lib/meta-comp/components/Image/image/h5Img.png +0 -0
- package/lib/meta-comp/components/Image/image/pcDefImg.png +0 -0
- package/lib/meta-comp/components/Image/image/pcImg.png +0 -0
- 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
- package/lib/mobx/Frame.js +0 -64
|
@@ -13,10 +13,6 @@ require("./index.less");
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
var _lodash = require("lodash");
|
|
17
|
-
|
|
18
|
-
var _lodash2 = _interopRequireDefault(require("lodash.throttle"));
|
|
19
|
-
|
|
20
16
|
var _mobx = require("../../../../../mobx");
|
|
21
17
|
|
|
22
18
|
var _ProductItem = _interopRequireDefault(require("../../../../common/components/ProductItem"));
|
|
@@ -29,8 +25,6 @@ var _commonUtil = require("../../../../../utils/commonUtil");
|
|
|
29
25
|
|
|
30
26
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
31
27
|
|
|
32
|
-
var _Iconfont = _interopRequireDefault(require("../../../../../common/Iconfont"));
|
|
33
|
-
|
|
34
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
29
|
|
|
36
30
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -234,24 +228,16 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
|
234
228
|
|
|
235
229
|
var LAYOUT_IMAGE_SIZE = {
|
|
236
230
|
layout1: {
|
|
237
|
-
w:
|
|
238
|
-
h:
|
|
231
|
+
w: 180,
|
|
232
|
+
h: 180
|
|
239
233
|
},
|
|
240
|
-
|
|
234
|
+
layout2: {
|
|
241
235
|
w: 160,
|
|
242
236
|
h: 160
|
|
243
237
|
},
|
|
244
|
-
|
|
245
|
-
w:
|
|
246
|
-
h:
|
|
247
|
-
},
|
|
248
|
-
layout3_col6: {
|
|
249
|
-
w: 160,
|
|
250
|
-
h: 160
|
|
251
|
-
},
|
|
252
|
-
layout3_col5: {
|
|
253
|
-
w: 200,
|
|
254
|
-
h: 200
|
|
238
|
+
layout3: {
|
|
239
|
+
w: 180,
|
|
240
|
+
h: 180
|
|
255
241
|
}
|
|
256
242
|
};
|
|
257
243
|
|
|
@@ -265,42 +251,17 @@ function (_super) {
|
|
|
265
251
|
|
|
266
252
|
_this.preData = {};
|
|
267
253
|
_this.preLayout = '';
|
|
268
|
-
_this.preContent = '';
|
|
269
|
-
_this.preSpacing = '';
|
|
270
254
|
_this._cache = (0, _coreUtil.isDesignMode)() ? {} : (0, _commonUtil.ensure)(function () {
|
|
271
255
|
return (0, _storeUtil.getMagicStore)("recommend_" + _this.props.panelProps.id);
|
|
272
256
|
}, {});
|
|
273
|
-
_this.scrollRef = /*#__PURE__*/_react["default"].createRef();
|
|
274
257
|
_this.state = __assign({
|
|
275
|
-
contentWidth: 0,
|
|
276
258
|
tabIndex: 0,
|
|
277
259
|
tabLeft: 0,
|
|
278
260
|
tabWidth: 0,
|
|
279
261
|
groupSource: [],
|
|
280
|
-
hideTabs: false
|
|
281
|
-
scrollToLeftDisabled: true,
|
|
282
|
-
scrollToRightDisabled: true
|
|
262
|
+
hideTabs: false
|
|
283
263
|
}, _this._cache);
|
|
284
264
|
|
|
285
|
-
_this.listenWidth = function () {
|
|
286
|
-
setTimeout(function () {
|
|
287
|
-
var renderContainer = document.querySelector(".macyContainer_" + _this.props.panelProps.id);
|
|
288
|
-
if (renderContainer) _this.setState({
|
|
289
|
-
contentWidth: renderContainer.offsetWidth
|
|
290
|
-
});
|
|
291
|
-
});
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
_this.setScrollDisabled = function (scrollDom) {
|
|
295
|
-
var scrollToLeftDisabled = scrollDom.scrollLeft === 0;
|
|
296
|
-
var scrollToRightDisabled = scrollDom.clientWidth + scrollDom.scrollLeft >= scrollDom.scrollWidth;
|
|
297
|
-
|
|
298
|
-
_this.setState({
|
|
299
|
-
scrollToLeftDisabled: scrollToLeftDisabled,
|
|
300
|
-
scrollToRightDisabled: scrollToRightDisabled
|
|
301
|
-
});
|
|
302
|
-
};
|
|
303
|
-
|
|
304
265
|
_this.initTab = function (index, hideTabs) {
|
|
305
266
|
var selectedTabDom = document.querySelector(".tab-select-wrap .tabTitle:nth-child(" + (index + 1) + ")");
|
|
306
267
|
var tabLeft = 0;
|
|
@@ -361,11 +322,8 @@ function (_super) {
|
|
|
361
322
|
_k.label = 1;
|
|
362
323
|
|
|
363
324
|
case 1:
|
|
364
|
-
_k.trys.push([1,
|
|
325
|
+
_k.trys.push([1, 7,, 8]);
|
|
365
326
|
|
|
366
|
-
if (!(groupSource.length > 0)) return [3
|
|
367
|
-
/*break*/
|
|
368
|
-
, 7];
|
|
369
327
|
if (!(sourceType === 'select')) return [3
|
|
370
328
|
/*break*/
|
|
371
329
|
, 3];
|
|
@@ -422,22 +380,13 @@ function (_super) {
|
|
|
422
380
|
, 8];
|
|
423
381
|
|
|
424
382
|
case 7:
|
|
425
|
-
newData = [];
|
|
426
|
-
_k.label = 8;
|
|
427
|
-
|
|
428
|
-
case 8:
|
|
429
|
-
return [3
|
|
430
|
-
/*break*/
|
|
431
|
-
, 10];
|
|
432
|
-
|
|
433
|
-
case 9:
|
|
434
383
|
e_1 = _k.sent();
|
|
435
384
|
newData = [];
|
|
436
385
|
return [3
|
|
437
386
|
/*break*/
|
|
438
|
-
,
|
|
387
|
+
, 8];
|
|
439
388
|
|
|
440
|
-
case
|
|
389
|
+
case 8:
|
|
441
390
|
if (!(0, _coreUtil.isDesignMode)()) {
|
|
442
391
|
_cache = (0, _storeUtil.getMagicStore)("recommend_" + recommendId);
|
|
443
392
|
(0, _storeUtil.setMagicStore)("recommend_" + recommendId, __assign(__assign({}, _cache), (_h = {}, _h["products" + index] = newData, _h.endTime = Date.now() + 3 * 60 * 1000, _h)));
|
|
@@ -458,8 +407,8 @@ function (_super) {
|
|
|
458
407
|
var customize = _this.props.panelProps.customize;
|
|
459
408
|
if (customize.layout.pcLayout !== 'layout1') return;
|
|
460
409
|
setTimeout(function () {
|
|
461
|
-
if (document.querySelector(
|
|
462
|
-
_this.getMacy(
|
|
410
|
+
if (document.querySelector('.macyContainer')) {
|
|
411
|
+
_this.getMacy('.macyContainer', customize.pcRowNum);
|
|
463
412
|
}
|
|
464
413
|
});
|
|
465
414
|
};
|
|
@@ -481,9 +430,28 @@ function (_super) {
|
|
|
481
430
|
}, true);
|
|
482
431
|
};
|
|
483
432
|
|
|
433
|
+
_this.getBackgroundStyle = function () {
|
|
434
|
+
var panelProps = _this.props.panelProps;
|
|
435
|
+
var bgStyle = {};
|
|
436
|
+
|
|
437
|
+
if (panelProps.background.bgType === 'color') {
|
|
438
|
+
bgStyle = {
|
|
439
|
+
backgroundColor: (0, _commonUtil.getColorRgba)(panelProps.background.color || '#fff', panelProps.background.opacity / 100 || 1)
|
|
440
|
+
};
|
|
441
|
+
} else {
|
|
442
|
+
bgStyle = {
|
|
443
|
+
background: "url(" + panelProps.background.image + ") no-repeat center",
|
|
444
|
+
backgroundSize: '100%'
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
return bgStyle;
|
|
449
|
+
};
|
|
450
|
+
|
|
484
451
|
_this.onTabClick = function (e, index) {
|
|
485
452
|
var tabIndex = _this.state.tabIndex;
|
|
486
|
-
if (tabIndex === index) return;
|
|
453
|
+
if (tabIndex === index) return;
|
|
454
|
+
e.currentTarget.scrollIntoView(false);
|
|
487
455
|
|
|
488
456
|
_this.setState({
|
|
489
457
|
tabIndex: index
|
|
@@ -494,34 +462,6 @@ function (_super) {
|
|
|
494
462
|
});
|
|
495
463
|
|
|
496
464
|
_this.getProductList(index);
|
|
497
|
-
|
|
498
|
-
setTimeout(function () {
|
|
499
|
-
var scrollDom = _this.scrollRef.current;
|
|
500
|
-
|
|
501
|
-
if (scrollDom) {
|
|
502
|
-
_this.setScrollDisabled(scrollDom);
|
|
503
|
-
|
|
504
|
-
scrollDom.onscroll = (0, _lodash2["default"])(function () {
|
|
505
|
-
_this.setScrollDisabled(scrollDom);
|
|
506
|
-
}, 500);
|
|
507
|
-
}
|
|
508
|
-
}, 0);
|
|
509
|
-
};
|
|
510
|
-
|
|
511
|
-
_this.scrollToRight = function () {
|
|
512
|
-
var scrollDom = _this.scrollRef.current;
|
|
513
|
-
|
|
514
|
-
if (scrollDom.clientWidth + scrollDom.scrollLeft < scrollDom.scrollWidth) {
|
|
515
|
-
scrollDom.scrollTo(scrollDom.scrollLeft + scrollDom.clientWidth, 0);
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
|
|
519
|
-
_this.scrollToLeft = function () {
|
|
520
|
-
var scrollDom = _this.scrollRef.current;
|
|
521
|
-
|
|
522
|
-
if (scrollDom.scrollLeft > 0) {
|
|
523
|
-
scrollDom.scrollTo(scrollDom.scrollLeft - scrollDom.clientWidth, 0);
|
|
524
|
-
}
|
|
525
465
|
};
|
|
526
466
|
|
|
527
467
|
return _this;
|
|
@@ -543,30 +483,13 @@ function (_super) {
|
|
|
543
483
|
|
|
544
484
|
_this.getProductList(0);
|
|
545
485
|
});
|
|
546
|
-
setTimeout(function () {
|
|
547
|
-
var scrollDom = _this.scrollRef.current;
|
|
548
|
-
|
|
549
|
-
if (scrollDom) {
|
|
550
|
-
_this.setScrollDisabled(scrollDom);
|
|
551
|
-
|
|
552
|
-
scrollDom.onscroll = (0, _lodash2["default"])(function () {
|
|
553
|
-
_this.setScrollDisabled(scrollDom);
|
|
554
|
-
}, 500);
|
|
555
|
-
}
|
|
556
|
-
}, 0);
|
|
557
|
-
this.listenWidth();
|
|
558
|
-
window.addEventListener('resize', (0, _lodash.debounce)(this.listenWidth));
|
|
559
|
-
};
|
|
560
|
-
|
|
561
|
-
RecommendMobile.prototype.componentWillUnmount = function () {
|
|
562
|
-
window.removeEventListener('resize', this.listenWidth);
|
|
563
486
|
};
|
|
564
487
|
|
|
565
|
-
RecommendMobile.prototype.componentWillReceiveProps = function (
|
|
488
|
+
RecommendMobile.prototype.componentWillReceiveProps = function () {
|
|
566
489
|
var _this = this;
|
|
567
490
|
|
|
568
491
|
var tabIndex = this.state.tabIndex;
|
|
569
|
-
var panelProps =
|
|
492
|
+
var panelProps = this.props.panelProps;
|
|
570
493
|
var source = [];
|
|
571
494
|
var hideTabs = false;
|
|
572
495
|
panelProps.groupSource.map(function (m) {
|
|
@@ -574,8 +497,8 @@ function (_super) {
|
|
|
574
497
|
if (show) source.push(m);
|
|
575
498
|
});
|
|
576
499
|
|
|
577
|
-
if (source.length === 0) {
|
|
578
|
-
|
|
500
|
+
if (source.length === 0 && panelProps.groupSource.length > 0) {
|
|
501
|
+
source.push(panelProps.groupSource[0]);
|
|
579
502
|
hideTabs = true;
|
|
580
503
|
}
|
|
581
504
|
|
|
@@ -601,37 +524,13 @@ function (_super) {
|
|
|
601
524
|
hideTabs: hideTabs
|
|
602
525
|
});
|
|
603
526
|
});
|
|
604
|
-
var curLayout =
|
|
527
|
+
var curLayout = panelProps.customize.layout.pcLayout;
|
|
605
528
|
|
|
606
529
|
if (curLayout !== this.preLayout) {
|
|
607
530
|
this.resetLayout();
|
|
608
|
-
setTimeout(function () {
|
|
609
|
-
var scrollDom = _this.scrollRef.current;
|
|
610
|
-
|
|
611
|
-
if (scrollDom) {
|
|
612
|
-
_this.setScrollDisabled(scrollDom);
|
|
613
|
-
|
|
614
|
-
scrollDom.onscroll = (0, _lodash2["default"])(function () {
|
|
615
|
-
_this.setScrollDisabled(scrollDom);
|
|
616
|
-
}, 500);
|
|
617
|
-
}
|
|
618
|
-
}, 0);
|
|
619
531
|
}
|
|
620
532
|
|
|
621
533
|
this.preLayout = curLayout;
|
|
622
|
-
var curContent = JSON.stringify(panelProps.content);
|
|
623
|
-
var curSpacing = JSON.stringify(panelProps.spacing);
|
|
624
|
-
|
|
625
|
-
if (curSpacing !== this.preSpacing) {
|
|
626
|
-
this.listenWidth();
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
if (curContent !== this.preContent || curSpacing !== this.preSpacing) {
|
|
630
|
-
this.resetLayout();
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
this.preContent = curContent;
|
|
634
|
-
this.preSpacing = curSpacing;
|
|
635
534
|
};
|
|
636
535
|
|
|
637
536
|
RecommendMobile.prototype.render = function () {
|
|
@@ -643,27 +542,25 @@ function (_super) {
|
|
|
643
542
|
tabLeft = _a.tabLeft,
|
|
644
543
|
tabWidth = _a.tabWidth,
|
|
645
544
|
groupSource = _a.groupSource,
|
|
646
|
-
hideTabs = _a.hideTabs
|
|
647
|
-
|
|
648
|
-
scrollToRightDisabled = _a.scrollToRightDisabled,
|
|
649
|
-
contentWidth = _a.contentWidth;
|
|
545
|
+
hideTabs = _a.hideTabs;
|
|
546
|
+
var bgStyle = this.getBackgroundStyle();
|
|
650
547
|
var products = this.state["products" + tabIndex] || [];
|
|
651
|
-
var isDivide = groupSource.length <=
|
|
548
|
+
var isDivide = groupSource.length <= 3;
|
|
652
549
|
var layout = panelProps.customize.layout.pcLayout;
|
|
653
550
|
|
|
654
551
|
var _seeAll = (0, _commonUtil.ensure)(function () {
|
|
655
552
|
return groupSource[tabIndex].seeAll;
|
|
656
553
|
}, '');
|
|
657
554
|
|
|
658
|
-
var imgWidth = (0, _commonUtil.ensure)(function () {
|
|
659
|
-
return layout === 'layout1' ? LAYOUT_IMAGE_SIZE[layout].w : LAYOUT_IMAGE_SIZE[layout + "_col" + panelProps.customize.pcRowNum].w;
|
|
660
|
-
}, 140);
|
|
661
555
|
var imgHeight = (0, _commonUtil.ensure)(function () {
|
|
662
|
-
return
|
|
556
|
+
return LAYOUT_IMAGE_SIZE[layout].h;
|
|
557
|
+
}, 140);
|
|
558
|
+
var imgWidth = (0, _commonUtil.ensure)(function () {
|
|
559
|
+
return LAYOUT_IMAGE_SIZE[layout].w;
|
|
663
560
|
}, 140);
|
|
664
|
-
if (layout === 'layout1' && contentWidth) imgHeight = (contentWidth - 12 * (panelProps.customize.pcRowNum - 1)) / panelProps.customize.pcRowNum;
|
|
665
561
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
666
|
-
className: "m-recommend-pc"
|
|
562
|
+
className: "m-recommend-pc",
|
|
563
|
+
style: bgStyle
|
|
667
564
|
}, !hideTabs && /*#__PURE__*/_react["default"].createElement("div", {
|
|
668
565
|
className: "tab-select-wrap"
|
|
669
566
|
}, groupSource.map(function (tab, index) {
|
|
@@ -701,23 +598,9 @@ function (_super) {
|
|
|
701
598
|
transform: "translateX(" + tabLeft + "px)",
|
|
702
599
|
background: this.getTabBarActiveColor(panelProps)
|
|
703
600
|
}
|
|
704
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
705
|
-
className: "tab-content"
|
|
706
|
-
}, layout !== 'layout1' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
707
|
-
className: "arrow-icon left",
|
|
708
|
-
onClick: function onClick() {
|
|
709
|
-
return _this.scrollToLeft();
|
|
710
|
-
}
|
|
711
|
-
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
712
|
-
color: scrollToLeftDisabled ? '#BDC1C8' : '#232F46',
|
|
713
|
-
size: 20,
|
|
714
|
-
type: "icon-outlined-left"
|
|
715
|
-
})), layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
716
|
-
className: "tab-list"
|
|
717
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
601
|
+
})), layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
718
602
|
key: "macyContainer",
|
|
719
|
-
|
|
720
|
-
className: "macyContainer macyContainer_" + panelProps.id
|
|
603
|
+
className: "macyContainer"
|
|
721
604
|
}, products.map(function (item) {
|
|
722
605
|
return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
|
|
723
606
|
key: item.productId,
|
|
@@ -726,24 +609,19 @@ function (_super) {
|
|
|
726
609
|
imgHeight: imgHeight,
|
|
727
610
|
imgWidth: imgWidth,
|
|
728
611
|
onItemClick: function onItemClick() {
|
|
729
|
-
return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId);
|
|
612
|
+
return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
|
|
730
613
|
},
|
|
731
614
|
panelProps: panelProps.content,
|
|
732
615
|
showProgress: false
|
|
733
616
|
});
|
|
734
617
|
})), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
735
|
-
className:
|
|
736
|
-
line: layout === 'layout1'
|
|
737
|
-
}),
|
|
618
|
+
className: "btnSeeAll",
|
|
738
619
|
data: _seeAll
|
|
739
620
|
})) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
740
621
|
key: "scrollContainer",
|
|
741
|
-
ref: this.scrollRef,
|
|
742
622
|
className: (0, _classnames["default"])('scrollContainer', {
|
|
743
623
|
pl_100: layout === 'layout3'
|
|
744
624
|
})
|
|
745
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
746
|
-
className: "scrollProductList"
|
|
747
625
|
}, products.map(function (item) {
|
|
748
626
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
749
627
|
className: "productCard"
|
|
@@ -754,24 +632,15 @@ function (_super) {
|
|
|
754
632
|
imgHeight: imgHeight,
|
|
755
633
|
imgWidth: imgWidth,
|
|
756
634
|
onItemClick: function onItemClick() {
|
|
757
|
-
return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId);
|
|
635
|
+
return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
|
|
758
636
|
},
|
|
759
637
|
panelProps: panelProps.content,
|
|
760
638
|
showProgress: false
|
|
761
639
|
}));
|
|
762
|
-
})
|
|
640
|
+
}), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
763
641
|
className: "btnSeeAll",
|
|
764
642
|
data: _seeAll
|
|
765
|
-
}))
|
|
766
|
-
className: "arrow-icon right",
|
|
767
|
-
onClick: function onClick() {
|
|
768
|
-
return _this.scrollToRight();
|
|
769
|
-
}
|
|
770
|
-
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
771
|
-
color: scrollToRightDisabled ? '#BDC1C8' : '#232F46',
|
|
772
|
-
size: 20,
|
|
773
|
-
type: "icon-outlined-right"
|
|
774
|
-
}))));
|
|
643
|
+
})));
|
|
775
644
|
};
|
|
776
645
|
|
|
777
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,14 +25,11 @@
|
|
|
25
25
|
.tabTitle {
|
|
26
26
|
display: flex;
|
|
27
27
|
align-items: center;
|
|
28
|
-
|
|
29
|
-
// padding: 0 24px;
|
|
30
|
-
min-width: 100px;
|
|
28
|
+
padding: 0 24px;
|
|
31
29
|
height: 100%;
|
|
32
30
|
justify-content: center;
|
|
33
31
|
white-space: nowrap;
|
|
34
32
|
flex-direction: column;
|
|
35
|
-
cursor: pointer;
|
|
36
33
|
|
|
37
34
|
img {
|
|
38
35
|
height: 16px;
|
|
@@ -52,47 +49,16 @@
|
|
|
52
49
|
}
|
|
53
50
|
}
|
|
54
51
|
|
|
55
|
-
.tab-content {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-direction: row;
|
|
58
|
-
align-items: center;
|
|
59
|
-
|
|
60
|
-
.tab-list {
|
|
61
|
-
width: 100%;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.arrow-icon {
|
|
66
|
-
display: block;
|
|
67
|
-
width: 36px;
|
|
68
|
-
height: 36px;
|
|
69
|
-
line-height: 42px;
|
|
70
|
-
text-align: center;
|
|
71
|
-
background: #FFFFFF;
|
|
72
|
-
box-shadow: -1px -1px 4px rgba(45, 48, 64, 0.08), 1px 1px 4px rgba(45, 48, 64, 0.08);
|
|
73
|
-
border-radius: 100px;
|
|
74
|
-
cursor: pointer;
|
|
75
|
-
|
|
76
|
-
&.left {
|
|
77
|
-
margin-right: 40px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&.right {
|
|
81
|
-
margin-left: 40px;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
52
|
.macyContainer {
|
|
86
53
|
display: flex;
|
|
87
|
-
margin: 0;
|
|
54
|
+
margin: 0 16px;
|
|
88
55
|
}
|
|
89
56
|
|
|
90
57
|
.scrollContainer {
|
|
91
58
|
display: flex;
|
|
92
59
|
flex-direction: row;
|
|
93
60
|
align-items: center;
|
|
94
|
-
|
|
95
|
-
margin: 0;
|
|
61
|
+
margin: 0 16px;
|
|
96
62
|
overflow-x: auto;
|
|
97
63
|
padding-bottom: 15px;
|
|
98
64
|
|
|
@@ -100,14 +66,8 @@
|
|
|
100
66
|
padding-left: 100px;
|
|
101
67
|
}
|
|
102
68
|
|
|
103
|
-
.
|
|
104
|
-
|
|
105
|
-
flex-direction: row;
|
|
106
|
-
align-items: flex-start;
|
|
107
|
-
|
|
108
|
-
.productCard {
|
|
109
|
-
margin-right: 20px;
|
|
110
|
-
}
|
|
69
|
+
.productCard {
|
|
70
|
+
margin-right: 12px;
|
|
111
71
|
}
|
|
112
72
|
}
|
|
113
73
|
|
|
@@ -115,10 +75,6 @@
|
|
|
115
75
|
display: block;
|
|
116
76
|
width: fit-content;
|
|
117
77
|
min-width: 80px;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
&.line {
|
|
121
|
-
margin: 0 auto 10px auto;
|
|
122
|
-
}
|
|
78
|
+
margin: 0 auto;
|
|
123
79
|
}
|
|
124
80
|
}
|
|
@@ -7,7 +7,7 @@ exports.getDefaultJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _ditoLogo = _interopRequireDefault(require("./imgs/dito-logo.svg"));
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
|
|
@@ -17,57 +17,28 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
17
17
|
return {
|
|
18
18
|
id: (0, _uuid.v4)(),
|
|
19
19
|
type: 'SEARCH',
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
clickUrl: ''
|
|
31
|
-
},
|
|
32
|
-
hover: {
|
|
33
|
-
open: false,
|
|
34
|
-
backgroundType: 'enlarge',
|
|
35
|
-
magnification: 1.5,
|
|
36
|
-
pcImgHoverUrl: '',
|
|
37
|
-
h5ImgHoverUrl: ''
|
|
38
|
-
}
|
|
20
|
+
logo: {
|
|
21
|
+
id: (0, _uuid.v4)(),
|
|
22
|
+
open: true,
|
|
23
|
+
type: 'IMAGE',
|
|
24
|
+
content: {
|
|
25
|
+
h5Name: 'name2',
|
|
26
|
+
pcName: 'name2',
|
|
27
|
+
h5ImgSrc: _ditoLogo["default"],
|
|
28
|
+
pcImgSrc: 'https://online.iwhalecloud.com/static/banner3.d4d11f4b.webp',
|
|
29
|
+
clickUrl: ''
|
|
39
30
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
icon: {
|
|
49
|
-
id: (0, _uuid.v4)(),
|
|
50
|
-
open: true,
|
|
51
|
-
color: {
|
|
52
|
-
pc: '#D92929',
|
|
53
|
-
mobile: '#232F46'
|
|
54
|
-
}
|
|
31
|
+
hover: {
|
|
32
|
+
open: false,
|
|
33
|
+
backgroundType: 'enlarge',
|
|
34
|
+
magnification: 1.5,
|
|
35
|
+
pcImgHoverUrl: '',
|
|
36
|
+
h5ImgHoverUrl: ''
|
|
55
37
|
}
|
|
56
38
|
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
paddingBottom: 30,
|
|
61
|
-
marginBottom: 0,
|
|
62
|
-
fillUp: false
|
|
63
|
-
},
|
|
64
|
-
mobile: {
|
|
65
|
-
paddingTop: 8,
|
|
66
|
-
paddingBottom: 8,
|
|
67
|
-
paddingLeft: 15,
|
|
68
|
-
paddingRight: 15,
|
|
69
|
-
marginBottom: 0
|
|
70
|
-
}
|
|
39
|
+
icon: {
|
|
40
|
+
open: true,
|
|
41
|
+
color: '#2F54EB'
|
|
71
42
|
},
|
|
72
43
|
customize: {
|
|
73
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
|
};
|