@fonixtree/magic-design 0.0.104 → 0.0.105
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 +3 -3
- 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.less +0 -1
- package/es/composite-comp/common/components/ProductItem/index.js +6 -26
- package/es/composite-comp/common/components/ProductItem/index.less +10 -11
- 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 +8 -44
- 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 +3 -3
- 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.less +0 -1
- package/lib/composite-comp/common/components/ProductItem/index.js +6 -26
- package/lib/composite-comp/common/components/ProductItem/index.less +10 -11
- 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 +8 -44
- 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 -567
- 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 -567
- 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
|
@@ -7,16 +7,13 @@ exports.recommendGroupSourceJSON = exports.getDefaultJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
-
var recommendGroupSourceJSON = function recommendGroupSourceJSON(
|
|
10
|
+
var recommendGroupSourceJSON = function recommendGroupSourceJSON(logo, text) {
|
|
11
11
|
var groupId = (0, _uuid.v4)();
|
|
12
|
-
var imageId = (0, _uuid.v4)();
|
|
13
|
-
var groupNameId = (0, _uuid.v4)();
|
|
14
12
|
return {
|
|
15
13
|
id: groupId,
|
|
16
|
-
parentId: parentId,
|
|
17
14
|
image: {
|
|
18
15
|
parentId: groupId,
|
|
19
|
-
id:
|
|
16
|
+
id: (0, _uuid.v4)(),
|
|
20
17
|
open: true,
|
|
21
18
|
type: 'IMAGE',
|
|
22
19
|
content: {
|
|
@@ -36,13 +33,12 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
|
|
|
36
33
|
},
|
|
37
34
|
groupName: {
|
|
38
35
|
parentId: groupId,
|
|
39
|
-
id:
|
|
36
|
+
id: (0, _uuid.v4)(),
|
|
40
37
|
open: true,
|
|
41
38
|
type: 'TEXT',
|
|
42
39
|
specialContent: [],
|
|
43
40
|
text: text,
|
|
44
41
|
content: {
|
|
45
|
-
sizeType: 'Customize font styles',
|
|
46
42
|
fontFamily: 'Open Sans',
|
|
47
43
|
fontWeight: 400,
|
|
48
44
|
fontSize: 14,
|
|
@@ -56,7 +52,6 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
|
|
|
56
52
|
vertical: {}
|
|
57
53
|
},
|
|
58
54
|
seeAll: {
|
|
59
|
-
parentId: groupId,
|
|
60
55
|
id: (0, _uuid.v4)(),
|
|
61
56
|
open: true,
|
|
62
57
|
type: 'BUTTON',
|
|
@@ -66,7 +61,6 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
|
|
|
66
61
|
backgroundColor: '#fff'
|
|
67
62
|
},
|
|
68
63
|
buttonText: {
|
|
69
|
-
sizeType: 'Customize font styles',
|
|
70
64
|
fontFamily: 'Open Sans',
|
|
71
65
|
fontWeight: 400,
|
|
72
66
|
fontSize: 12,
|
|
@@ -104,10 +98,10 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
|
|
|
104
98
|
intelligentValue: [],
|
|
105
99
|
maxProdNum: 10,
|
|
106
100
|
hover: {
|
|
107
|
-
open:
|
|
101
|
+
open: true,
|
|
108
102
|
image: {
|
|
109
103
|
parentId: groupId,
|
|
110
|
-
id:
|
|
104
|
+
id: (0, _uuid.v4)(),
|
|
111
105
|
open: false,
|
|
112
106
|
type: 'IMAGE',
|
|
113
107
|
content: {
|
|
@@ -127,13 +121,12 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
|
|
|
127
121
|
},
|
|
128
122
|
groupName: {
|
|
129
123
|
parentId: groupId,
|
|
130
|
-
id:
|
|
124
|
+
id: (0, _uuid.v4)(),
|
|
131
125
|
open: false,
|
|
132
126
|
type: 'TEXT',
|
|
133
127
|
specialContent: [],
|
|
134
128
|
text: text,
|
|
135
129
|
content: {
|
|
136
|
-
sizeType: 'Customize font styles',
|
|
137
130
|
fontFamily: 'Open Sans',
|
|
138
131
|
fontWeight: 600,
|
|
139
132
|
fontSize: 14,
|
|
@@ -153,11 +146,10 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
|
|
|
153
146
|
exports.recommendGroupSourceJSON = recommendGroupSourceJSON;
|
|
154
147
|
|
|
155
148
|
var getDefaultJSON = function getDefaultJSON() {
|
|
156
|
-
var groupId = (0, _uuid.v4)();
|
|
157
149
|
return {
|
|
158
|
-
id:
|
|
150
|
+
id: (0, _uuid.v4)(),
|
|
159
151
|
type: 'RECOMMEND',
|
|
160
|
-
groupSource: [recommendGroupSourceJSON(
|
|
152
|
+
groupSource: [recommendGroupSourceJSON('', 'Tab1'), recommendGroupSourceJSON('', 'Tab2')],
|
|
161
153
|
content: {
|
|
162
154
|
label: {
|
|
163
155
|
id: (0, _uuid.v4)(),
|
|
@@ -169,7 +161,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
169
161
|
backgroundColor: '#CE1126'
|
|
170
162
|
},
|
|
171
163
|
buttonText: {
|
|
172
|
-
sizeType: 'Customize font styles',
|
|
173
164
|
fontFamily: 'Open Sans',
|
|
174
165
|
fontWeight: 600,
|
|
175
166
|
fontSize: 8,
|
|
@@ -204,11 +195,10 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
204
195
|
productName: {
|
|
205
196
|
id: (0, _uuid.v4)(),
|
|
206
197
|
open: true,
|
|
207
|
-
type: '
|
|
198
|
+
type: 'Text',
|
|
208
199
|
specialContent: [],
|
|
209
200
|
text: 'Flash Deal',
|
|
210
201
|
content: {
|
|
211
|
-
sizeType: 'Customize font styles',
|
|
212
202
|
fontFamily: 'Open Sans',
|
|
213
203
|
fontWeight: 700,
|
|
214
204
|
fontSize: 14,
|
|
@@ -227,11 +217,10 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
227
217
|
activityPrice: {
|
|
228
218
|
id: (0, _uuid.v4)(),
|
|
229
219
|
open: true,
|
|
230
|
-
type: '
|
|
220
|
+
type: 'Text',
|
|
231
221
|
specialContent: [],
|
|
232
222
|
text: 'Flash Deal',
|
|
233
223
|
content: {
|
|
234
|
-
sizeType: 'Customize font styles',
|
|
235
224
|
fontFamily: 'Open Sans',
|
|
236
225
|
fontWeight: 700,
|
|
237
226
|
fontSize: 14,
|
|
@@ -250,11 +239,10 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
250
239
|
salesPrice: {
|
|
251
240
|
id: (0, _uuid.v4)(),
|
|
252
241
|
open: true,
|
|
253
|
-
type: '
|
|
242
|
+
type: 'Text',
|
|
254
243
|
specialContent: [],
|
|
255
244
|
text: 'Flash Deal',
|
|
256
245
|
content: {
|
|
257
|
-
sizeType: 'Customize font styles',
|
|
258
246
|
fontFamily: 'Open Sans',
|
|
259
247
|
fontWeight: 500,
|
|
260
248
|
fontSize: 10,
|
|
@@ -280,25 +268,19 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
280
268
|
paddingBottom: 0,
|
|
281
269
|
paddingLeft: 0,
|
|
282
270
|
paddingRight: 0,
|
|
283
|
-
marginBottom:
|
|
271
|
+
marginBottom: 0
|
|
284
272
|
},
|
|
285
273
|
mobile: {
|
|
286
274
|
paddingTop: 0,
|
|
287
275
|
paddingBottom: 0,
|
|
288
276
|
paddingLeft: 0,
|
|
289
277
|
paddingRight: 0,
|
|
290
|
-
marginBottom:
|
|
278
|
+
marginBottom: 0
|
|
291
279
|
}
|
|
292
280
|
},
|
|
293
281
|
customize: {
|
|
294
|
-
layout:
|
|
295
|
-
|
|
296
|
-
h5Layout: 'layout1'
|
|
297
|
-
},
|
|
298
|
-
align: 'left',
|
|
299
|
-
pcRowNum: 6,
|
|
300
|
-
pcMaxRowNum: 6,
|
|
301
|
-
pcMinRowNum: 5
|
|
282
|
+
layout: 'left',
|
|
283
|
+
align: 'left'
|
|
302
284
|
},
|
|
303
285
|
background: {
|
|
304
286
|
opacity: 100,
|
|
@@ -9,14 +9,14 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _mobile = _interopRequireDefault(require("./mobile"));
|
|
11
11
|
|
|
12
|
-
var _pc = _interopRequireDefault(require("./pc"));
|
|
13
|
-
|
|
14
12
|
var _defaultJSON = require("./defaultJSON");
|
|
15
13
|
|
|
16
14
|
var _coreUtil = require("../../../../utils/coreUtil");
|
|
17
15
|
|
|
18
16
|
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
19
17
|
|
|
18
|
+
var _businessUtil = require("../../../../utils/businessUtil");
|
|
19
|
+
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
21
|
|
|
22
22
|
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); }
|
|
@@ -72,9 +72,10 @@ function (_super) {
|
|
|
72
72
|
|
|
73
73
|
Recommend.prototype.render = function () {
|
|
74
74
|
var nodeData = this.props.nodeData;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
|
|
76
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
+
style: wrapStyle
|
|
78
|
+
}, (0, _coreUtil.isPc)() ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
78
79
|
panelProps: nodeData
|
|
79
80
|
}));
|
|
80
81
|
};
|
|
@@ -227,9 +227,13 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
|
227
227
|
};
|
|
228
228
|
|
|
229
229
|
var LAYOUT_IMAGE_SIZE = {
|
|
230
|
+
left: {
|
|
231
|
+
w: '100%',
|
|
232
|
+
h: 165
|
|
233
|
+
},
|
|
230
234
|
layout1: {
|
|
231
235
|
w: '100%',
|
|
232
|
-
h:
|
|
236
|
+
h: 164
|
|
233
237
|
},
|
|
234
238
|
layout2: {
|
|
235
239
|
w: 100,
|
|
@@ -237,7 +241,7 @@ var LAYOUT_IMAGE_SIZE = {
|
|
|
237
241
|
},
|
|
238
242
|
layout3: {
|
|
239
243
|
w: '100%',
|
|
240
|
-
h:
|
|
244
|
+
h: 104
|
|
241
245
|
},
|
|
242
246
|
layout4: {
|
|
243
247
|
w: 96,
|
|
@@ -259,13 +263,10 @@ function (_super) {
|
|
|
259
263
|
|
|
260
264
|
_this.preData = {};
|
|
261
265
|
_this.preLayout = '';
|
|
262
|
-
_this.preContent = '';
|
|
263
|
-
_this.preSpacing = '';
|
|
264
266
|
_this._cache = (0, _coreUtil.isDesignMode)() ? {} : (0, _commonUtil.ensure)(function () {
|
|
265
267
|
return (0, _storeUtil.getMagicStore)("recommend_" + _this.props.panelProps.id);
|
|
266
268
|
}, {});
|
|
267
269
|
_this.state = __assign({
|
|
268
|
-
contentWidth: 0,
|
|
269
270
|
tabIndex: 0,
|
|
270
271
|
tabLeft: 0,
|
|
271
272
|
tabWidth: 0,
|
|
@@ -273,15 +274,6 @@ function (_super) {
|
|
|
273
274
|
hideTabs: false
|
|
274
275
|
}, _this._cache);
|
|
275
276
|
|
|
276
|
-
_this.listenWidth = function () {
|
|
277
|
-
setTimeout(function () {
|
|
278
|
-
var renderContainer = document.querySelector(".macyContainer_" + _this.props.panelProps.id);
|
|
279
|
-
if (renderContainer) _this.setState({
|
|
280
|
-
contentWidth: renderContainer.offsetWidth
|
|
281
|
-
});
|
|
282
|
-
});
|
|
283
|
-
};
|
|
284
|
-
|
|
285
277
|
_this.initTab = function (index, hideTabs) {
|
|
286
278
|
var selectedTabDom = document.querySelector(".tab-select-wrap .tabTitle:nth-child(" + (index + 1) + ")");
|
|
287
279
|
var tabLeft = 0;
|
|
@@ -300,10 +292,9 @@ function (_super) {
|
|
|
300
292
|
|
|
301
293
|
_this.getTabBarActiveColor = function (_panelProps) {
|
|
302
294
|
var tabIndex = _this.state.tabIndex;
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}, '#CE1126') : '#CE1126';
|
|
295
|
+
return (0, _commonUtil.ensure)(function () {
|
|
296
|
+
return _panelProps.groupSource[tabIndex].hover.groupName.content.color;
|
|
297
|
+
}, '#1890ff');
|
|
307
298
|
};
|
|
308
299
|
|
|
309
300
|
_this.getProductList = function (index) {
|
|
@@ -343,11 +334,8 @@ function (_super) {
|
|
|
343
334
|
_k.label = 1;
|
|
344
335
|
|
|
345
336
|
case 1:
|
|
346
|
-
_k.trys.push([1,
|
|
337
|
+
_k.trys.push([1, 7,, 8]);
|
|
347
338
|
|
|
348
|
-
if (!(groupSource.length > 0)) return [3
|
|
349
|
-
/*break*/
|
|
350
|
-
, 7];
|
|
351
339
|
if (!(sourceType === 'select')) return [3
|
|
352
340
|
/*break*/
|
|
353
341
|
, 3];
|
|
@@ -404,22 +392,13 @@ function (_super) {
|
|
|
404
392
|
, 8];
|
|
405
393
|
|
|
406
394
|
case 7:
|
|
407
|
-
newData = [];
|
|
408
|
-
_k.label = 8;
|
|
409
|
-
|
|
410
|
-
case 8:
|
|
411
|
-
return [3
|
|
412
|
-
/*break*/
|
|
413
|
-
, 10];
|
|
414
|
-
|
|
415
|
-
case 9:
|
|
416
395
|
e_1 = _k.sent();
|
|
417
396
|
newData = [];
|
|
418
397
|
return [3
|
|
419
398
|
/*break*/
|
|
420
|
-
,
|
|
399
|
+
, 8];
|
|
421
400
|
|
|
422
|
-
case
|
|
401
|
+
case 8:
|
|
423
402
|
if (!(0, _coreUtil.isDesignMode)()) {
|
|
424
403
|
_cache = (0, _storeUtil.getMagicStore)("recommend_" + recommendId);
|
|
425
404
|
(0, _storeUtil.setMagicStore)("recommend_" + recommendId, __assign(__assign({}, _cache), (_h = {}, _h["products" + index] = newData, _h.endTime = Date.now() + 3 * 60 * 1000, _h)));
|
|
@@ -437,16 +416,18 @@ function (_super) {
|
|
|
437
416
|
};
|
|
438
417
|
|
|
439
418
|
_this.resetLayout = function () {
|
|
440
|
-
var layout = _this.props.panelProps.customize.layout.h5Layout;
|
|
419
|
+
var layout = _this.props.panelProps.customize.layout.h5Layout || _this.props.panelProps.customize.layout; // 后面删除
|
|
420
|
+
|
|
441
421
|
var LAYOUT_COLUMN = {
|
|
422
|
+
left: 2,
|
|
442
423
|
layout1: 2,
|
|
443
424
|
layout2: 1,
|
|
444
425
|
layout3: 3
|
|
445
426
|
};
|
|
446
427
|
if (!LAYOUT_COLUMN[layout]) return;
|
|
447
428
|
setTimeout(function () {
|
|
448
|
-
if (document.querySelector(
|
|
449
|
-
_this.getMacy(
|
|
429
|
+
if (document.querySelector('.macyContainer')) {
|
|
430
|
+
_this.getMacy('.macyContainer', LAYOUT_COLUMN[layout]);
|
|
450
431
|
}
|
|
451
432
|
});
|
|
452
433
|
};
|
|
@@ -468,9 +449,28 @@ function (_super) {
|
|
|
468
449
|
}, true);
|
|
469
450
|
};
|
|
470
451
|
|
|
452
|
+
_this.getBackgroundStyle = function () {
|
|
453
|
+
var panelProps = _this.props.panelProps;
|
|
454
|
+
var bgStyle = {};
|
|
455
|
+
|
|
456
|
+
if (panelProps.background.bgType === 'color') {
|
|
457
|
+
bgStyle = {
|
|
458
|
+
backgroundColor: (0, _commonUtil.getColorRgba)(panelProps.background.color || '#fff', panelProps.background.opacity / 100 || 1)
|
|
459
|
+
};
|
|
460
|
+
} else {
|
|
461
|
+
bgStyle = {
|
|
462
|
+
background: "url(" + panelProps.background.image + ") no-repeat center",
|
|
463
|
+
backgroundSize: '100%'
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
return bgStyle;
|
|
468
|
+
};
|
|
469
|
+
|
|
471
470
|
_this.onTabClick = function (e, index) {
|
|
472
471
|
var tabIndex = _this.state.tabIndex;
|
|
473
|
-
if (tabIndex === index) return;
|
|
472
|
+
if (tabIndex === index) return;
|
|
473
|
+
e.currentTarget.scrollIntoView(false);
|
|
474
474
|
|
|
475
475
|
_this.setState({
|
|
476
476
|
tabIndex: index
|
|
@@ -502,14 +502,13 @@ function (_super) {
|
|
|
502
502
|
|
|
503
503
|
_this.getProductList(0);
|
|
504
504
|
});
|
|
505
|
-
this.listenWidth();
|
|
506
505
|
};
|
|
507
506
|
|
|
508
|
-
RecommendMobile.prototype.componentWillReceiveProps = function (
|
|
507
|
+
RecommendMobile.prototype.componentWillReceiveProps = function () {
|
|
509
508
|
var _this = this;
|
|
510
509
|
|
|
511
510
|
var tabIndex = this.state.tabIndex;
|
|
512
|
-
var panelProps =
|
|
511
|
+
var panelProps = this.props.panelProps;
|
|
513
512
|
var source = [];
|
|
514
513
|
var hideTabs = false;
|
|
515
514
|
panelProps.groupSource.map(function (m) {
|
|
@@ -517,8 +516,8 @@ function (_super) {
|
|
|
517
516
|
if (show) source.push(m);
|
|
518
517
|
});
|
|
519
518
|
|
|
520
|
-
if (source.length === 0) {
|
|
521
|
-
|
|
519
|
+
if (source.length === 0 && panelProps.groupSource.length > 0) {
|
|
520
|
+
source.push(panelProps.groupSource[0]);
|
|
522
521
|
hideTabs = true;
|
|
523
522
|
}
|
|
524
523
|
|
|
@@ -544,21 +543,13 @@ function (_super) {
|
|
|
544
543
|
hideTabs: hideTabs
|
|
545
544
|
});
|
|
546
545
|
});
|
|
547
|
-
var curLayout = panelProps.customize.layout.h5Layout;
|
|
548
|
-
var curContent = JSON.stringify(panelProps.content);
|
|
549
|
-
var curSpacing = JSON.stringify(panelProps.spacing);
|
|
550
|
-
|
|
551
|
-
if (curSpacing !== this.preSpacing) {
|
|
552
|
-
this.listenWidth();
|
|
553
|
-
}
|
|
546
|
+
var curLayout = panelProps.customize.layout.h5Layout || panelProps.customize.layout; // 后面删除
|
|
554
547
|
|
|
555
|
-
if (curLayout !== this.preLayout
|
|
548
|
+
if (curLayout !== this.preLayout) {
|
|
556
549
|
this.resetLayout();
|
|
557
550
|
}
|
|
558
551
|
|
|
559
552
|
this.preLayout = curLayout;
|
|
560
|
-
this.preContent = curContent;
|
|
561
|
-
this.preSpacing = curSpacing;
|
|
562
553
|
};
|
|
563
554
|
|
|
564
555
|
RecommendMobile.prototype.render = function () {
|
|
@@ -570,26 +561,22 @@ function (_super) {
|
|
|
570
561
|
tabLeft = _a.tabLeft,
|
|
571
562
|
tabWidth = _a.tabWidth,
|
|
572
563
|
groupSource = _a.groupSource,
|
|
573
|
-
hideTabs = _a.hideTabs
|
|
574
|
-
|
|
564
|
+
hideTabs = _a.hideTabs;
|
|
565
|
+
var bgStyle = this.getBackgroundStyle();
|
|
575
566
|
var products = this.state["products" + tabIndex] || [];
|
|
576
567
|
var isDivide = groupSource.length <= 3;
|
|
577
|
-
var layout = panelProps.customize.layout.h5Layout;
|
|
568
|
+
var layout = panelProps.customize.layout.h5Layout || panelProps.customize.layout; // 后面删除
|
|
569
|
+
// const _seeAll = ensure(() => groupSource[tabIndex].seeAll, '');
|
|
578
570
|
|
|
579
|
-
var _seeAll = (0, _commonUtil.ensure)(function () {
|
|
580
|
-
return groupSource[tabIndex].seeAll;
|
|
581
|
-
}, '');
|
|
582
|
-
|
|
583
|
-
var imgWidth = (0, _commonUtil.ensure)(function () {
|
|
584
|
-
return LAYOUT_IMAGE_SIZE[layout].w;
|
|
585
|
-
}, 140);
|
|
586
571
|
var imgHeight = (0, _commonUtil.ensure)(function () {
|
|
587
572
|
return LAYOUT_IMAGE_SIZE[layout].h;
|
|
588
573
|
}, 140);
|
|
589
|
-
|
|
590
|
-
|
|
574
|
+
var imgWidth = (0, _commonUtil.ensure)(function () {
|
|
575
|
+
return LAYOUT_IMAGE_SIZE[layout].w;
|
|
576
|
+
}, 140);
|
|
591
577
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
592
|
-
className: "m-recommend-mobile"
|
|
578
|
+
className: "m-recommend-mobile",
|
|
579
|
+
style: bgStyle
|
|
593
580
|
}, !hideTabs && /*#__PURE__*/_react["default"].createElement("div", {
|
|
594
581
|
className: "tab-select-wrap"
|
|
595
582
|
}, groupSource.map(function (tab, index) {
|
|
@@ -620,40 +607,18 @@ function (_super) {
|
|
|
620
607
|
tab.groupName.text = text;
|
|
621
608
|
}
|
|
622
609
|
}));
|
|
623
|
-
}),
|
|
610
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
624
611
|
className: "active-line",
|
|
625
612
|
style: {
|
|
626
613
|
width: tabWidth,
|
|
627
614
|
transform: "translateX(" + tabLeft + "px)",
|
|
628
615
|
background: this.getTabBarActiveColor(panelProps)
|
|
629
616
|
}
|
|
630
|
-
})), ['
|
|
631
|
-
key: "macyContainer",
|
|
632
|
-
className: "macyContainer macyContainer_" + panelProps.id
|
|
633
|
-
}, products.map(function (item) {
|
|
634
|
-
return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
|
|
635
|
-
key: item.productId,
|
|
636
|
-
data: item,
|
|
637
|
-
fixHeight: layout === 'layout3',
|
|
638
|
-
imgHeight: imgHeight,
|
|
639
|
-
imgWidth: imgWidth,
|
|
640
|
-
layout: layout === 'layout2' ? 'horizontal' : 'vertical',
|
|
641
|
-
onItemClick: function onItemClick() {
|
|
642
|
-
return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
|
|
643
|
-
},
|
|
644
|
-
panelProps: panelProps.content,
|
|
645
|
-
showProgress: false
|
|
646
|
-
});
|
|
647
|
-
})), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
648
|
-
className: "btnSeeAll",
|
|
649
|
-
data: _seeAll
|
|
650
|
-
})) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
617
|
+
})), ['layout4', 'layout5'].includes(layout) ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
651
618
|
key: "scrollContainer",
|
|
652
619
|
className: (0, _classnames["default"])('scrollContainer', {
|
|
653
620
|
pl_100: layout === 'layout5'
|
|
654
621
|
})
|
|
655
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
656
|
-
className: "scrollProductList"
|
|
657
622
|
}, products.map(function (item) {
|
|
658
623
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
659
624
|
className: "productCard"
|
|
@@ -669,10 +634,24 @@ function (_super) {
|
|
|
669
634
|
panelProps: panelProps.content,
|
|
670
635
|
showProgress: false
|
|
671
636
|
}));
|
|
672
|
-
}))
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
})
|
|
637
|
+
})) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
638
|
+
key: "macyContainer",
|
|
639
|
+
className: "macyContainer"
|
|
640
|
+
}, products.map(function (item) {
|
|
641
|
+
return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
|
|
642
|
+
key: item.productId,
|
|
643
|
+
data: item,
|
|
644
|
+
fixHeight: layout === 'layout3',
|
|
645
|
+
imgHeight: imgHeight,
|
|
646
|
+
imgWidth: imgWidth,
|
|
647
|
+
layout: layout === 'layout2' ? 'horizontal' : 'vertical',
|
|
648
|
+
onItemClick: function onItemClick() {
|
|
649
|
+
return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + (item.sppProductId || item.productId || ''));
|
|
650
|
+
},
|
|
651
|
+
panelProps: panelProps.content,
|
|
652
|
+
showProgress: false
|
|
653
|
+
});
|
|
654
|
+
}))));
|
|
676
655
|
};
|
|
677
656
|
|
|
678
657
|
RecommendMobile.defaultProps = {
|
|
@@ -25,9 +25,7 @@
|
|
|
25
25
|
.tabTitle {
|
|
26
26
|
display: flex;
|
|
27
27
|
align-items: center;
|
|
28
|
-
text-align: center;
|
|
29
28
|
padding: 0 24px;
|
|
30
|
-
width: fit-content;
|
|
31
29
|
height: 100%;
|
|
32
30
|
justify-content: center;
|
|
33
31
|
white-space: nowrap;
|
|
@@ -68,14 +66,8 @@
|
|
|
68
66
|
padding-left: 100px;
|
|
69
67
|
}
|
|
70
68
|
|
|
71
|
-
.
|
|
72
|
-
|
|
73
|
-
flex-direction: row;
|
|
74
|
-
align-items: flex-start;
|
|
75
|
-
|
|
76
|
-
.productCard {
|
|
77
|
-
margin-right: 12px;
|
|
78
|
-
}
|
|
69
|
+
.productCard {
|
|
70
|
+
margin-right: 12px;
|
|
79
71
|
}
|
|
80
72
|
}
|
|
81
73
|
|
|
@@ -84,6 +76,5 @@
|
|
|
84
76
|
width: fit-content;
|
|
85
77
|
min-width: 80px;
|
|
86
78
|
margin: 0 auto;
|
|
87
|
-
flex: none;
|
|
88
79
|
}
|
|
89
80
|
}
|