@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
|
@@ -91,12 +91,21 @@ function (_super) {
|
|
|
91
91
|
showRowNum: true
|
|
92
92
|
};
|
|
93
93
|
|
|
94
|
-
_this.
|
|
94
|
+
_this.layoutChange = function (v) {
|
|
95
95
|
var _a;
|
|
96
96
|
|
|
97
97
|
var _b = _this.props,
|
|
98
|
+
selectedLayoutFun = _b.selectedLayoutFun,
|
|
99
|
+
data = _b.data,
|
|
98
100
|
component = _b.component,
|
|
99
|
-
id = _b.id;
|
|
101
|
+
id = _b.id;
|
|
102
|
+
|
|
103
|
+
if (selectedLayoutFun) {
|
|
104
|
+
selectedLayoutFun(v);
|
|
105
|
+
} else {
|
|
106
|
+
data.layout = v;
|
|
107
|
+
} // 轮播组件特殊处理
|
|
108
|
+
|
|
100
109
|
|
|
101
110
|
if (component === 'carousel') {
|
|
102
111
|
if (v === 'layout2') {
|
|
@@ -112,59 +121,21 @@ function (_super) {
|
|
|
112
121
|
_this.props.store.setState({
|
|
113
122
|
CarouselStore: __assign(__assign({}, _mobx.store.CarouselStore), (_a = {}, _a[id] = v, _a))
|
|
114
123
|
});
|
|
115
|
-
} //
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
if (component === 'imageText') {
|
|
119
|
-
if (!(0, _coreUtil.isPc)()) {
|
|
120
|
-
if (v === 'normal3') {
|
|
121
|
-
_this.setState({
|
|
122
|
-
showRowNum: true
|
|
123
|
-
});
|
|
124
|
-
} else {
|
|
125
|
-
_this.setState({
|
|
126
|
-
showRowNum: false
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
} // imageGallery 第二种布局可选列数
|
|
124
|
+
} // 移动端导航特殊处理
|
|
131
125
|
|
|
132
126
|
|
|
133
|
-
if (component
|
|
134
|
-
if (v === '
|
|
127
|
+
if (component == 'mobileNavigation') {
|
|
128
|
+
if (v === 'tile') {
|
|
135
129
|
_this.setState({
|
|
136
|
-
showRowNum:
|
|
130
|
+
showRowNum: false
|
|
137
131
|
});
|
|
138
132
|
} else {
|
|
139
133
|
_this.setState({
|
|
140
|
-
showRowNum:
|
|
134
|
+
showRowNum: true
|
|
141
135
|
});
|
|
142
136
|
}
|
|
143
|
-
} // 移动端导航特殊处理
|
|
144
|
-
// 更改需求,两个布局都需 可选行数
|
|
145
|
-
// if (component == 'mobileNavigation') {
|
|
146
|
-
// if (v === 'tile') {
|
|
147
|
-
// this.setState({ showRowNum: false });
|
|
148
|
-
// } else {
|
|
149
|
-
// this.setState({ showRowNum: true });
|
|
150
|
-
// }
|
|
151
|
-
// }
|
|
152
|
-
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
_this.layoutChange = function (v) {
|
|
156
|
-
var _a = _this.props,
|
|
157
|
-
selectedLayoutFun = _a.selectedLayoutFun,
|
|
158
|
-
data = _a.data;
|
|
159
|
-
|
|
160
|
-
if (selectedLayoutFun) {
|
|
161
|
-
selectedLayoutFun(v);
|
|
162
|
-
} else {
|
|
163
|
-
data.layout = v;
|
|
164
137
|
}
|
|
165
138
|
|
|
166
|
-
_this.onInit(v);
|
|
167
|
-
|
|
168
139
|
_this.selfRender(); // this.setState({});
|
|
169
140
|
|
|
170
141
|
};
|
|
@@ -185,14 +156,16 @@ function (_super) {
|
|
|
185
156
|
}
|
|
186
157
|
|
|
187
158
|
CustomizeConfig.prototype.componentDidMount = function () {
|
|
188
|
-
var _a
|
|
189
|
-
selectedLayoutFun = _a.selectedLayoutFun,
|
|
190
|
-
data = _a.data;
|
|
159
|
+
var _a;
|
|
191
160
|
|
|
192
|
-
if (
|
|
193
|
-
this.
|
|
161
|
+
if (((_a = this.props.data) === null || _a === void 0 ? void 0 : _a.layout) === 'layout2') {
|
|
162
|
+
this.setState({
|
|
163
|
+
showRowNum: false
|
|
164
|
+
});
|
|
194
165
|
} else {
|
|
195
|
-
this.
|
|
166
|
+
this.setState({
|
|
167
|
+
showRowNum: true
|
|
168
|
+
});
|
|
196
169
|
}
|
|
197
170
|
};
|
|
198
171
|
|
|
@@ -219,7 +192,7 @@ function (_super) {
|
|
|
219
192
|
rowNumArr.push(i);
|
|
220
193
|
}
|
|
221
194
|
|
|
222
|
-
var _showRowNum = showRowNum && ((0, _coreUtil.isPc)() && data.pcRowNum || !(0, _coreUtil.isPc)() && data.rowNum);
|
|
195
|
+
var _showRowNum = showRowNum && ((0, _coreUtil.isPc)() && this.props.data.pcRowNum || !(0, _coreUtil.isPc)() && this.props.data.rowNum);
|
|
223
196
|
|
|
224
197
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
225
198
|
className: "m-customize-config"
|
|
@@ -62,17 +62,17 @@ function (_super) {
|
|
|
62
62
|
|
|
63
63
|
var _a = this.props,
|
|
64
64
|
data = _a.data,
|
|
65
|
+
configPaddingLR = _a.configPaddingLR,
|
|
65
66
|
configCompSpace = _a.configCompSpace,
|
|
66
|
-
configWidth = _a.configWidth
|
|
67
|
-
|
|
68
|
-
var obj = data[window.magicDesign.device] || {};
|
|
67
|
+
configWidth = _a.configWidth;
|
|
68
|
+
var obj = data[window.magicDesign.device];
|
|
69
69
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
70
|
className: "spacing-config-container"
|
|
71
71
|
}, configWidth && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
72
72
|
title: "Width"
|
|
73
73
|
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
74
74
|
maxVal: window.magicDesign.device === 'pc' ? 1240 : 375,
|
|
75
|
-
minVal: window.magicDesign.device === 'pc' ?
|
|
75
|
+
minVal: window.magicDesign.device === 'pc' ? 1010 : 348,
|
|
76
76
|
onChange: function onChange(value) {
|
|
77
77
|
obj.contentWidth = value.count;
|
|
78
78
|
|
|
@@ -81,17 +81,6 @@ function (_super) {
|
|
|
81
81
|
value: {
|
|
82
82
|
count: obj.contentWidth
|
|
83
83
|
}
|
|
84
|
-
})), fillUpWidth && window.magicDesign.device === 'pc' && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
85
|
-
layout: "horizontal",
|
|
86
|
-
title: "Fill the page"
|
|
87
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Checkbox, {
|
|
88
|
-
checked: obj.fillUp,
|
|
89
|
-
onChange: function onChange(e) {
|
|
90
|
-
console.log('ddd fill up', e.target.checked);
|
|
91
|
-
obj.fillUp = e.target.checked;
|
|
92
|
-
|
|
93
|
-
_this.selfRender();
|
|
94
|
-
}
|
|
95
84
|
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
96
85
|
title: (0, _locale.i18n)('PADDING')
|
|
97
86
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -100,47 +89,47 @@ function (_super) {
|
|
|
100
89
|
className: "padding-item"
|
|
101
90
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
102
91
|
type: "icon-padding-top"
|
|
103
|
-
}), /*#__PURE__*/_react["default"].createElement(_antd.
|
|
92
|
+
}), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
104
93
|
onChange: function onChange(e) {
|
|
105
|
-
obj.paddingTop = e;
|
|
94
|
+
obj.paddingTop = e.target.value;
|
|
106
95
|
|
|
107
96
|
_this.selfRender();
|
|
108
97
|
},
|
|
109
|
-
value: obj.paddingTop
|
|
98
|
+
value: obj.paddingTop
|
|
110
99
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
100
|
className: "padding-item"
|
|
112
101
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
113
102
|
type: "icon-padding-bottom"
|
|
114
|
-
}), /*#__PURE__*/_react["default"].createElement(_antd.
|
|
103
|
+
}), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
115
104
|
onChange: function onChange(e) {
|
|
116
|
-
obj.paddingBottom = e;
|
|
105
|
+
obj.paddingBottom = e.target.value;
|
|
117
106
|
|
|
118
107
|
_this.selfRender();
|
|
119
108
|
},
|
|
120
|
-
value: obj.paddingBottom
|
|
121
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
109
|
+
value: obj.paddingBottom
|
|
110
|
+
})), configPaddingLR && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
111
|
className: "padding-item"
|
|
123
112
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
124
113
|
type: "icon-padding-left"
|
|
125
|
-
}), /*#__PURE__*/_react["default"].createElement(_antd.
|
|
114
|
+
}), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
126
115
|
onChange: function onChange(e) {
|
|
127
|
-
obj.paddingLeft = e;
|
|
116
|
+
obj.paddingLeft = e.target.value;
|
|
128
117
|
|
|
129
118
|
_this.selfRender();
|
|
130
119
|
},
|
|
131
|
-
value: obj.paddingLeft
|
|
120
|
+
value: obj.paddingLeft
|
|
132
121
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
122
|
className: "padding-item"
|
|
134
123
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
135
124
|
type: "icon-padding-right"
|
|
136
|
-
}), /*#__PURE__*/_react["default"].createElement(_antd.
|
|
125
|
+
}), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
137
126
|
onChange: function onChange(e) {
|
|
138
|
-
obj.paddingRight = e;
|
|
127
|
+
obj.paddingRight = e.target.value;
|
|
139
128
|
|
|
140
129
|
_this.selfRender();
|
|
141
130
|
},
|
|
142
|
-
value: obj.paddingRight
|
|
143
|
-
})))), configCompSpace && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
131
|
+
value: obj.paddingRight
|
|
132
|
+
}))))), configCompSpace && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
144
133
|
title: (0, _locale.i18n)('COMPONENT_SPACING')
|
|
145
134
|
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
146
135
|
maxVal: 100,
|
|
@@ -157,23 +146,23 @@ function (_super) {
|
|
|
157
146
|
};
|
|
158
147
|
|
|
159
148
|
SpacingConfig.defaultProps = {
|
|
149
|
+
configPaddingLR: false,
|
|
160
150
|
configCompSpace: true,
|
|
161
151
|
configWidth: false,
|
|
162
|
-
fillUpWidth: false,
|
|
163
152
|
data: {
|
|
164
153
|
pc: {
|
|
165
|
-
paddingTop:
|
|
166
|
-
paddingBottom:
|
|
167
|
-
paddingLeft:
|
|
168
|
-
paddingRight:
|
|
169
|
-
marginBottom:
|
|
154
|
+
paddingTop: 10,
|
|
155
|
+
paddingBottom: 10,
|
|
156
|
+
paddingLeft: 10,
|
|
157
|
+
paddingRight: 10,
|
|
158
|
+
marginBottom: 10
|
|
170
159
|
},
|
|
171
160
|
mobile: {
|
|
172
|
-
paddingTop:
|
|
173
|
-
paddingBottom:
|
|
174
|
-
paddingLeft:
|
|
175
|
-
paddingRight:
|
|
176
|
-
marginBottom:
|
|
161
|
+
paddingTop: 10,
|
|
162
|
+
paddingBottom: 10,
|
|
163
|
+
paddingLeft: 10,
|
|
164
|
+
paddingRight: 10,
|
|
165
|
+
marginBottom: 10
|
|
177
166
|
}
|
|
178
167
|
}
|
|
179
168
|
};
|
|
@@ -8,24 +8,21 @@ exports.getDefaultJSON = void 0;
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
10
|
var getDefaultJSON = function getDefaultJSON() {
|
|
11
|
-
var contentId = (0, _uuid.v4)();
|
|
12
11
|
return {
|
|
13
12
|
id: (0, _uuid.v4)(),
|
|
14
13
|
type: 'FLASH_DEAL',
|
|
15
14
|
title: {
|
|
16
15
|
icon: {
|
|
17
|
-
id: (0, _uuid.v4)(),
|
|
18
16
|
open: true,
|
|
19
17
|
url: '/get/resource/platform/conf/20220722/picture/组633391550411058986147840.png'
|
|
20
18
|
},
|
|
21
19
|
headline: {
|
|
22
20
|
id: (0, _uuid.v4)(),
|
|
23
21
|
open: true,
|
|
24
|
-
type: '
|
|
22
|
+
type: 'Text',
|
|
25
23
|
specialContent: [],
|
|
26
24
|
text: 'Flash Deal',
|
|
27
25
|
content: {
|
|
28
|
-
sizeType: 'Customize font styles',
|
|
29
26
|
fontFamily: 'Open Sans',
|
|
30
27
|
fontWeight: 600,
|
|
31
28
|
fontSize: 14,
|
|
@@ -51,7 +48,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
51
48
|
backgroundColor: ''
|
|
52
49
|
},
|
|
53
50
|
buttonText: {
|
|
54
|
-
sizeType: 'Customize font styles',
|
|
55
51
|
fontFamily: 'Open Sans',
|
|
56
52
|
fontWeight: 600,
|
|
57
53
|
fontSize: 12,
|
|
@@ -64,20 +60,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
64
60
|
borderColor: '',
|
|
65
61
|
borderRadius: 6
|
|
66
62
|
},
|
|
67
|
-
spacing: {
|
|
68
|
-
pc: {
|
|
69
|
-
paddingTop: 2,
|
|
70
|
-
paddingBottom: 2,
|
|
71
|
-
paddingLeft: 5,
|
|
72
|
-
paddingRight: 5
|
|
73
|
-
},
|
|
74
|
-
mobile: {
|
|
75
|
-
paddingTop: 2,
|
|
76
|
-
paddingBottom: 2,
|
|
77
|
-
paddingLeft: 5,
|
|
78
|
-
paddingRight: 5
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
63
|
buttonIcon: {
|
|
82
64
|
iconUrl: '/get/resource/platform/conf/20220719/picture/icon-arrow-right-s1549371733179686912.png',
|
|
83
65
|
layout: 'right'
|
|
@@ -86,11 +68,9 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
86
68
|
}
|
|
87
69
|
},
|
|
88
70
|
content: {
|
|
89
|
-
id: contentId,
|
|
90
71
|
sortType: '1',
|
|
91
72
|
label: {
|
|
92
73
|
id: (0, _uuid.v4)(),
|
|
93
|
-
contentId: contentId,
|
|
94
74
|
open: true,
|
|
95
75
|
type: 'BUTTON',
|
|
96
76
|
text: 'Button',
|
|
@@ -99,32 +79,18 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
99
79
|
backgroundColor: '#CC1D20'
|
|
100
80
|
},
|
|
101
81
|
buttonText: {
|
|
102
|
-
sizeType: 'Customize font styles',
|
|
103
82
|
fontFamily: 'Open Sans',
|
|
104
83
|
fontWeight: 600,
|
|
105
84
|
fontSize: 8,
|
|
106
85
|
fontStyle: 'normal',
|
|
107
|
-
color: '#fff'
|
|
86
|
+
color: '#fff',
|
|
87
|
+
padding: '0 5px'
|
|
108
88
|
},
|
|
109
89
|
buttonBorder: {
|
|
110
90
|
open: true,
|
|
111
91
|
borderColor: '',
|
|
112
92
|
borderRadius: 7
|
|
113
93
|
},
|
|
114
|
-
spacing: {
|
|
115
|
-
pc: {
|
|
116
|
-
paddingTop: 0,
|
|
117
|
-
paddingBottom: 0,
|
|
118
|
-
paddingLeft: 4,
|
|
119
|
-
paddingRight: 4
|
|
120
|
-
},
|
|
121
|
-
mobile: {
|
|
122
|
-
paddingTop: 0,
|
|
123
|
-
paddingBottom: 0,
|
|
124
|
-
paddingLeft: 4,
|
|
125
|
-
paddingRight: 4
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
94
|
buttonIcon: {
|
|
129
95
|
iconUrl: '',
|
|
130
96
|
layout: 'right'
|
|
@@ -133,13 +99,11 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
133
99
|
},
|
|
134
100
|
productName: {
|
|
135
101
|
id: (0, _uuid.v4)(),
|
|
136
|
-
contentId: contentId,
|
|
137
102
|
open: true,
|
|
138
|
-
type: '
|
|
103
|
+
type: 'Text',
|
|
139
104
|
specialContent: [],
|
|
140
105
|
text: 'Flash Deal',
|
|
141
106
|
content: {
|
|
142
|
-
sizeType: 'Customize font styles',
|
|
143
107
|
fontFamily: 'Open Sans',
|
|
144
108
|
fontWeight: 500,
|
|
145
109
|
fontSize: 14,
|
|
@@ -157,13 +121,11 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
157
121
|
},
|
|
158
122
|
activityPrice: {
|
|
159
123
|
id: (0, _uuid.v4)(),
|
|
160
|
-
contentId: contentId,
|
|
161
124
|
open: true,
|
|
162
|
-
type: '
|
|
125
|
+
type: 'Text',
|
|
163
126
|
specialContent: [],
|
|
164
127
|
text: 'Flash Deal',
|
|
165
128
|
content: {
|
|
166
|
-
sizeType: 'Customize font styles',
|
|
167
129
|
fontFamily: 'Open Sans',
|
|
168
130
|
fontWeight: 600,
|
|
169
131
|
fontSize: 14,
|
|
@@ -181,13 +143,11 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
181
143
|
},
|
|
182
144
|
salesPrice: {
|
|
183
145
|
id: (0, _uuid.v4)(),
|
|
184
|
-
contentId: contentId,
|
|
185
146
|
open: true,
|
|
186
|
-
type: '
|
|
147
|
+
type: 'Text',
|
|
187
148
|
specialContent: [],
|
|
188
149
|
text: 'Flash Deal',
|
|
189
150
|
content: {
|
|
190
|
-
sizeType: 'Customize font styles',
|
|
191
151
|
fontFamily: 'Open Sans',
|
|
192
152
|
fontWeight: 500,
|
|
193
153
|
fontSize: 10,
|
|
@@ -207,28 +167,9 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
207
167
|
open: true
|
|
208
168
|
}
|
|
209
169
|
},
|
|
210
|
-
spacing: {
|
|
211
|
-
pc: {
|
|
212
|
-
paddingTop: 0,
|
|
213
|
-
paddingBottom: 0,
|
|
214
|
-
paddingLeft: 0,
|
|
215
|
-
paddingRight: 0,
|
|
216
|
-
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
217
|
-
},
|
|
218
|
-
mobile: {
|
|
219
|
-
paddingTop: 0,
|
|
220
|
-
paddingBottom: 0,
|
|
221
|
-
paddingLeft: 0,
|
|
222
|
-
paddingRight: 0,
|
|
223
|
-
marginBottom: window.magicDesign.compSpacing
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
170
|
customize: {
|
|
227
|
-
layout: '
|
|
228
|
-
align: 'left'
|
|
229
|
-
pcRowNum: 6,
|
|
230
|
-
pcMaxRowNum: 6,
|
|
231
|
-
pcMinRowNum: 5
|
|
171
|
+
layout: 'left',
|
|
172
|
+
align: 'left'
|
|
232
173
|
},
|
|
233
174
|
background: {
|
|
234
175
|
opacity: 100,
|
|
@@ -9,8 +9,6 @@ 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");
|
|
@@ -72,9 +70,7 @@ function (_super) {
|
|
|
72
70
|
|
|
73
71
|
FlashDeal.prototype.render = function () {
|
|
74
72
|
var nodeData = this.props.nodeData;
|
|
75
|
-
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(
|
|
76
|
-
panelProps: nodeData
|
|
77
|
-
}) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
73
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
78
74
|
panelProps: nodeData
|
|
79
75
|
}));
|
|
80
76
|
};
|
|
@@ -9,7 +9,11 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
require("./index.less");
|
|
11
11
|
|
|
12
|
-
var _defImg = _interopRequireDefault(require("./imgs/
|
|
12
|
+
var _defImg = _interopRequireDefault(require("./imgs/defImg1.png"));
|
|
13
|
+
|
|
14
|
+
var _defImg2 = _interopRequireDefault(require("./imgs/defImg2.png"));
|
|
15
|
+
|
|
16
|
+
var _defImg3 = _interopRequireDefault(require("./imgs/defImg3.png"));
|
|
13
17
|
|
|
14
18
|
var _ProductItem = _interopRequireDefault(require("../../../../common/components/ProductItem"));
|
|
15
19
|
|
|
@@ -218,34 +222,31 @@ var defaultData = [{
|
|
|
218
222
|
imgUrlContent: {
|
|
219
223
|
url: _defImg["default"]
|
|
220
224
|
},
|
|
221
|
-
offerName: '
|
|
222
|
-
salesPrice:
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
salePercent: 500,
|
|
225
|
+
offerName: 'DITO STARTER PACK + 3GB Data',
|
|
226
|
+
salesPrice: 49,
|
|
227
|
+
marketPrice: 100,
|
|
228
|
+
discountPercent: 51,
|
|
229
|
+
salePercent: 5000,
|
|
227
230
|
sppType: '2'
|
|
228
231
|
}, {
|
|
229
232
|
imgUrlContent: {
|
|
230
|
-
url:
|
|
233
|
+
url: _defImg2["default"]
|
|
231
234
|
},
|
|
232
|
-
offerName: '
|
|
233
|
-
salesPrice:
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
salePercent: 500,
|
|
235
|
+
offerName: 'DITO Level Up 99 x 365 days',
|
|
236
|
+
salesPrice: 594,
|
|
237
|
+
marketPrice: 1188,
|
|
238
|
+
discountPercent: 50,
|
|
239
|
+
salePercent: 5000,
|
|
238
240
|
sppType: '2'
|
|
239
241
|
}, {
|
|
240
242
|
imgUrlContent: {
|
|
241
|
-
url:
|
|
243
|
+
url: _defImg3["default"]
|
|
242
244
|
},
|
|
243
|
-
offerName: '
|
|
244
|
-
salesPrice:
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
salePercent: 500,
|
|
245
|
+
offerName: 'DITO Level-Up Pack 99 7GB',
|
|
246
|
+
salesPrice: 99,
|
|
247
|
+
marketPrice: 138,
|
|
248
|
+
discountPercent: 28,
|
|
249
|
+
salePercent: 5000,
|
|
249
250
|
sppType: '2'
|
|
250
251
|
}];
|
|
251
252
|
|
|
@@ -383,8 +384,22 @@ function (_super) {
|
|
|
383
384
|
|
|
384
385
|
var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
|
|
385
386
|
|
|
387
|
+
var bgStyle = {};
|
|
388
|
+
|
|
389
|
+
if (panelProps.background.bgType === 'color') {
|
|
390
|
+
bgStyle = {
|
|
391
|
+
backgroundColor: (0, _commonUtil.getColorRgba)(panelProps.background.color || '#fff', panelProps.background.opacity / 100 || 1)
|
|
392
|
+
};
|
|
393
|
+
} else {
|
|
394
|
+
bgStyle = {
|
|
395
|
+
background: "url(" + panelProps.background.image + ") no-repeat center",
|
|
396
|
+
backgroundSize: '100%'
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
|
|
386
400
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
387
|
-
className: "m-flash-deal-mobile"
|
|
401
|
+
className: "m-flash-deal-mobile",
|
|
402
|
+
style: bgStyle
|
|
388
403
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
389
404
|
className: "flash-deal-title"
|
|
390
405
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -424,8 +439,7 @@ function (_super) {
|
|
|
424
439
|
|
|
425
440
|
return (0, _coreUtil.clickUrl)("/product/detail/" + item.offerId + "?productId=" + ((_a = item.sppProductId) !== null && _a !== void 0 ? _a : ''));
|
|
426
441
|
},
|
|
427
|
-
panelProps: panelProps.content
|
|
428
|
-
unknownPrice: isWill
|
|
442
|
+
panelProps: panelProps.content
|
|
429
443
|
});
|
|
430
444
|
}))));
|
|
431
445
|
};
|
|
@@ -39,7 +39,7 @@ var MobileNavGroupSourceJSON = function MobileNavGroupSourceJSON() {
|
|
|
39
39
|
specialContent: [],
|
|
40
40
|
text: 'name',
|
|
41
41
|
content: {
|
|
42
|
-
sizeType: '
|
|
42
|
+
sizeType: 'Headline 1',
|
|
43
43
|
fontFamily: 'Open Sans',
|
|
44
44
|
fontWeight: 600,
|
|
45
45
|
fontSize: 12,
|
|
@@ -66,19 +66,18 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
66
66
|
pc: {
|
|
67
67
|
paddingTop: 10,
|
|
68
68
|
paddingBottom: 10,
|
|
69
|
-
marginBottom:
|
|
69
|
+
marginBottom: 0
|
|
70
70
|
},
|
|
71
71
|
mobile: {
|
|
72
72
|
paddingTop: 10,
|
|
73
73
|
paddingBottom: 10,
|
|
74
|
-
marginBottom:
|
|
74
|
+
marginBottom: 0
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
customize: {
|
|
78
78
|
layout: 'newline',
|
|
79
79
|
rowNum: 4,
|
|
80
|
-
mobileMaxRowNum: 5
|
|
81
|
-
mobileMinRowNum: 3
|
|
80
|
+
mobileMaxRowNum: 5
|
|
82
81
|
},
|
|
83
82
|
background: {
|
|
84
83
|
opacity: 100,
|
|
@@ -50,27 +50,17 @@ function (_super) {
|
|
|
50
50
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
51
51
|
|
|
52
52
|
_this.calcWidth = function (num) {
|
|
53
|
-
return (100 - (num - 1) *
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
_this.tileCalcWidth = function (num) {
|
|
57
|
-
return (100 - (num - 1) * 3) / (num + 0.5) + "%";
|
|
53
|
+
return (100 - (num - 1) * 2) / num + "%";
|
|
58
54
|
};
|
|
59
55
|
|
|
60
56
|
_this.getCardStyle = function (source, i) {
|
|
61
57
|
var data = _this.props.data;
|
|
62
58
|
var cardStyle = {};
|
|
59
|
+
cardStyle.marginRight = (1 + i) % data.customize.rowNum !== 0 ? '2%' : 0;
|
|
63
60
|
|
|
64
61
|
if (data.customize.layout === 'newline') {
|
|
65
|
-
|
|
66
|
-
cardStyle.marginTop = 12;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
cardStyle.marginRight = (1 + i) % data.customize.rowNum !== 0 ? '3%' : 0;
|
|
62
|
+
cardStyle.marginBottom = 12;
|
|
70
63
|
cardStyle.width = _this.calcWidth(data.customize.rowNum);
|
|
71
|
-
} else {
|
|
72
|
-
cardStyle.marginRight = '3%';
|
|
73
|
-
cardStyle.width = _this.tileCalcWidth(data.customize.rowNum);
|
|
74
64
|
}
|
|
75
65
|
|
|
76
66
|
return cardStyle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.mobile-navigation-mobile {
|
|
2
2
|
// display: flex;
|
|
3
3
|
// flex-direction: column;
|
|
4
|
-
padding
|
|
4
|
+
padding: 18px 0;
|
|
5
5
|
.group-wrap {
|
|
6
6
|
padding: 0 20px;
|
|
7
7
|
display: flex;
|
|
@@ -29,10 +29,9 @@
|
|
|
29
29
|
overflow-x: auto;
|
|
30
30
|
flex-wrap: nowrap;
|
|
31
31
|
scroll-snap-type: x;
|
|
32
|
-
padding: 0 15px;
|
|
33
32
|
.one-card {
|
|
34
|
-
flex-shrink: 0;
|
|
35
33
|
scroll-snap-align: end;
|
|
34
|
+
min-width: 30%;
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
}
|