@fonixtree/magic-design 0.0.70 → 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 +24 -29
- 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/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.less +1 -1
- 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 -3
- package/es/composite-comp/bol/components/Carousel/pc/index.js +2 -2
- 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 +33 -39
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +6 -13
- package/es/composite-comp/dito/components/Recommend/pc/index.js +17 -122
- package/es/composite-comp/dito/components/Recommend/pc/index.less +15 -56
- 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 +1 -9
- 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 +24 -29
- 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/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.less +1 -1
- 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 -3
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +2 -2
- 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 +33 -39
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +6 -13
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +17 -122
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +15 -56
- 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 +1 -9
- 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
|
@@ -178,13 +178,17 @@ function (_super) {
|
|
|
178
178
|
autoplaySpeed: data.setting.autoplay.interval * 1000,
|
|
179
179
|
speed: 500,
|
|
180
180
|
slidesToShow: colNum,
|
|
181
|
-
slidesToScroll:
|
|
181
|
+
slidesToScroll: colNum,
|
|
182
182
|
beforeChange: function beforeChange(oldIndex, newIndex) {
|
|
183
183
|
_this.setState({
|
|
184
184
|
sliderIndex: newIndex
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
};
|
|
187
|
+
}; // const navStyle = {
|
|
188
|
+
// fontSize: data.setting.navigation.size,
|
|
189
|
+
// color: data.setting.navigation.color,
|
|
190
|
+
// };
|
|
191
|
+
|
|
188
192
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
189
193
|
className: "m-carousel-mobile",
|
|
190
194
|
style: bgStyle
|
|
@@ -221,7 +225,7 @@ function (_super) {
|
|
|
221
225
|
}), item.secondButtonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
222
226
|
data: item.secondButtonTag
|
|
223
227
|
}))));
|
|
224
|
-
})), data.setting.dots.open &&
|
|
228
|
+
})), data.setting.dots.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
225
229
|
className: "swiper-ban"
|
|
226
230
|
}, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
|
|
227
231
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -163,7 +163,7 @@ function (_super) {
|
|
|
163
163
|
autoplaySpeed: data.setting.autoplay.interval * 1000,
|
|
164
164
|
speed: 500,
|
|
165
165
|
slidesToShow: colNum,
|
|
166
|
-
slidesToScroll:
|
|
166
|
+
slidesToScroll: colNum,
|
|
167
167
|
beforeChange: function beforeChange(oldIndex, newIndex) {
|
|
168
168
|
_this.setState({
|
|
169
169
|
sliderIndex: newIndex
|
|
@@ -220,7 +220,7 @@ function (_super) {
|
|
|
220
220
|
}), item.secondButtonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
221
221
|
data: item.secondButtonTag
|
|
222
222
|
}))));
|
|
223
|
-
})), data.setting.dots.open &&
|
|
223
|
+
})), data.setting.dots.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
224
224
|
className: "swiper-ban"
|
|
225
225
|
}, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
|
|
226
226
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -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
|
}
|
|
@@ -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",
|
|
@@ -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: {
|
|
@@ -19,6 +19,8 @@ var _Text = require("../../../../meta-comp/components/Text");
|
|
|
19
19
|
|
|
20
20
|
require("./index.less");
|
|
21
21
|
|
|
22
|
+
var _businessUtil = require("../../../../utils/businessUtil");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
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); }
|
|
@@ -88,12 +90,15 @@ function (_super) {
|
|
|
88
90
|
// wrapStyle.backgroundPosition = 'center';
|
|
89
91
|
// }
|
|
90
92
|
|
|
93
|
+
var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
|
|
94
|
+
|
|
91
95
|
var style = __assign({}, (0, _Text.contentStyle)(nodeData.content.inputField.content));
|
|
92
96
|
|
|
93
97
|
Reflect.deleteProperty(style, 'width');
|
|
94
98
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
95
99
|
className: (0, _classnames["default"])('newsletter-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a[window.magicDesign.device] = true, _a)),
|
|
96
|
-
onClick: this.onComponentClick
|
|
100
|
+
onClick: this.onComponentClick,
|
|
101
|
+
style: wrapStyle
|
|
97
102
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
103
|
className: "top-wrap"
|
|
99
104
|
}, nodeData.content.inputField.open && /*#__PURE__*/_react["default"].createElement("div", {
|