@fonixtree/magic-design 0.0.71 → 0.0.72
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 -24
- package/es/assets/fonts/magic-box-iconfont.css.bak +12 -24
- 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/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/GroupList/index.js +3 -2
- 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 +1 -2
- package/es/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/es/common/LinkModal/FilteredProductModal/index.less +2 -6
- 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 -8
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/es/composite-comp/bol/components/Banner/mobile/index.js +10 -4
- package/es/composite-comp/bol/components/Banner/pc/index.js +6 -3
- 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 +0 -1
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +16 -12
- package/es/composite-comp/bol/components/Carousel/index.js +6 -1
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +7 -4
- package/es/composite-comp/bol/components/Carousel/pc/index.js +7 -12
- package/es/composite-comp/bol/components/Carousel/pc/index.less +5 -13
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +166 -26
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +5 -2
- 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/Newsletter/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/Newsletter/index.js +6 -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 +4 -4
- package/es/composite-comp/bol/components/Text/index.js +8 -4
- 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/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 +0 -1
- 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/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 +2 -6
- package/es/composite-comp/common/components/ProductItem/index.less +10 -9
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -24
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +8 -8
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +2 -62
- package/es/composite-comp/dito/components/FlashDeal/index.js +1 -5
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -0
- 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 +12 -30
- package/es/composite-comp/dito/components/Recommend/index.js +6 -5
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +35 -40
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +3 -10
- package/es/composite-comp/dito/components/Recommend/pc/index.js +19 -123
- package/es/composite-comp/dito/components/Recommend/pc/index.less +12 -53
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -26
- package/es/composite-comp/dito/components/SearchBar/index.js +2 -7
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +23 -26
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +3 -13
- 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 +3 -21
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -17
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +5 -42
- 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 -13
- package/es/constants/index.js +2 -20
- package/es/constants/layout.js +8 -34
- package/es/core/Designer/CompListPanel/index.js +33 -8
- package/es/core/Designer/ConfigPanel/index.js +23 -72
- 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 +3 -13
- package/es/core/Designer/PageCompList/index.less +10 -10
- package/es/core/Designer/QuickMenuBar/index.js +1 -1
- package/es/core/Designer/ViewArea/index.js +6 -20
- package/es/core/Designer/index.js +37 -42
- package/es/core/Renderer/index.js +2 -17
- package/es/decorator/compositeDecorator.js +12 -45
- package/es/decorator/index.js +0 -8
- package/es/decorator/metaDecorator.js +2 -2
- package/es/locale/en/en.json +1 -14
- package/es/locale/es/es.json +1 -14
- package/es/locale/id/id.json +1 -14
- package/es/meta-comp/components/Button/index.js +13 -32
- package/es/meta-comp/components/Button/index.less +2 -10
- package/es/meta-comp/components/Image/index.js +7 -38
- package/es/meta-comp/components/Image/index.less +0 -2
- package/es/meta-comp/components/Text/index.js +11 -27
- package/es/meta-comp/config-panels/BaseConfig.js +10 -8
- package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -2
- package/es/meta-comp/config-panels/ImageConfig/index.js +4 -17
- package/es/meta-comp/config-panels/TextConfig/index.js +3 -10
- package/es/mobx/Store.js +10 -6
- package/es/utils/coreUtil.js +3 -17
- package/lib/assets/fonts/magic-box-iconfont.css +12 -24
- package/lib/assets/fonts/magic-box-iconfont.css.bak +12 -24
- 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/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/GroupList/index.js +3 -2
- 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 +1 -2
- package/lib/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/lib/common/LinkModal/FilteredProductModal/index.less +2 -6
- 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 -8
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +10 -4
- package/lib/composite-comp/bol/components/Banner/pc/index.js +6 -3
- 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 +0 -1
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +16 -12
- package/lib/composite-comp/bol/components/Carousel/index.js +6 -1
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +7 -4
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +7 -12
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +5 -13
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +166 -26
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +5 -2
- 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/Newsletter/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/Newsletter/index.js +6 -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 +4 -4
- package/lib/composite-comp/bol/components/Text/index.js +8 -4
- 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/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 +0 -1
- 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/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 +2 -6
- package/lib/composite-comp/common/components/ProductItem/index.less +10 -9
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -24
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +8 -8
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +2 -62
- package/lib/composite-comp/dito/components/FlashDeal/index.js +1 -5
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -0
- 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 +12 -30
- package/lib/composite-comp/dito/components/Recommend/index.js +6 -5
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +35 -40
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +3 -10
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +19 -123
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +12 -53
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -26
- package/lib/composite-comp/dito/components/SearchBar/index.js +2 -7
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +23 -26
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +3 -13
- 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 +3 -21
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -17
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +5 -42
- 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 -13
- package/lib/constants/index.js +2 -20
- package/lib/constants/layout.js +8 -34
- package/lib/core/Designer/CompListPanel/index.js +33 -8
- package/lib/core/Designer/ConfigPanel/index.js +23 -72
- 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 +3 -13
- package/lib/core/Designer/PageCompList/index.less +10 -10
- package/lib/core/Designer/QuickMenuBar/index.js +1 -1
- package/lib/core/Designer/ViewArea/index.js +6 -20
- package/lib/core/Designer/index.js +37 -42
- package/lib/core/Renderer/index.js +2 -17
- package/lib/decorator/compositeDecorator.js +12 -45
- package/lib/decorator/index.js +0 -8
- package/lib/decorator/metaDecorator.js +2 -2
- package/lib/locale/en/en.json +1 -14
- package/lib/locale/es/es.json +1 -14
- package/lib/locale/id/id.json +1 -14
- package/lib/meta-comp/components/Button/index.js +13 -32
- package/lib/meta-comp/components/Button/index.less +2 -10
- package/lib/meta-comp/components/Image/index.js +7 -38
- package/lib/meta-comp/components/Image/index.less +0 -2
- package/lib/meta-comp/components/Text/index.js +11 -27
- package/lib/meta-comp/config-panels/BaseConfig.js +10 -8
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -2
- package/lib/meta-comp/config-panels/ImageConfig/index.js +4 -17
- package/lib/meta-comp/config-panels/TextConfig/index.js +3 -10
- package/lib/mobx/Store.js +10 -6
- package/lib/utils/coreUtil.js +3 -17
- package/package.json +3 -5
- package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- 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/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -141
- 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 -141
- 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/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 -578
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +0 -121
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -131
- 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 -478
- package/es/composite-comp/dito/components/PcNavigation/pc/index.less +0 -98
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -151
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +0 -59
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -130
- 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 -195
- package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
- 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/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/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- 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/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -141
- 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 -141
- 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/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 -578
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +0 -121
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -131
- 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 -478
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +0 -98
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -151
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +0 -59
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -130
- 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 -195
- package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
- 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/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
|
@@ -7,6 +7,10 @@ exports.imagesGroupSourceJSON = exports.getDefaultJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
+
var _defaultImg = _interopRequireDefault(require("./imgs/defaultImg.png"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
10
14
|
var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
11
15
|
var groupId = (0, _uuid.v4)();
|
|
12
16
|
return {
|
|
@@ -20,8 +24,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
20
24
|
content: {
|
|
21
25
|
h5Name: 'h5Name',
|
|
22
26
|
pcName: 'pcName',
|
|
23
|
-
h5ImgSrc:
|
|
24
|
-
pcImgSrc:
|
|
27
|
+
h5ImgSrc: _defaultImg["default"],
|
|
28
|
+
pcImgSrc: _defaultImg["default"],
|
|
25
29
|
clickUrl: ''
|
|
26
30
|
},
|
|
27
31
|
hover: {
|
|
@@ -40,7 +44,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
40
44
|
specialContent: [],
|
|
41
45
|
text: 'Title of this group',
|
|
42
46
|
content: {
|
|
43
|
-
sizeType: '
|
|
47
|
+
sizeType: 'Headline 1',
|
|
44
48
|
fontFamily: 'Open Sans',
|
|
45
49
|
fontWeight: 600,
|
|
46
50
|
fontSize: 16,
|
|
@@ -63,7 +67,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
63
67
|
specialContent: [],
|
|
64
68
|
text: 'Please enter a description',
|
|
65
69
|
content: {
|
|
66
|
-
sizeType: '
|
|
70
|
+
sizeType: 'Headline 1',
|
|
67
71
|
fontFamily: 'Open Sans',
|
|
68
72
|
fontWeight: 400,
|
|
69
73
|
fontSize: 14,
|
|
@@ -82,8 +86,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
82
86
|
content: {
|
|
83
87
|
h5Name: '',
|
|
84
88
|
pcName: '',
|
|
85
|
-
h5ImgSrc:
|
|
86
|
-
pcImgSrc:
|
|
89
|
+
h5ImgSrc: _defaultImg["default"],
|
|
90
|
+
pcImgSrc: _defaultImg["default"],
|
|
87
91
|
clickUrl: ''
|
|
88
92
|
},
|
|
89
93
|
hover: {
|
|
@@ -105,7 +109,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
105
109
|
backgroundColor: '#E6EAF0'
|
|
106
110
|
},
|
|
107
111
|
buttonText: {
|
|
108
|
-
sizeType: '
|
|
112
|
+
// sizeType: 'Headline 1',
|
|
109
113
|
fontFamily: 'Open Sans',
|
|
110
114
|
fontWeight: 600,
|
|
111
115
|
fontSize: 14,
|
|
@@ -141,7 +145,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
141
145
|
backgroundColor: '#E6EAF0'
|
|
142
146
|
},
|
|
143
147
|
buttonText: {
|
|
144
|
-
sizeType: '
|
|
148
|
+
// sizeType: 'Headline 1',
|
|
145
149
|
fontFamily: 'Open Sans',
|
|
146
150
|
fontWeight: 600,
|
|
147
151
|
fontSize: 14,
|
|
@@ -170,7 +174,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
170
174
|
backgroundColor: '#E6EAF0'
|
|
171
175
|
},
|
|
172
176
|
buttonText: {
|
|
173
|
-
sizeType: '
|
|
177
|
+
// sizeType: 'Headline 1',
|
|
174
178
|
fontFamily: 'Open Sans',
|
|
175
179
|
fontWeight: 600,
|
|
176
180
|
fontSize: 14,
|
|
@@ -206,7 +210,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
206
210
|
backgroundColor: '#E6EAF0'
|
|
207
211
|
},
|
|
208
212
|
buttonText: {
|
|
209
|
-
sizeType: '
|
|
213
|
+
// sizeType: 'Headline 1',
|
|
210
214
|
fontFamily: 'Open Sans',
|
|
211
215
|
fontWeight: 600,
|
|
212
216
|
fontSize: 14,
|
|
@@ -262,12 +266,12 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
262
266
|
pc: {
|
|
263
267
|
paddingTop: 10,
|
|
264
268
|
paddingBottom: 10,
|
|
265
|
-
marginBottom:
|
|
269
|
+
marginBottom: 0
|
|
266
270
|
},
|
|
267
271
|
mobile: {
|
|
268
272
|
paddingTop: 10,
|
|
269
273
|
paddingBottom: 10,
|
|
270
|
-
marginBottom:
|
|
274
|
+
marginBottom: 0
|
|
271
275
|
}
|
|
272
276
|
},
|
|
273
277
|
customize: {
|
|
@@ -15,6 +15,8 @@ var _defaultJSON = require("./defaultJSON");
|
|
|
15
15
|
|
|
16
16
|
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
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
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -70,7 +72,10 @@ function (_super) {
|
|
|
70
72
|
|
|
71
73
|
Carousel.prototype.render = function () {
|
|
72
74
|
var nodeData = this.props.nodeData;
|
|
73
|
-
|
|
75
|
+
var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
|
|
76
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
+
style: wrapStyle
|
|
78
|
+
}, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
|
|
74
79
|
data: nodeData
|
|
75
80
|
}) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
76
81
|
data: nodeData
|
|
@@ -177,15 +177,18 @@ function (_super) {
|
|
|
177
177
|
autoplay: data.setting.autoplay.open,
|
|
178
178
|
autoplaySpeed: data.setting.autoplay.interval * 1000,
|
|
179
179
|
speed: 500,
|
|
180
|
-
draggable: window.magicDesign.mode === 'renderer',
|
|
181
180
|
slidesToShow: colNum,
|
|
182
|
-
slidesToScroll:
|
|
181
|
+
slidesToScroll: colNum,
|
|
183
182
|
beforeChange: function beforeChange(oldIndex, newIndex) {
|
|
184
183
|
_this.setState({
|
|
185
184
|
sliderIndex: newIndex
|
|
186
185
|
});
|
|
187
186
|
}
|
|
188
|
-
};
|
|
187
|
+
}; // const navStyle = {
|
|
188
|
+
// fontSize: data.setting.navigation.size,
|
|
189
|
+
// color: data.setting.navigation.color,
|
|
190
|
+
// };
|
|
191
|
+
|
|
189
192
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
190
193
|
className: "m-carousel-mobile",
|
|
191
194
|
style: bgStyle
|
|
@@ -222,7 +225,7 @@ function (_super) {
|
|
|
222
225
|
}), item.secondButtonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
223
226
|
data: item.secondButtonTag
|
|
224
227
|
}))));
|
|
225
|
-
})), data.setting.dots.open &&
|
|
228
|
+
})), data.setting.dots.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
226
229
|
className: "swiper-ban"
|
|
227
230
|
}, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
|
|
228
231
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -153,6 +153,8 @@ function (_super) {
|
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
var spacing = data.spacing[window.magicDesign.device];
|
|
157
|
+
if (spacing.contentWidth) bgStyle.width = spacing.contentWidth;
|
|
156
158
|
var settings = {
|
|
157
159
|
className: 'slider-wrap',
|
|
158
160
|
arrows: false,
|
|
@@ -160,9 +162,8 @@ function (_super) {
|
|
|
160
162
|
autoplay: data.setting.autoplay.open,
|
|
161
163
|
autoplaySpeed: data.setting.autoplay.interval * 1000,
|
|
162
164
|
speed: 500,
|
|
163
|
-
draggable: window.magicDesign.mode === 'renderer',
|
|
164
165
|
slidesToShow: colNum,
|
|
165
|
-
slidesToScroll:
|
|
166
|
+
slidesToScroll: colNum,
|
|
166
167
|
beforeChange: function beforeChange(oldIndex, newIndex) {
|
|
167
168
|
_this.setState({
|
|
168
169
|
sliderIndex: newIndex
|
|
@@ -173,12 +174,9 @@ function (_super) {
|
|
|
173
174
|
fontSize: data.setting.navigation.size,
|
|
174
175
|
color: data.setting.navigation.color
|
|
175
176
|
};
|
|
176
|
-
var spacing = data.spacing[window.magicDesign.device];
|
|
177
177
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
178
178
|
className: "m-carousel-pc",
|
|
179
179
|
style: bgStyle
|
|
180
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
181
|
-
className: "content"
|
|
182
180
|
}, data.setting.navigation.open && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
183
181
|
className: "carousel-icon-left",
|
|
184
182
|
onClick: function onClick() {
|
|
@@ -188,11 +186,7 @@ function (_super) {
|
|
|
188
186
|
onMouseLeave: this.mouseLeaveBtn,
|
|
189
187
|
style: navStyle,
|
|
190
188
|
type: "icon-left"
|
|
191
|
-
}), /*#__PURE__*/_react["default"].createElement("
|
|
192
|
-
style: {
|
|
193
|
-
width: spacing.contentWidth || 'calc(100% - 52px)'
|
|
194
|
-
}
|
|
195
|
-
}, /*#__PURE__*/_react["default"].createElement(_reactSlick["default"], _extends({
|
|
189
|
+
}), /*#__PURE__*/_react["default"].createElement(_reactSlick["default"], _extends({
|
|
196
190
|
ref: function ref(slider) {
|
|
197
191
|
return _this.sliderRef = slider;
|
|
198
192
|
}
|
|
@@ -204,6 +198,7 @@ function (_super) {
|
|
|
204
198
|
className: "img"
|
|
205
199
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
206
200
|
data: item.image,
|
|
201
|
+
isBackground: true,
|
|
207
202
|
maxHeight: PC_IMG_SIZE[colNum - 1].maxH,
|
|
208
203
|
maxWidth: PC_IMG_SIZE[colNum - 1].maxW,
|
|
209
204
|
minWidth: PC_IMG_SIZE[colNum - 1].minW
|
|
@@ -225,7 +220,7 @@ function (_super) {
|
|
|
225
220
|
}), item.secondButtonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
226
221
|
data: item.secondButtonTag
|
|
227
222
|
}))));
|
|
228
|
-
}))
|
|
223
|
+
})), data.setting.dots.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
229
224
|
className: "swiper-ban"
|
|
230
225
|
}, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
|
|
231
226
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -250,7 +245,7 @@ function (_super) {
|
|
|
250
245
|
onMouseLeave: this.mouseLeaveBtn,
|
|
251
246
|
style: navStyle,
|
|
252
247
|
type: "icon-right"
|
|
253
|
-
}))
|
|
248
|
+
}));
|
|
254
249
|
};
|
|
255
250
|
|
|
256
251
|
CarouselPc.defaultProps = {
|
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
.m-carousel-pc {
|
|
2
|
+
display: flex;
|
|
2
3
|
position: relative;
|
|
3
|
-
|
|
4
|
-
width: 100%;
|
|
5
|
-
|
|
6
|
-
.content {
|
|
7
|
-
display: flex;
|
|
8
|
-
width: fit-content;
|
|
9
|
-
margin: 0 auto;
|
|
10
|
-
}
|
|
4
|
+
margin: 0 auto;
|
|
11
5
|
|
|
12
6
|
.carousel-icon-left {
|
|
13
7
|
float: left;
|
|
14
|
-
margin-left:
|
|
8
|
+
margin-left: 50px;
|
|
15
9
|
}
|
|
16
10
|
|
|
17
11
|
.carousel-icon-right {
|
|
18
12
|
float: right;
|
|
19
|
-
margin-right:
|
|
13
|
+
margin-right: 50px;
|
|
20
14
|
}
|
|
21
15
|
|
|
22
16
|
.slider-wrap {
|
|
23
|
-
width: 100
|
|
17
|
+
width: calc(100% - 200px);
|
|
24
18
|
padding: 30px 0;
|
|
25
19
|
margin: 0 auto;
|
|
26
20
|
|
|
@@ -71,8 +65,6 @@
|
|
|
71
65
|
position: absolute;
|
|
72
66
|
width: 100%;
|
|
73
67
|
bottom: 0;
|
|
74
|
-
left: 0;
|
|
75
|
-
right: 0;
|
|
76
68
|
display: flex;
|
|
77
69
|
align-items: center;
|
|
78
70
|
justify-content: center;
|
|
@@ -50,12 +50,12 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
50
50
|
pc: {
|
|
51
51
|
paddingTop: 10,
|
|
52
52
|
paddingBottom: 10,
|
|
53
|
-
marginBottom:
|
|
53
|
+
marginBottom: 0
|
|
54
54
|
},
|
|
55
55
|
mobile: {
|
|
56
56
|
paddingTop: 10,
|
|
57
57
|
paddingBottom: 10,
|
|
58
|
-
marginBottom:
|
|
58
|
+
marginBottom: 0
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
customize: {
|
|
@@ -9,16 +9,11 @@ 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:
|
|
16
|
+
id: (0, _uuid.v4)(),
|
|
22
17
|
open: false,
|
|
23
18
|
type: 'IMAGE',
|
|
24
19
|
content: {
|
|
@@ -38,13 +33,13 @@ 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,
|
|
@@ -60,13 +55,13 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
60
55
|
},
|
|
61
56
|
text: {
|
|
62
57
|
parentId: groupId,
|
|
63
|
-
id:
|
|
58
|
+
id: (0, _uuid.v4)(),
|
|
64
59
|
open: true,
|
|
65
60
|
type: 'TEXT',
|
|
66
61
|
specialContent: [],
|
|
67
62
|
text: 'Please enter a description',
|
|
68
63
|
content: {
|
|
69
|
-
sizeType: '
|
|
64
|
+
sizeType: 'Headline 1',
|
|
70
65
|
fontFamily: 'Open Sans',
|
|
71
66
|
fontWeight: 400,
|
|
72
67
|
fontSize: 10,
|
|
@@ -78,7 +73,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
78
73
|
},
|
|
79
74
|
button: {
|
|
80
75
|
parentId: groupId,
|
|
81
|
-
id:
|
|
76
|
+
id: (0, _uuid.v4)(),
|
|
82
77
|
open: true,
|
|
83
78
|
type: 'BUTTON',
|
|
84
79
|
text: 'Button',
|
|
@@ -87,7 +82,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
87
82
|
backgroundColor: '#2F54EB'
|
|
88
83
|
},
|
|
89
84
|
buttonText: {
|
|
90
|
-
sizeType: '
|
|
85
|
+
sizeType: 'Headline 1',
|
|
91
86
|
fontFamily: 'Open Sans',
|
|
92
87
|
fontWeight: 400,
|
|
93
88
|
fontSize: 10,
|
|
@@ -109,7 +104,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
109
104
|
backgroundColor: '#0d39ed'
|
|
110
105
|
},
|
|
111
106
|
buttonText: {
|
|
112
|
-
sizeType: '
|
|
107
|
+
sizeType: 'Headline 1',
|
|
113
108
|
fontFamily: 'Open Sans',
|
|
114
109
|
fontWeight: 600,
|
|
115
110
|
fontSize: 14,
|
|
@@ -133,7 +128,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
133
128
|
},
|
|
134
129
|
secondButton: {
|
|
135
130
|
parentId: groupId,
|
|
136
|
-
id:
|
|
131
|
+
id: (0, _uuid.v4)(),
|
|
137
132
|
open: true,
|
|
138
133
|
type: 'BUTTON',
|
|
139
134
|
text: 'More',
|
|
@@ -142,7 +137,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
142
137
|
backgroundColor: '#fff'
|
|
143
138
|
},
|
|
144
139
|
buttonText: {
|
|
145
|
-
sizeType: '
|
|
140
|
+
sizeType: 'Headline 1',
|
|
146
141
|
fontFamily: 'Open Sans',
|
|
147
142
|
fontWeight: 400,
|
|
148
143
|
fontSize: 10,
|
|
@@ -164,7 +159,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
164
159
|
backgroundColor: '#E9F0FF'
|
|
165
160
|
},
|
|
166
161
|
buttonText: {
|
|
167
|
-
sizeType: '
|
|
162
|
+
sizeType: 'Headline 1',
|
|
168
163
|
fontFamily: 'Open Sans',
|
|
169
164
|
fontWeight: 600,
|
|
170
165
|
fontSize: 14,
|
|
@@ -196,7 +191,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
196
191
|
open: false,
|
|
197
192
|
image: {
|
|
198
193
|
parentId: groupId,
|
|
199
|
-
id:
|
|
194
|
+
id: (0, _uuid.v4)(),
|
|
200
195
|
open: false,
|
|
201
196
|
type: 'IMAGE',
|
|
202
197
|
content: {
|
|
@@ -216,7 +211,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
216
211
|
},
|
|
217
212
|
title: {
|
|
218
213
|
parentId: groupId,
|
|
219
|
-
id:
|
|
214
|
+
id: (0, _uuid.v4)(),
|
|
220
215
|
open: true,
|
|
221
216
|
type: 'TEXT',
|
|
222
217
|
specialContent: [],
|
|
@@ -236,13 +231,13 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
236
231
|
vertical: {}
|
|
237
232
|
},
|
|
238
233
|
text: {
|
|
239
|
-
id:
|
|
234
|
+
id: (0, _uuid.v4)(),
|
|
240
235
|
open: true,
|
|
241
236
|
type: 'TEXT',
|
|
242
237
|
specialContent: [],
|
|
243
238
|
text: '',
|
|
244
239
|
content: {
|
|
245
|
-
sizeType: '
|
|
240
|
+
sizeType: 'Headline 1',
|
|
246
241
|
fontFamily: 'Open Sans',
|
|
247
242
|
fontWeight: 400,
|
|
248
243
|
fontSize: 18,
|
|
@@ -253,7 +248,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
253
248
|
vertical: {}
|
|
254
249
|
},
|
|
255
250
|
button: {
|
|
256
|
-
id:
|
|
251
|
+
id: (0, _uuid.v4)(),
|
|
257
252
|
open: true,
|
|
258
253
|
type: 'BUTTON',
|
|
259
254
|
text: 'Button',
|
|
@@ -262,7 +257,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
262
257
|
backgroundColor: '#2F54EB'
|
|
263
258
|
},
|
|
264
259
|
buttonText: {
|
|
265
|
-
sizeType: '
|
|
260
|
+
sizeType: 'Headline 1',
|
|
266
261
|
fontFamily: 'Open Sans',
|
|
267
262
|
fontWeight: 600,
|
|
268
263
|
fontSize: 14,
|
|
@@ -284,7 +279,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
284
279
|
backgroundColor: '#0d39ed'
|
|
285
280
|
},
|
|
286
281
|
buttonText: {
|
|
287
|
-
sizeType: '
|
|
282
|
+
sizeType: 'Headline 1',
|
|
288
283
|
fontFamily: 'Open Sans',
|
|
289
284
|
fontWeight: 600,
|
|
290
285
|
fontSize: 14,
|
|
@@ -303,7 +298,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
303
298
|
}
|
|
304
299
|
},
|
|
305
300
|
secondButton: {
|
|
306
|
-
id:
|
|
301
|
+
id: (0, _uuid.v4)(),
|
|
307
302
|
open: true,
|
|
308
303
|
type: 'BUTTON',
|
|
309
304
|
text: 'More',
|
|
@@ -312,7 +307,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
312
307
|
backgroundColor: '#fff'
|
|
313
308
|
},
|
|
314
309
|
buttonText: {
|
|
315
|
-
sizeType: '
|
|
310
|
+
sizeType: 'Headline 1',
|
|
316
311
|
fontFamily: 'Open Sans',
|
|
317
312
|
fontWeight: 600,
|
|
318
313
|
fontSize: 14,
|
|
@@ -334,7 +329,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
334
329
|
backgroundColor: '#E9F0FF'
|
|
335
330
|
},
|
|
336
331
|
buttonText: {
|
|
337
|
-
sizeType: '
|
|
332
|
+
sizeType: 'Headline 1',
|
|
338
333
|
fontFamily: 'Open Sans',
|
|
339
334
|
fontWeight: 600,
|
|
340
335
|
fontSize: 14,
|
|
@@ -368,6 +363,151 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
368
363
|
return {
|
|
369
364
|
id: (0, _uuid.v4)(),
|
|
370
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
|
+
// },
|
|
371
511
|
spacing: {
|
|
372
512
|
pc: {
|
|
373
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;
|
|
@@ -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
|
}
|