@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
|
@@ -319,24 +319,24 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
319
319
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
320
320
|
className: "labelStyle"
|
|
321
321
|
}, "Campaign Name"), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
322
|
-
|
|
322
|
+
value: campaignName,
|
|
323
323
|
onChange: function onChange(e) {
|
|
324
324
|
setCampaignName(e.target.value);
|
|
325
325
|
},
|
|
326
|
-
|
|
326
|
+
className: "inputStyle"
|
|
327
327
|
})), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
328
328
|
span: 12
|
|
329
329
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
330
330
|
className: "labelStyle"
|
|
331
331
|
}, "Store"), /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
332
|
+
showSearch: true,
|
|
333
|
+
optionFilterProp: "children",
|
|
332
334
|
className: "inputStyle",
|
|
335
|
+
placeholder: "Please select",
|
|
336
|
+
value: storeId,
|
|
333
337
|
onChange: function onChange(value) {
|
|
334
338
|
return setStoreId(value);
|
|
335
|
-
}
|
|
336
|
-
optionFilterProp: "children",
|
|
337
|
-
placeholder: "Please select",
|
|
338
|
-
showSearch: true,
|
|
339
|
-
value: storeId
|
|
339
|
+
}
|
|
340
340
|
}, storeList && storeList.length > 0 && storeList.map(function (v) {
|
|
341
341
|
return /*#__PURE__*/_react["default"].createElement(Option, {
|
|
342
342
|
key: v.storeId,
|
|
@@ -352,10 +352,10 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
352
352
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
353
353
|
className: "labelStyle"
|
|
354
354
|
}, "Campaign State"), /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
355
|
-
className: "inputStyle",
|
|
356
355
|
defaultValue: "A,B",
|
|
356
|
+
value: cmpState,
|
|
357
357
|
onChange: changeCamState,
|
|
358
|
-
|
|
358
|
+
className: "inputStyle"
|
|
359
359
|
}, stateMap && stateMap.length > 0 && stateMap.map(function (v) {
|
|
360
360
|
return /*#__PURE__*/_react["default"].createElement(Option, {
|
|
361
361
|
key: v.key,
|
|
@@ -365,24 +365,24 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
365
365
|
span: 12
|
|
366
366
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
367
367
|
onClick: queryFunc,
|
|
368
|
+
type: "primary",
|
|
368
369
|
style: {
|
|
369
370
|
marginRight: 10
|
|
370
|
-
}
|
|
371
|
-
type: "primary"
|
|
371
|
+
}
|
|
372
372
|
}, "Query"), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
373
373
|
onClick: function onClick() {
|
|
374
374
|
reset();
|
|
375
375
|
}
|
|
376
376
|
}, "Cancel"))), /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
377
|
+
scroll: {
|
|
378
|
+
y: 340
|
|
379
|
+
},
|
|
380
380
|
loading: loading,
|
|
381
|
+
bordered: false,
|
|
381
382
|
rowKey: "campaignId",
|
|
382
383
|
rowSelection: rowSelection,
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
}
|
|
384
|
+
columns: columns,
|
|
385
|
+
dataSource: bundleList
|
|
386
386
|
}));
|
|
387
387
|
};
|
|
388
388
|
|
|
@@ -232,7 +232,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
232
232
|
|
|
233
233
|
var _j = (0, _react.useState)({
|
|
234
234
|
pageSize: 20,
|
|
235
|
-
|
|
235
|
+
current: 1
|
|
236
236
|
}),
|
|
237
237
|
paginationParams = _j[0],
|
|
238
238
|
setPaginationParams = _j[1];
|
|
@@ -399,7 +399,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
399
399
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
400
400
|
onClick: function onClick() {
|
|
401
401
|
setLoading(true);
|
|
402
|
-
paginationParams.
|
|
402
|
+
paginationParams.current = 1;
|
|
403
403
|
|
|
404
404
|
var total = paginationParams.total,
|
|
405
405
|
params = __rest(paginationParams, ["total"]);
|
|
@@ -468,7 +468,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
468
468
|
pagination: __assign(__assign({}, paginationParams), {
|
|
469
469
|
onChange: function onChange(page) {
|
|
470
470
|
setLoading(true);
|
|
471
|
-
paginationParams.
|
|
471
|
+
paginationParams.current = page;
|
|
472
472
|
|
|
473
473
|
var total = paginationParams.total,
|
|
474
474
|
params = __rest(paginationParams, ["total"]);
|
|
@@ -63,13 +63,10 @@ function (_super) {
|
|
|
63
63
|
var visible = this.state.visible;
|
|
64
64
|
var _a = this.props,
|
|
65
65
|
value = _a.value,
|
|
66
|
-
_onChange = _a.onChange
|
|
67
|
-
disabled = _a.disabled;
|
|
66
|
+
_onChange = _a.onChange;
|
|
68
67
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
68
|
className: "m-url-picker"
|
|
70
|
-
},
|
|
71
|
-
className: "disabled"
|
|
72
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
70
|
className: "input-url"
|
|
74
71
|
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
75
72
|
onChange: function onChange(e) {
|
|
@@ -115,7 +112,6 @@ function (_super) {
|
|
|
115
112
|
|
|
116
113
|
UrlPicker.defaultProps = {
|
|
117
114
|
value: '',
|
|
118
|
-
disabled: false,
|
|
119
115
|
onChange: function onChange() {}
|
|
120
116
|
};
|
|
121
117
|
return UrlPicker;
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
.m-url-picker {
|
|
2
|
-
|
|
3
|
-
.disabled {
|
|
4
|
-
position: absolute;
|
|
5
|
-
left: 0;
|
|
6
|
-
right: 0;
|
|
7
|
-
bottom: 0;
|
|
8
|
-
top: 0;
|
|
9
|
-
background-color: #D2D9E5;
|
|
10
|
-
z-index: 1;
|
|
11
|
-
opacity: 0.5;
|
|
12
|
-
border-radius: 8px;
|
|
13
|
-
}
|
|
2
|
+
|
|
14
3
|
.input-url {
|
|
15
4
|
width: 100%;
|
|
16
5
|
height: 40px;
|
package/es/common/index.js
CHANGED
|
@@ -63,12 +63,6 @@ Object.defineProperty(exports, "ImagePicker", {
|
|
|
63
63
|
return _ImagePicker["default"];
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
-
Object.defineProperty(exports, "ImgArea", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function get() {
|
|
69
|
-
return _ImgArea["default"];
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
66
|
Object.defineProperty(exports, "LayoutSelector", {
|
|
73
67
|
enumerable: true,
|
|
74
68
|
get: function get() {
|
|
@@ -130,6 +124,4 @@ var _ButtonIconLayout = _interopRequireDefault(require("./ButtonIconLayout"));
|
|
|
130
124
|
|
|
131
125
|
var _ProductSource = _interopRequireDefault(require("./ProductSource"));
|
|
132
126
|
|
|
133
|
-
var _ImgArea = _interopRequireDefault(require("./ImgArea"));
|
|
134
|
-
|
|
135
127
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -43,12 +43,12 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
|
|
|
43
43
|
text: 'Title use, click modify text.',
|
|
44
44
|
specialContent: [],
|
|
45
45
|
content: {
|
|
46
|
-
sizeType: '
|
|
46
|
+
// sizeType: 'Headline 1',
|
|
47
47
|
fontFamily: 'Open Sans',
|
|
48
48
|
fontWeight: 700,
|
|
49
49
|
fontSize: 28,
|
|
50
50
|
color: '#FFFFFF',
|
|
51
|
-
width:
|
|
51
|
+
width: 400
|
|
52
52
|
},
|
|
53
53
|
underline: {
|
|
54
54
|
open: false,
|
|
@@ -65,12 +65,12 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
|
|
|
65
65
|
specialContent: [],
|
|
66
66
|
text: 'For the text area, you can enter a subtitle or description, the default width is the same as title.',
|
|
67
67
|
content: {
|
|
68
|
-
sizeType: '
|
|
68
|
+
// sizeType: 'Headline 1',
|
|
69
69
|
fontFamily: 'Open Sans',
|
|
70
70
|
fontWeight: 400,
|
|
71
71
|
fontSize: 18,
|
|
72
72
|
color: '#FFFFFF',
|
|
73
|
-
width:
|
|
73
|
+
width: 500
|
|
74
74
|
},
|
|
75
75
|
underline: {},
|
|
76
76
|
vertical: {}
|
|
@@ -86,7 +86,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
|
|
|
86
86
|
backgroundColor: '#2F54EB'
|
|
87
87
|
},
|
|
88
88
|
buttonText: {
|
|
89
|
-
sizeType: '
|
|
89
|
+
// sizeType: 'Headline 1',
|
|
90
90
|
fontFamily: 'Open Sans',
|
|
91
91
|
fontWeight: 600,
|
|
92
92
|
fontSize: 14,
|
|
@@ -122,7 +122,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
|
|
|
122
122
|
backgroundColor: '#0d39ed'
|
|
123
123
|
},
|
|
124
124
|
buttonText: {
|
|
125
|
-
sizeType: '
|
|
125
|
+
// sizeType: 'Headline 1',
|
|
126
126
|
fontFamily: 'Open Sans',
|
|
127
127
|
fontWeight: 600,
|
|
128
128
|
fontSize: 14,
|
|
@@ -151,7 +151,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
|
|
|
151
151
|
backgroundColor: '#fff'
|
|
152
152
|
},
|
|
153
153
|
buttonText: {
|
|
154
|
-
sizeType: '
|
|
154
|
+
// sizeType: 'Headline 1',
|
|
155
155
|
fontFamily: 'Open Sans',
|
|
156
156
|
fontWeight: 600,
|
|
157
157
|
fontSize: 14,
|
|
@@ -187,7 +187,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
|
|
|
187
187
|
backgroundColor: '#E9F0FF'
|
|
188
188
|
},
|
|
189
189
|
buttonText: {
|
|
190
|
-
sizeType: '
|
|
190
|
+
// sizeType: 'Headline 1',
|
|
191
191
|
fontFamily: 'Open Sans',
|
|
192
192
|
fontWeight: 600,
|
|
193
193
|
fontSize: 14,
|
|
@@ -254,12 +254,12 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
254
254
|
pc: {
|
|
255
255
|
paddingTop: 0,
|
|
256
256
|
paddingBottom: 0,
|
|
257
|
-
marginBottom:
|
|
257
|
+
marginBottom: 0
|
|
258
258
|
},
|
|
259
259
|
mobile: {
|
|
260
260
|
paddingTop: 0,
|
|
261
261
|
paddingBottom: 0,
|
|
262
|
-
marginBottom:
|
|
262
|
+
marginBottom: 0
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
};
|
|
@@ -21,6 +21,8 @@ var _AlignSelector = require("../../../../../common/AlignSelector");
|
|
|
21
21
|
|
|
22
22
|
var _components = require("../../../../../meta-comp/components");
|
|
23
23
|
|
|
24
|
+
var _businessUtil = require("../../../../../utils/businessUtil");
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
27
|
|
|
26
28
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -59,7 +61,8 @@ function (_super) {
|
|
|
59
61
|
|
|
60
62
|
_this.state = {
|
|
61
63
|
carouseIndex: 0,
|
|
62
|
-
hoverState: false
|
|
64
|
+
hoverState: false,
|
|
65
|
+
clickedGroup: ''
|
|
63
66
|
};
|
|
64
67
|
_this.carouselRef = /*#__PURE__*/_react["default"].createRef();
|
|
65
68
|
_this.destroy = null;
|
|
@@ -119,16 +122,19 @@ function (_super) {
|
|
|
119
122
|
var data = this.props.data;
|
|
120
123
|
var _a = this.state,
|
|
121
124
|
carouseIndex = _a.carouseIndex,
|
|
122
|
-
hoverState = _a.hoverState
|
|
125
|
+
hoverState = _a.hoverState,
|
|
126
|
+
clickedGroup = _a.clickedGroup;
|
|
123
127
|
var autoplay = data.setting.autoplay.open;
|
|
124
128
|
/** 设计器模式下 如果选中特定group 自动播放关闭 */
|
|
125
129
|
|
|
126
|
-
if ((0, _coreUtil.isDesignMode)() &&
|
|
130
|
+
if ((0, _coreUtil.isDesignMode)() && clickedGroup) {
|
|
127
131
|
autoplay = false;
|
|
128
132
|
}
|
|
129
133
|
|
|
134
|
+
var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
|
|
130
135
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
|
-
className: "m-banner-mobile"
|
|
136
|
+
className: "m-banner-mobile",
|
|
137
|
+
style: wrapStyle
|
|
132
138
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
|
|
133
139
|
ref: this.carouselRef,
|
|
134
140
|
afterChange: function afterChange(n) {
|
|
@@ -23,7 +23,7 @@ var _AlignSelector = require("../../../../../common/AlignSelector");
|
|
|
23
23
|
|
|
24
24
|
var _common = require("../../../../../common");
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _businessUtil = require("../../../../../utils/businessUtil");
|
|
27
27
|
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
29
|
|
|
@@ -127,7 +127,8 @@ function (_super) {
|
|
|
127
127
|
};
|
|
128
128
|
|
|
129
129
|
if (item.background.bgType === 'color') {
|
|
130
|
-
bgStyle.
|
|
130
|
+
bgStyle.opacity = item.background.opacity ? item.background.opacity / 100 : 1;
|
|
131
|
+
bgStyle.backgroundColor = item.background.color;
|
|
131
132
|
} else {
|
|
132
133
|
bgStyle.backgroundImage = "url(" + item.background.image + ")";
|
|
133
134
|
}
|
|
@@ -173,8 +174,10 @@ function (_super) {
|
|
|
173
174
|
autoplay = false;
|
|
174
175
|
}
|
|
175
176
|
|
|
177
|
+
var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
|
|
176
178
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
177
|
-
className: "m-banner-pc"
|
|
179
|
+
className: "m-banner-pc",
|
|
180
|
+
style: wrapStyle
|
|
178
181
|
}, data.setting.navigation.open && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
179
182
|
className: "turnPage leftBtn",
|
|
180
183
|
onClick: function onClick() {
|
|
@@ -3,69 +3,99 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getDefaultJSON =
|
|
6
|
+
exports.getDefaultJSON = void 0;
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
11
|
+
__assign = Object.assign || function (t) {
|
|
12
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
13
|
+
s = arguments[i];
|
|
14
|
+
|
|
15
|
+
for (var p in s) {
|
|
16
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
return __assign.apply(this, arguments);
|
|
24
|
+
};
|
|
25
|
+
|
|
10
26
|
/**
|
|
11
27
|
* 获取 text 元组件json
|
|
12
28
|
*/
|
|
13
|
-
var
|
|
14
|
-
var groupId = (0, _uuid.v4)();
|
|
29
|
+
var getDefaultMetaButtonJson = function getDefaultMetaButtonJson() {
|
|
15
30
|
return {
|
|
16
|
-
id:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
31
|
+
id: (0, _uuid.v4)(),
|
|
32
|
+
open: true,
|
|
33
|
+
content: {
|
|
34
|
+
backgroundColor: '#2F54EB'
|
|
35
|
+
},
|
|
36
|
+
buttonText: {
|
|
37
|
+
sizeType: 'Customize font styles',
|
|
38
|
+
fontFamily: 'Open Sans',
|
|
39
|
+
fontWeight: 400,
|
|
40
|
+
fontSize: 14,
|
|
41
|
+
fontStyle: 'normal',
|
|
42
|
+
color: '#fff',
|
|
43
|
+
padding: '10px 26px'
|
|
44
|
+
},
|
|
45
|
+
buttonBorder: {
|
|
20
46
|
open: true,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
open: true,
|
|
35
|
-
borderColor: '',
|
|
36
|
-
borderRadius: 6
|
|
37
|
-
},
|
|
38
|
-
buttonIcon: {
|
|
39
|
-
iconUrl: '',
|
|
40
|
-
layout: 'right'
|
|
41
|
-
},
|
|
42
|
-
spacing: {
|
|
43
|
-
pc: {},
|
|
44
|
-
mobile: {}
|
|
45
|
-
},
|
|
46
|
-
text: 'Button',
|
|
47
|
-
hover: null
|
|
48
|
-
}
|
|
47
|
+
borderColor: '',
|
|
48
|
+
borderRadius: 6
|
|
49
|
+
},
|
|
50
|
+
buttonIcon: {
|
|
51
|
+
iconUrl: '',
|
|
52
|
+
layout: 'right'
|
|
53
|
+
},
|
|
54
|
+
spacing: {
|
|
55
|
+
pc: {},
|
|
56
|
+
mobile: {}
|
|
57
|
+
},
|
|
58
|
+
text: 'Button',
|
|
59
|
+
hover: null
|
|
49
60
|
};
|
|
50
61
|
};
|
|
51
62
|
|
|
52
|
-
exports.buttonGroupSourceJSON = buttonGroupSourceJSON;
|
|
53
|
-
|
|
54
63
|
var getDefaultJSON = function getDefaultJSON() {
|
|
55
64
|
return {
|
|
56
65
|
id: (0, _uuid.v4)(),
|
|
57
66
|
type: 'BUTTON',
|
|
58
|
-
|
|
67
|
+
content: {
|
|
68
|
+
button: __assign({}, getDefaultMetaButtonJson()),
|
|
69
|
+
secondaryButton: __assign(__assign({}, getDefaultMetaButtonJson()), {
|
|
70
|
+
content: {
|
|
71
|
+
backgroundColor: '#fff'
|
|
72
|
+
},
|
|
73
|
+
buttonText: {
|
|
74
|
+
sizeType: 'Customize font styles',
|
|
75
|
+
fontFamily: 'Open Sans',
|
|
76
|
+
fontWeight: 400,
|
|
77
|
+
fontSize: 14,
|
|
78
|
+
fontStyle: 'normal',
|
|
79
|
+
color: '#2F54EB',
|
|
80
|
+
padding: '10px 26px'
|
|
81
|
+
},
|
|
82
|
+
buttonBorder: {
|
|
83
|
+
open: true,
|
|
84
|
+
borderColor: '#2F54EB',
|
|
85
|
+
borderRadius: 6
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
},
|
|
59
89
|
spacing: {
|
|
60
90
|
pc: {
|
|
61
91
|
paddingTop: 10,
|
|
62
92
|
paddingBottom: 10,
|
|
63
|
-
marginBottom:
|
|
93
|
+
marginBottom: 0
|
|
64
94
|
},
|
|
65
95
|
mobile: {
|
|
66
96
|
paddingTop: 10,
|
|
67
97
|
paddingBottom: 10,
|
|
68
|
-
marginBottom:
|
|
98
|
+
marginBottom: 0
|
|
69
99
|
}
|
|
70
100
|
},
|
|
71
101
|
customize: {
|
|
@@ -15,6 +15,8 @@ var _components = require("../../../../meta-comp/components");
|
|
|
15
15
|
|
|
16
16
|
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
17
17
|
|
|
18
|
+
var _businessUtil = require("../../../../utils/businessUtil");
|
|
19
|
+
|
|
18
20
|
require("./index.less");
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -74,16 +76,20 @@ function (_super) {
|
|
|
74
76
|
var _a;
|
|
75
77
|
|
|
76
78
|
var nodeData = this.props.nodeData;
|
|
79
|
+
var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
|
|
77
80
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
81
|
className: (0, _classnames["default"])('button-comp-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a)),
|
|
79
|
-
onClick: this.onComponentClick
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
onClick: this.onComponentClick,
|
|
83
|
+
style: wrapStyle
|
|
84
|
+
}, nodeData.content.button.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
|
+
className: "first-button"
|
|
86
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
87
|
+
data: nodeData.content.button
|
|
88
|
+
})), nodeData.content.secondaryButton.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
|
+
className: "secondary-button"
|
|
90
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
91
|
+
data: nodeData.content.secondaryButton
|
|
92
|
+
})));
|
|
87
93
|
};
|
|
88
94
|
|
|
89
95
|
Button.defaultProps = {};
|
|
@@ -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
|