@fonixtree/magic-design 0.0.104 → 0.0.106
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 +7 -7
- 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 +7 -7
- 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
|
@@ -9,17 +9,12 @@ var _uuid = require("uuid");
|
|
|
9
9
|
|
|
10
10
|
var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
11
11
|
var groupId = (0, _uuid.v4)();
|
|
12
|
-
var imageId = (0, _uuid.v4)();
|
|
13
|
-
var titleId = (0, _uuid.v4)();
|
|
14
|
-
var textId = (0, _uuid.v4)();
|
|
15
|
-
var buttonId = (0, _uuid.v4)();
|
|
16
|
-
var secButtonId = (0, _uuid.v4)();
|
|
17
12
|
return {
|
|
18
13
|
id: groupId,
|
|
19
14
|
image: {
|
|
20
15
|
parentId: groupId,
|
|
21
|
-
id:
|
|
22
|
-
open:
|
|
16
|
+
id: (0, _uuid.v4)(),
|
|
17
|
+
open: false,
|
|
23
18
|
type: 'IMAGE',
|
|
24
19
|
content: {
|
|
25
20
|
h5Name: 'name2',
|
|
@@ -38,17 +33,18 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
38
33
|
},
|
|
39
34
|
title: {
|
|
40
35
|
parentId: groupId,
|
|
41
|
-
id:
|
|
36
|
+
id: (0, _uuid.v4)(),
|
|
42
37
|
open: true,
|
|
43
38
|
type: 'TEXT',
|
|
44
39
|
specialContent: [],
|
|
45
40
|
text: 'Title of this group',
|
|
46
41
|
content: {
|
|
47
|
-
sizeType: '
|
|
42
|
+
sizeType: 'Headline 1',
|
|
48
43
|
fontFamily: 'Open Sans',
|
|
49
44
|
fontWeight: 600,
|
|
50
45
|
fontSize: 12,
|
|
51
|
-
color: '#232F46'
|
|
46
|
+
color: '#232F46',
|
|
47
|
+
width: 0
|
|
52
48
|
},
|
|
53
49
|
underline: {
|
|
54
50
|
open: false,
|
|
@@ -59,24 +55,25 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
59
55
|
},
|
|
60
56
|
text: {
|
|
61
57
|
parentId: groupId,
|
|
62
|
-
id:
|
|
58
|
+
id: (0, _uuid.v4)(),
|
|
63
59
|
open: true,
|
|
64
60
|
type: 'TEXT',
|
|
65
61
|
specialContent: [],
|
|
66
62
|
text: 'Please enter a description',
|
|
67
63
|
content: {
|
|
68
|
-
sizeType: '
|
|
64
|
+
sizeType: 'Headline 1',
|
|
69
65
|
fontFamily: 'Open Sans',
|
|
70
66
|
fontWeight: 400,
|
|
71
67
|
fontSize: 10,
|
|
72
|
-
color: '#8493AF'
|
|
68
|
+
color: '#8493AF',
|
|
69
|
+
width: 0
|
|
73
70
|
},
|
|
74
71
|
underline: {},
|
|
75
72
|
vertical: {}
|
|
76
73
|
},
|
|
77
74
|
button: {
|
|
78
75
|
parentId: groupId,
|
|
79
|
-
id:
|
|
76
|
+
id: (0, _uuid.v4)(),
|
|
80
77
|
open: true,
|
|
81
78
|
type: 'BUTTON',
|
|
82
79
|
text: 'Button',
|
|
@@ -85,7 +82,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
85
82
|
backgroundColor: '#2F54EB'
|
|
86
83
|
},
|
|
87
84
|
buttonText: {
|
|
88
|
-
sizeType: '
|
|
85
|
+
sizeType: 'Headline 1',
|
|
89
86
|
fontFamily: 'Open Sans',
|
|
90
87
|
fontWeight: 400,
|
|
91
88
|
fontSize: 10,
|
|
@@ -101,27 +98,13 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
101
98
|
iconUrl: '',
|
|
102
99
|
layout: 'right'
|
|
103
100
|
},
|
|
104
|
-
spacing: {
|
|
105
|
-
pc: {
|
|
106
|
-
paddingTop: 6,
|
|
107
|
-
paddingBottom: 6,
|
|
108
|
-
paddingLeft: 10,
|
|
109
|
-
paddingRight: 10
|
|
110
|
-
},
|
|
111
|
-
mobile: {
|
|
112
|
-
paddingTop: 6,
|
|
113
|
-
paddingBottom: 6,
|
|
114
|
-
paddingLeft: 10,
|
|
115
|
-
paddingRight: 10
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
101
|
hover: {
|
|
119
102
|
open: false,
|
|
120
103
|
content: {
|
|
121
104
|
backgroundColor: '#0d39ed'
|
|
122
105
|
},
|
|
123
106
|
buttonText: {
|
|
124
|
-
sizeType: '
|
|
107
|
+
sizeType: 'Headline 1',
|
|
125
108
|
fontFamily: 'Open Sans',
|
|
126
109
|
fontWeight: 600,
|
|
127
110
|
fontSize: 14,
|
|
@@ -137,11 +120,15 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
137
120
|
iconUrl: '',
|
|
138
121
|
layout: 'right'
|
|
139
122
|
}
|
|
123
|
+
},
|
|
124
|
+
spacing: {
|
|
125
|
+
pc: {},
|
|
126
|
+
mobile: {}
|
|
140
127
|
}
|
|
141
128
|
},
|
|
142
129
|
secondButton: {
|
|
143
130
|
parentId: groupId,
|
|
144
|
-
id:
|
|
131
|
+
id: (0, _uuid.v4)(),
|
|
145
132
|
open: true,
|
|
146
133
|
type: 'BUTTON',
|
|
147
134
|
text: 'More',
|
|
@@ -150,7 +137,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
150
137
|
backgroundColor: '#fff'
|
|
151
138
|
},
|
|
152
139
|
buttonText: {
|
|
153
|
-
sizeType: '
|
|
140
|
+
sizeType: 'Headline 1',
|
|
154
141
|
fontFamily: 'Open Sans',
|
|
155
142
|
fontWeight: 400,
|
|
156
143
|
fontSize: 10,
|
|
@@ -166,27 +153,13 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
166
153
|
iconUrl: '',
|
|
167
154
|
layout: 'right'
|
|
168
155
|
},
|
|
169
|
-
spacing: {
|
|
170
|
-
pc: {
|
|
171
|
-
paddingTop: 6,
|
|
172
|
-
paddingBottom: 6,
|
|
173
|
-
paddingLeft: 10,
|
|
174
|
-
paddingRight: 10
|
|
175
|
-
},
|
|
176
|
-
mobile: {
|
|
177
|
-
paddingTop: 6,
|
|
178
|
-
paddingBottom: 6,
|
|
179
|
-
paddingLeft: 10,
|
|
180
|
-
paddingRight: 10
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
156
|
hover: {
|
|
184
157
|
open: false,
|
|
185
158
|
content: {
|
|
186
159
|
backgroundColor: '#E9F0FF'
|
|
187
160
|
},
|
|
188
161
|
buttonText: {
|
|
189
|
-
sizeType: '
|
|
162
|
+
sizeType: 'Headline 1',
|
|
190
163
|
fontFamily: 'Open Sans',
|
|
191
164
|
fontWeight: 600,
|
|
192
165
|
fontSize: 14,
|
|
@@ -202,6 +175,10 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
202
175
|
iconUrl: '',
|
|
203
176
|
layout: 'right'
|
|
204
177
|
}
|
|
178
|
+
},
|
|
179
|
+
spacing: {
|
|
180
|
+
pc: {},
|
|
181
|
+
mobile: {}
|
|
205
182
|
}
|
|
206
183
|
},
|
|
207
184
|
background: {
|
|
@@ -214,7 +191,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
214
191
|
open: false,
|
|
215
192
|
image: {
|
|
216
193
|
parentId: groupId,
|
|
217
|
-
id:
|
|
194
|
+
id: (0, _uuid.v4)(),
|
|
218
195
|
open: false,
|
|
219
196
|
type: 'IMAGE',
|
|
220
197
|
content: {
|
|
@@ -234,7 +211,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
234
211
|
},
|
|
235
212
|
title: {
|
|
236
213
|
parentId: groupId,
|
|
237
|
-
id:
|
|
214
|
+
id: (0, _uuid.v4)(),
|
|
238
215
|
open: true,
|
|
239
216
|
type: 'TEXT',
|
|
240
217
|
specialContent: [],
|
|
@@ -254,13 +231,13 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
254
231
|
vertical: {}
|
|
255
232
|
},
|
|
256
233
|
text: {
|
|
257
|
-
id:
|
|
234
|
+
id: (0, _uuid.v4)(),
|
|
258
235
|
open: true,
|
|
259
236
|
type: 'TEXT',
|
|
260
237
|
specialContent: [],
|
|
261
238
|
text: '',
|
|
262
239
|
content: {
|
|
263
|
-
sizeType: '
|
|
240
|
+
sizeType: 'Headline 1',
|
|
264
241
|
fontFamily: 'Open Sans',
|
|
265
242
|
fontWeight: 400,
|
|
266
243
|
fontSize: 18,
|
|
@@ -271,7 +248,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
271
248
|
vertical: {}
|
|
272
249
|
},
|
|
273
250
|
button: {
|
|
274
|
-
id:
|
|
251
|
+
id: (0, _uuid.v4)(),
|
|
275
252
|
open: true,
|
|
276
253
|
type: 'BUTTON',
|
|
277
254
|
text: 'Button',
|
|
@@ -280,7 +257,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
280
257
|
backgroundColor: '#2F54EB'
|
|
281
258
|
},
|
|
282
259
|
buttonText: {
|
|
283
|
-
sizeType: '
|
|
260
|
+
sizeType: 'Headline 1',
|
|
284
261
|
fontFamily: 'Open Sans',
|
|
285
262
|
fontWeight: 600,
|
|
286
263
|
fontSize: 14,
|
|
@@ -302,7 +279,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
302
279
|
backgroundColor: '#0d39ed'
|
|
303
280
|
},
|
|
304
281
|
buttonText: {
|
|
305
|
-
sizeType: '
|
|
282
|
+
sizeType: 'Headline 1',
|
|
306
283
|
fontFamily: 'Open Sans',
|
|
307
284
|
fontWeight: 600,
|
|
308
285
|
fontSize: 14,
|
|
@@ -321,7 +298,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
321
298
|
}
|
|
322
299
|
},
|
|
323
300
|
secondButton: {
|
|
324
|
-
id:
|
|
301
|
+
id: (0, _uuid.v4)(),
|
|
325
302
|
open: true,
|
|
326
303
|
type: 'BUTTON',
|
|
327
304
|
text: 'More',
|
|
@@ -330,7 +307,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
330
307
|
backgroundColor: '#fff'
|
|
331
308
|
},
|
|
332
309
|
buttonText: {
|
|
333
|
-
sizeType: '
|
|
310
|
+
sizeType: 'Headline 1',
|
|
334
311
|
fontFamily: 'Open Sans',
|
|
335
312
|
fontWeight: 600,
|
|
336
313
|
fontSize: 14,
|
|
@@ -352,7 +329,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
352
329
|
backgroundColor: '#E9F0FF'
|
|
353
330
|
},
|
|
354
331
|
buttonText: {
|
|
355
|
-
sizeType: '
|
|
332
|
+
sizeType: 'Headline 1',
|
|
356
333
|
fontFamily: 'Open Sans',
|
|
357
334
|
fontWeight: 600,
|
|
358
335
|
fontSize: 14,
|
|
@@ -386,6 +363,151 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
386
363
|
return {
|
|
387
364
|
id: (0, _uuid.v4)(),
|
|
388
365
|
type: 'IMAGE_TEXT',
|
|
366
|
+
// headline: {
|
|
367
|
+
// id: uuidv4(),
|
|
368
|
+
// open: true,
|
|
369
|
+
// type: 'TEXT',
|
|
370
|
+
// specialContent: [],
|
|
371
|
+
// text: 'Digital Maturity',
|
|
372
|
+
// content: {
|
|
373
|
+
// sizeType: 'Headline 1',
|
|
374
|
+
// fontFamily: 'Open Sans',
|
|
375
|
+
// fontWeight: 600,
|
|
376
|
+
// fontSize: 28,
|
|
377
|
+
// color: '#232F46',
|
|
378
|
+
// width: 0,
|
|
379
|
+
// },
|
|
380
|
+
// underline: {
|
|
381
|
+
// open: false,
|
|
382
|
+
// textDecorationColor: '',
|
|
383
|
+
// textDecorationStyle: 'solid',
|
|
384
|
+
// },
|
|
385
|
+
// vertical: {
|
|
386
|
+
// },
|
|
387
|
+
// },
|
|
388
|
+
// subtitle: {
|
|
389
|
+
// id: uuidv4(),
|
|
390
|
+
// open: true,
|
|
391
|
+
// type: 'TEXT',
|
|
392
|
+
// specialContent: [],
|
|
393
|
+
// text: 'Freedom to innovate and create with ODA compliant B/OSS solutions',
|
|
394
|
+
// content: {
|
|
395
|
+
// sizeType: 'Headline 1',
|
|
396
|
+
// fontFamily: 'Open Sans',
|
|
397
|
+
// fontWeight: 400,
|
|
398
|
+
// // textAlign: 'center',
|
|
399
|
+
// fontSize: 16,
|
|
400
|
+
// color: '#232F46',
|
|
401
|
+
// width: 0,
|
|
402
|
+
// },
|
|
403
|
+
// underline: {
|
|
404
|
+
// open: false,
|
|
405
|
+
// textDecorationColor: '',
|
|
406
|
+
// textDecorationStyle: 'solid',
|
|
407
|
+
// },
|
|
408
|
+
// vertical: {
|
|
409
|
+
// },
|
|
410
|
+
// },
|
|
411
|
+
// button: {
|
|
412
|
+
// id: uuidv4(),
|
|
413
|
+
// open: true,
|
|
414
|
+
// type: 'BUTTON',
|
|
415
|
+
// text: 'Button',
|
|
416
|
+
// content: {
|
|
417
|
+
// url: '',
|
|
418
|
+
// backgroundColor: '#2F54EB',
|
|
419
|
+
// },
|
|
420
|
+
// buttonText: {
|
|
421
|
+
// sizeType: 'Headline 1',
|
|
422
|
+
// fontFamily: 'Open Sans',
|
|
423
|
+
// fontWeight: 600,
|
|
424
|
+
// fontSize: 14,
|
|
425
|
+
// fontStyle: 'normal',
|
|
426
|
+
// color: '#fff',
|
|
427
|
+
// },
|
|
428
|
+
// buttonBorder: {
|
|
429
|
+
// open: true,
|
|
430
|
+
// borderColor: '',
|
|
431
|
+
// borderRadius: 6,
|
|
432
|
+
// },
|
|
433
|
+
// buttonIcon: {
|
|
434
|
+
// iconUrl: '',
|
|
435
|
+
// layout: 'right',
|
|
436
|
+
// },
|
|
437
|
+
// hover: {
|
|
438
|
+
// open: false,
|
|
439
|
+
// content: {
|
|
440
|
+
// backgroundColor: '#0d39ed',
|
|
441
|
+
// },
|
|
442
|
+
// buttonText: {
|
|
443
|
+
// sizeType: 'Headline 1',
|
|
444
|
+
// fontFamily: 'Open Sans',
|
|
445
|
+
// fontWeight: 600,
|
|
446
|
+
// fontSize: 14,
|
|
447
|
+
// fontStyle: 'normal',
|
|
448
|
+
// color: '#fff',
|
|
449
|
+
// },
|
|
450
|
+
// buttonBorder: {
|
|
451
|
+
// open: true,
|
|
452
|
+
// borderColor: '',
|
|
453
|
+
// borderRadius: 6,
|
|
454
|
+
// },
|
|
455
|
+
// buttonIcon: {
|
|
456
|
+
// iconUrl: '',
|
|
457
|
+
// layout: 'right',
|
|
458
|
+
// },
|
|
459
|
+
// },
|
|
460
|
+
// },
|
|
461
|
+
// secondButton: {
|
|
462
|
+
// id: uuidv4(),
|
|
463
|
+
// open: false,
|
|
464
|
+
// type: 'BUTTON',
|
|
465
|
+
// text: 'Button',
|
|
466
|
+
// content: {
|
|
467
|
+
// url: '',
|
|
468
|
+
// backgroundColor: '#FFFFFF',
|
|
469
|
+
// },
|
|
470
|
+
// buttonText: {
|
|
471
|
+
// sizeType: 'Headline 1',
|
|
472
|
+
// fontFamily: 'Open Sans',
|
|
473
|
+
// fontWeight: 600,
|
|
474
|
+
// fontSize: 14,
|
|
475
|
+
// fontStyle: 'normal',
|
|
476
|
+
// color: '#2F54EB',
|
|
477
|
+
// },
|
|
478
|
+
// buttonBorder: {
|
|
479
|
+
// open: true,
|
|
480
|
+
// borderColor: '#2F54EB',
|
|
481
|
+
// borderRadius: 6,
|
|
482
|
+
// },
|
|
483
|
+
// buttonIcon: {
|
|
484
|
+
// iconUrl: '',
|
|
485
|
+
// layout: 'right',
|
|
486
|
+
// },
|
|
487
|
+
// hover: {
|
|
488
|
+
// open: false,
|
|
489
|
+
// content: {
|
|
490
|
+
// backgroundColor: '#0d39ed',
|
|
491
|
+
// },
|
|
492
|
+
// buttonText: {
|
|
493
|
+
// sizeType: 'Headline 1',
|
|
494
|
+
// fontFamily: 'Open Sans',
|
|
495
|
+
// fontWeight: 600,
|
|
496
|
+
// fontSize: 14,
|
|
497
|
+
// fontStyle: 'normal',
|
|
498
|
+
// color: '#fff',
|
|
499
|
+
// },
|
|
500
|
+
// buttonBorder: {
|
|
501
|
+
// open: true,
|
|
502
|
+
// borderColor: '',
|
|
503
|
+
// borderRadius: 6,
|
|
504
|
+
// },
|
|
505
|
+
// buttonIcon: {
|
|
506
|
+
// iconUrl: '',
|
|
507
|
+
// layout: 'right',
|
|
508
|
+
// },
|
|
509
|
+
// },
|
|
510
|
+
// },
|
|
389
511
|
spacing: {
|
|
390
512
|
pc: {
|
|
391
513
|
paddingTop: 10,
|
|
@@ -15,6 +15,8 @@ var _AlignSelector = require("../../../../../common/AlignSelector");
|
|
|
15
15
|
|
|
16
16
|
var _components = require("../../../../../meta-comp/components");
|
|
17
17
|
|
|
18
|
+
var _businessUtil = require("../../../../../utils/businessUtil");
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
20
22
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -102,9 +104,10 @@ function (_super) {
|
|
|
102
104
|
ImageTextMobile.prototype.render = function () {
|
|
103
105
|
var _this = this;
|
|
104
106
|
|
|
105
|
-
var data = this.props.data; //
|
|
107
|
+
var data = this.props.data; // const { ready } = this.state;
|
|
108
|
+
// console.log('----imagetext mobile', data);
|
|
106
109
|
|
|
107
|
-
var wrapStyle =
|
|
110
|
+
var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
|
|
108
111
|
wrapStyle.textAlign = data.customize.align; // if (data.background.bgType === 'color') {
|
|
109
112
|
// wrapStyle.backgroundColor = data.background.color;
|
|
110
113
|
// wrapStyle.opacity = data.background.opacity ? data.background.opacity : 1;
|
|
@@ -123,7 +126,6 @@ function (_super) {
|
|
|
123
126
|
cardBtnStyle.justifyContent = _AlignSelector.alignItemMap[data.customize.align];
|
|
124
127
|
}
|
|
125
128
|
|
|
126
|
-
console.log('source', data);
|
|
127
129
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
128
130
|
className: (0, _classnames["default"])('image-text-mobile', data.customize.layout.h5Layout),
|
|
129
131
|
style: wrapStyle
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
}
|
|
60
60
|
.card-btn-wrap {
|
|
61
61
|
display: flex;
|
|
62
|
-
.card-
|
|
63
|
-
margin-
|
|
62
|
+
.card-first-btn {
|
|
63
|
+
margin-right: 12px;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
}
|
|
95
95
|
.card-btn-wrap {
|
|
96
96
|
display: flex;
|
|
97
|
-
.card-
|
|
98
|
-
margin-
|
|
97
|
+
.card-first-btn {
|
|
98
|
+
margin-right: 12px;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}
|
|
@@ -135,8 +135,8 @@
|
|
|
135
135
|
flex-direction: column;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
.card-
|
|
139
|
-
margin-
|
|
138
|
+
.card-second-btn {
|
|
139
|
+
margin-top: 8px;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
.card-margin-bottom {
|
|
@@ -170,8 +170,8 @@
|
|
|
170
170
|
}
|
|
171
171
|
.card-btn-wrap {
|
|
172
172
|
display: flex;
|
|
173
|
-
.card-
|
|
174
|
-
margin-
|
|
173
|
+
.card-first-btn {
|
|
174
|
+
margin-right: 12px;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
}
|
|
@@ -11,8 +11,6 @@ require("./index.less");
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var _lodash = require("lodash");
|
|
15
|
-
|
|
16
14
|
var _AlignSelector = require("../../../../../common/AlignSelector");
|
|
17
15
|
|
|
18
16
|
var _components = require("../../../../../meta-comp/components");
|
|
@@ -65,7 +63,7 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
65
63
|
|
|
66
64
|
var maxWidthAndHeight = {
|
|
67
65
|
normal: 410,
|
|
68
|
-
outside:
|
|
66
|
+
outside: 100,
|
|
69
67
|
center: 410
|
|
70
68
|
};
|
|
71
69
|
|
|
@@ -78,26 +76,17 @@ function (_super) {
|
|
|
78
76
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
79
77
|
|
|
80
78
|
_this.state = {
|
|
81
|
-
hoverIndex: -1
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
var maxLayoutWidth = maxWidthAndHeight[data.customize.layout.pcLayout];
|
|
93
|
-
|
|
94
|
-
_this.setState({
|
|
95
|
-
currentMaxWidth: Math.min(cardWidth, maxLayoutWidth)
|
|
96
|
-
});
|
|
97
|
-
} catch (error) {
|
|
98
|
-
console.log(error);
|
|
99
|
-
}
|
|
100
|
-
};
|
|
79
|
+
hoverIndex: -1
|
|
80
|
+
}; // componentDidMount() {
|
|
81
|
+
// this.distroy = autorun(() => {
|
|
82
|
+
// this.setState({
|
|
83
|
+
// clickedGroup: store.clickedGroup,
|
|
84
|
+
// });
|
|
85
|
+
// });
|
|
86
|
+
// }
|
|
87
|
+
// componentWillUnmount() {
|
|
88
|
+
// this.distroy();
|
|
89
|
+
// }
|
|
101
90
|
|
|
102
91
|
_this.calcWidth = function (num) {
|
|
103
92
|
return (100 - (num - 1) * 2) / num + "%";
|
|
@@ -125,32 +114,15 @@ function (_super) {
|
|
|
125
114
|
return _this;
|
|
126
115
|
}
|
|
127
116
|
|
|
128
|
-
ImageTextPc.prototype.componentDidMount = function () {
|
|
129
|
-
var data = this.props.data;
|
|
130
|
-
this.layout = data.customize.layout.pcLayout;
|
|
131
|
-
this.listenCardWidth();
|
|
132
|
-
window.addEventListener('resize', (0, _lodash.debounce)(this.listenCardWidth));
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
ImageTextPc.prototype.componentWillUnmount = function () {
|
|
136
|
-
window.removeEventListener('resize', this.listenCardWidth);
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
ImageTextPc.prototype.componentWillReceiveProps = function (nextProps) {
|
|
140
|
-
if (nextProps.data.customize.layout.pcLayout !== this.layout) {
|
|
141
|
-
this.layout = nextProps.data.customize.layout.pcLayout;
|
|
142
|
-
this.listenCardWidth();
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
|
|
146
117
|
ImageTextPc.prototype.render = function () {
|
|
147
118
|
var _this = this;
|
|
148
119
|
|
|
149
120
|
var data = this.props.data;
|
|
150
|
-
var
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
121
|
+
var hoverIndex = this.state.hoverIndex; // console.log('====================================');
|
|
122
|
+
// console.log(data);
|
|
123
|
+
// console.log('====================================');
|
|
124
|
+
|
|
125
|
+
var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
|
|
154
126
|
wrapStyle.alignItems = _AlignSelector.alignItemMap[data.customize.align];
|
|
155
127
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
156
128
|
className: (0, _classnames["default"])('image-text-pc', data.customize.layout.pcLayout),
|
|
@@ -184,7 +156,7 @@ function (_super) {
|
|
|
184
156
|
data: hoverIndex == i ? source.hover.image : source.image,
|
|
185
157
|
limitWidthHeight: true,
|
|
186
158
|
maxHeight: maxWidthAndHeight[data.customize.layout.pcLayout],
|
|
187
|
-
maxWidth:
|
|
159
|
+
maxWidth: maxWidthAndHeight[data.customize.layout.pcLayout],
|
|
188
160
|
scale: 0.5
|
|
189
161
|
})), (source.title.open && data.customize.layout.pcLayout !== 'center' && hoverIndex != i || hoverIndex == i && source.hover.title.open && data.customize.layout.pcLayout !== 'center') && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
190
162
|
className: "card-title",
|
|
@@ -30,7 +30,7 @@ var getDefaultMetaTextJson = function getDefaultMetaTextJson() {
|
|
|
30
30
|
return {
|
|
31
31
|
id: (0, _uuid.v4)(),
|
|
32
32
|
open: true,
|
|
33
|
-
type: '
|
|
33
|
+
type: 'Text',
|
|
34
34
|
specialContent: [],
|
|
35
35
|
text: 'Thank you for you subscription',
|
|
36
36
|
content: {
|
|
@@ -111,12 +111,12 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
111
111
|
pc: {
|
|
112
112
|
paddingTop: 10,
|
|
113
113
|
paddingBottom: 10,
|
|
114
|
-
marginBottom:
|
|
114
|
+
marginBottom: 0
|
|
115
115
|
},
|
|
116
116
|
mobile: {
|
|
117
117
|
paddingTop: 10,
|
|
118
118
|
paddingBottom: 10,
|
|
119
|
-
marginBottom:
|
|
119
|
+
marginBottom: 0
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
customize: {
|