@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
|
@@ -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", {
|
|
@@ -3,51 +3,60 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
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
|
+
url: '',
|
|
35
|
+
backgroundColor: '#e6eaf0'
|
|
36
|
+
},
|
|
37
|
+
buttonText: {
|
|
38
|
+
sizeType: 'Customize font styles',
|
|
39
|
+
fontFamily: 'Open Sans',
|
|
40
|
+
fontWeight: 600,
|
|
41
|
+
fontSize: 12,
|
|
42
|
+
fontStyle: 'normal',
|
|
43
|
+
color: '#8493AF',
|
|
44
|
+
padding: '2px 8px'
|
|
45
|
+
},
|
|
46
|
+
buttonBorder: {
|
|
20
47
|
open: true,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
fontStyle: 'normal',
|
|
31
|
-
color: '#8493AF',
|
|
32
|
-
padding: '2px 8px'
|
|
33
|
-
},
|
|
34
|
-
buttonBorder: {
|
|
35
|
-
open: true,
|
|
36
|
-
borderColor: '',
|
|
37
|
-
borderRadius: 4
|
|
38
|
-
},
|
|
39
|
-
buttonIcon: {
|
|
40
|
-
iconUrl: '',
|
|
41
|
-
layout: 'right'
|
|
42
|
-
},
|
|
43
|
-
text: 'Button Tag',
|
|
44
|
-
hover: null
|
|
45
|
-
}
|
|
48
|
+
borderColor: '',
|
|
49
|
+
borderRadius: 4
|
|
50
|
+
},
|
|
51
|
+
buttonIcon: {
|
|
52
|
+
iconUrl: '',
|
|
53
|
+
layout: 'right'
|
|
54
|
+
},
|
|
55
|
+
text: 'Button Tag',
|
|
56
|
+
hover: null
|
|
46
57
|
};
|
|
47
58
|
};
|
|
48
59
|
|
|
49
|
-
exports.tagGroupSourceJSON = tagGroupSourceJSON;
|
|
50
|
-
|
|
51
60
|
var getDefaultJSON = function getDefaultJSON() {
|
|
52
61
|
return {
|
|
53
62
|
id: (0, _uuid.v4)(),
|
|
@@ -71,19 +80,20 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
71
80
|
pcImgHoverUrl: '',
|
|
72
81
|
h5ImgHoverUrl: ''
|
|
73
82
|
}
|
|
74
|
-
}
|
|
83
|
+
},
|
|
84
|
+
button: __assign({}, getDefaultMetaButtonJson()),
|
|
85
|
+
secondaryButton: __assign({}, getDefaultMetaButtonJson())
|
|
75
86
|
},
|
|
76
|
-
groupSource: [tagGroupSourceJSON()],
|
|
77
87
|
spacing: {
|
|
78
88
|
pc: {
|
|
79
89
|
paddingTop: 10,
|
|
80
90
|
paddingBottom: 10,
|
|
81
|
-
marginBottom:
|
|
91
|
+
marginBottom: 0
|
|
82
92
|
},
|
|
83
93
|
mobile: {
|
|
84
94
|
paddingTop: 10,
|
|
85
95
|
paddingBottom: 10,
|
|
86
|
-
marginBottom:
|
|
96
|
+
marginBottom: 0
|
|
87
97
|
}
|
|
88
98
|
},
|
|
89
99
|
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,20 +76,24 @@ 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"])('tag-comp-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a)),
|
|
79
|
-
onClick: this.onComponentClick
|
|
82
|
+
onClick: this.onComponentClick,
|
|
83
|
+
style: wrapStyle
|
|
80
84
|
}, nodeData.content.image.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
85
|
className: "tag-image"
|
|
82
86
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
83
87
|
data: nodeData.content.image
|
|
84
|
-
})), nodeData.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
88
|
+
})), nodeData.content.button.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
|
+
className: "first-button"
|
|
90
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
91
|
+
data: nodeData.content.button
|
|
92
|
+
})), nodeData.content.secondaryButton.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
|
+
className: "secondary-button"
|
|
94
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
95
|
+
data: nodeData.content.secondaryButton
|
|
96
|
+
})));
|
|
91
97
|
};
|
|
92
98
|
|
|
93
99
|
Tag.defaultProps = {};
|
|
@@ -103,7 +103,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
103
103
|
headline: __assign(__assign({}, getDefaultMetaTextJson()), {
|
|
104
104
|
text: 'Title use, click modify text.',
|
|
105
105
|
content: {
|
|
106
|
-
sizeType: '
|
|
106
|
+
sizeType: 'Headline 1',
|
|
107
107
|
fontFamily: 'Montserrat',
|
|
108
108
|
fontWeight: 600,
|
|
109
109
|
fontSize: 28,
|
|
@@ -130,18 +130,18 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
130
130
|
pc: {
|
|
131
131
|
paddingTop: 10,
|
|
132
132
|
paddingBottom: 10,
|
|
133
|
-
marginBottom:
|
|
133
|
+
marginBottom: 0
|
|
134
134
|
},
|
|
135
135
|
mobile: {
|
|
136
136
|
paddingTop: 10,
|
|
137
137
|
paddingBottom: 10,
|
|
138
|
-
marginBottom:
|
|
138
|
+
marginBottom: 0
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
customize: {
|
|
142
142
|
layout: 'left',
|
|
143
143
|
align: 'left',
|
|
144
|
-
|
|
144
|
+
rowNum: 3
|
|
145
145
|
},
|
|
146
146
|
background: {
|
|
147
147
|
opacity: 100,
|
|
@@ -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,9 +76,11 @@ 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: "m-text",
|
|
79
|
-
onClick: this.onComponentClick
|
|
82
|
+
onClick: this.onComponentClick,
|
|
83
|
+
style: wrapStyle
|
|
80
84
|
}, nodeData.title.headline.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
85
|
className: "title-wrap"
|
|
82
86
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
@@ -86,7 +90,7 @@ function (_super) {
|
|
|
86
90
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
87
91
|
data: nodeData.title.subtitle
|
|
88
92
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
|
-
className: (0, _classnames["default"])('group-content-wrap', 'col-' + nodeData.customize.
|
|
93
|
+
className: (0, _classnames["default"])('group-content-wrap', 'col-' + nodeData.customize.rowNum, (_a = {}, _a[window.magicDesign.device] = true, _a))
|
|
90
94
|
}, nodeData.groupSource.map(function (group) {
|
|
91
95
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
92
96
|
className: "group-wrap-container"
|
|
@@ -96,11 +100,11 @@ function (_super) {
|
|
|
96
100
|
style: {
|
|
97
101
|
textAlign: nodeData.customize.align
|
|
98
102
|
}
|
|
99
|
-
},
|
|
103
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
104
|
className: "group-title"
|
|
101
105
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
102
106
|
data: group.content.title
|
|
103
|
-
})),
|
|
107
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
108
|
className: "group-content"
|
|
105
109
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
106
110
|
data: group.content.text
|
|
@@ -21,8 +21,6 @@ require("./index.less");
|
|
|
21
21
|
|
|
22
22
|
var _locale = require("../../../../../locale");
|
|
23
23
|
|
|
24
|
-
var _decorator = require("../../../../../decorator");
|
|
25
|
-
|
|
26
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
25
|
|
|
28
26
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -122,7 +120,7 @@ function (_super) {
|
|
|
122
120
|
AComponent.defaultProps = {
|
|
123
121
|
source: []
|
|
124
122
|
};
|
|
125
|
-
AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer
|
|
123
|
+
AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], AComponent);
|
|
126
124
|
return AComponent;
|
|
127
125
|
}(_react["default"].Component);
|
|
128
126
|
|
|
@@ -7,13 +7,13 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _common = require("../../../../../common");
|
|
15
15
|
|
|
16
|
-
var _locale = require("
|
|
16
|
+
var _locale = require("../../../../../locale");
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
@@ -43,61 +43,59 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
43
43
|
};
|
|
44
44
|
}();
|
|
45
45
|
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
var TagSecondConfig =
|
|
46
|
+
var AComponent =
|
|
49
47
|
/** @class */
|
|
50
48
|
function (_super) {
|
|
51
|
-
__extends(
|
|
49
|
+
__extends(AComponent, _super);
|
|
52
50
|
|
|
53
|
-
function
|
|
51
|
+
function AComponent() {
|
|
54
52
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55
53
|
|
|
56
54
|
_this.state = {};
|
|
57
55
|
|
|
58
|
-
_this.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
name: (0, _locale.i18n)('BUTTON_TAG'),
|
|
63
|
-
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
64
|
-
data: panelProps.button
|
|
65
|
-
}),
|
|
66
|
-
metaOption: panelProps.button
|
|
67
|
-
}];
|
|
68
|
-
return /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
69
|
-
headerSize: "middle",
|
|
70
|
-
onRefresh: function onRefresh() {
|
|
71
|
-
return (0, _coreUtil.renderPreview)();
|
|
72
|
-
},
|
|
73
|
-
showActiveColor: true,
|
|
74
|
-
source: source,
|
|
75
|
-
type: "switch"
|
|
76
|
-
});
|
|
56
|
+
_this.reRender = function () {
|
|
57
|
+
(0, _coreUtil.renderPreview)();
|
|
58
|
+
|
|
59
|
+
_this.setState({});
|
|
77
60
|
};
|
|
78
61
|
|
|
79
62
|
return _this;
|
|
80
63
|
}
|
|
81
64
|
|
|
82
|
-
|
|
65
|
+
AComponent.prototype.render = function () {
|
|
66
|
+
var panelProps = this.props.panelProps;
|
|
83
67
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
|
-
className: "
|
|
85
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
86
|
-
|
|
87
|
-
|
|
68
|
+
className: "recommend_content"
|
|
69
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
70
|
+
headerSize: "middle",
|
|
71
|
+
onRefresh: this.reRender,
|
|
88
72
|
source: [{
|
|
89
73
|
key: '1',
|
|
90
|
-
name: (0, _locale.i18n)('
|
|
91
|
-
value:
|
|
92
|
-
|
|
74
|
+
name: (0, _locale.i18n)('BUTTON'),
|
|
75
|
+
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
76
|
+
data: panelProps.button
|
|
77
|
+
}),
|
|
78
|
+
metaOption: panelProps.button
|
|
79
|
+
}, {
|
|
80
|
+
key: '2',
|
|
81
|
+
name: (0, _locale.i18n)('SECONDARY_BUTTON'),
|
|
82
|
+
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
83
|
+
data: panelProps.secondaryButton
|
|
84
|
+
}),
|
|
85
|
+
metaOption: panelProps.secondaryButton
|
|
86
|
+
}],
|
|
87
|
+
type: "switch"
|
|
93
88
|
}));
|
|
94
89
|
};
|
|
95
90
|
|
|
96
|
-
|
|
97
|
-
panelProps: {
|
|
91
|
+
AComponent.defaultProps = {
|
|
92
|
+
panelProps: {
|
|
93
|
+
button: {},
|
|
94
|
+
secondaryButton: {}
|
|
95
|
+
}
|
|
98
96
|
};
|
|
99
|
-
return
|
|
97
|
+
return AComponent;
|
|
100
98
|
}(_react["default"].Component);
|
|
101
99
|
|
|
102
|
-
var _default =
|
|
100
|
+
var _default = AComponent;
|
|
103
101
|
exports["default"] = _default;
|
|
@@ -7,7 +7,7 @@ exports["default"] = ButtonConfig;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _ButtonConfigContent = _interopRequireDefault(require("./ButtonConfigContent"));
|
|
11
11
|
|
|
12
12
|
var _layout = _interopRequireDefault(require("./imgs/layout1.png"));
|
|
13
13
|
|
|
@@ -33,8 +33,8 @@ function ButtonConfig(props) {
|
|
|
33
33
|
source: [{
|
|
34
34
|
key: '1',
|
|
35
35
|
name: (0, _locale.i18n)('CONTENT'),
|
|
36
|
-
value: /*#__PURE__*/_react["default"].createElement(
|
|
37
|
-
|
|
36
|
+
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfigContent["default"], {
|
|
37
|
+
panelProps: data.content
|
|
38
38
|
})
|
|
39
39
|
}, {
|
|
40
40
|
key: '2',
|
package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js
CHANGED
|
@@ -21,8 +21,6 @@ var _defaultImg = _interopRequireDefault(require("../imgs/defaultImg.png"));
|
|
|
21
21
|
|
|
22
22
|
var _locale = require("../../../../../locale");
|
|
23
23
|
|
|
24
|
-
var _decorator = require("../../../../../decorator");
|
|
25
|
-
|
|
26
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
25
|
|
|
28
26
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -82,7 +80,7 @@ function (_super) {
|
|
|
82
80
|
};
|
|
83
81
|
|
|
84
82
|
_this.onAddClick = function () {
|
|
85
|
-
var json = (0, _defaultJSON.imagesGroupSourceJSON)(
|
|
83
|
+
var json = (0, _defaultJSON.imagesGroupSourceJSON)('', 'Tab');
|
|
86
84
|
|
|
87
85
|
_this.props.source.push(json);
|
|
88
86
|
|
|
@@ -140,7 +138,7 @@ function (_super) {
|
|
|
140
138
|
AComponent.defaultProps = {
|
|
141
139
|
source: []
|
|
142
140
|
};
|
|
143
|
-
AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer
|
|
141
|
+
AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], AComponent);
|
|
144
142
|
return AComponent;
|
|
145
143
|
}(_react["default"].Component);
|
|
146
144
|
|
|
@@ -19,8 +19,6 @@ var _defaultJSON = require("../../../components/ImageText/defaultJSON");
|
|
|
19
19
|
|
|
20
20
|
var _locale = require("../../../../../locale");
|
|
21
21
|
|
|
22
|
-
var _decorator = require("../../../../../decorator");
|
|
23
|
-
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
23
|
|
|
26
24
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -122,7 +120,7 @@ function (_super) {
|
|
|
122
120
|
ImageTextConfigGroup.defaultProps = {
|
|
123
121
|
source: []
|
|
124
122
|
};
|
|
125
|
-
ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer
|
|
123
|
+
ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], ImageTextConfigGroup);
|
|
126
124
|
return ImageTextConfigGroup;
|
|
127
125
|
}(_react["default"].Component);
|
|
128
126
|
|
|
@@ -164,7 +164,7 @@ function (_super) {
|
|
|
164
164
|
}),
|
|
165
165
|
metaOption: data.groupSource
|
|
166
166
|
}, {
|
|
167
|
-
key: '
|
|
167
|
+
key: '2',
|
|
168
168
|
name: (0, _locale.i18n)('SPACING'),
|
|
169
169
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
170
170
|
data: data.spacing
|
|
@@ -173,7 +173,6 @@ function (_super) {
|
|
|
173
173
|
key: 'imageText4',
|
|
174
174
|
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
175
175
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
176
|
-
component: "imageText",
|
|
177
176
|
data: data.customize,
|
|
178
177
|
layoutSource: (0, _coreUtil.isPc)() ? _layout.imageTextLayoutPc : _layout.imageTextLayoutMobile,
|
|
179
178
|
selectedLayoutFun: function selectedLayoutFun(v) {
|
|
@@ -9,8 +9,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _NewsletterContentSetting = _interopRequireDefault(require("./NewsletterContentSetting"));
|
|
11
11
|
|
|
12
|
-
var _locale = require("../../../../locale");
|
|
13
|
-
|
|
14
12
|
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
15
13
|
|
|
16
14
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
@@ -30,26 +28,26 @@ function NewsletterConfig(props) {
|
|
|
30
28
|
headerSize: "large",
|
|
31
29
|
source: [{
|
|
32
30
|
key: '1',
|
|
33
|
-
name:
|
|
31
|
+
name: i18n('CONTENT'),
|
|
34
32
|
value: /*#__PURE__*/_react["default"].createElement(_NewsletterContentSetting["default"], {
|
|
35
33
|
panelProps: data.content
|
|
36
34
|
})
|
|
37
35
|
}, {
|
|
38
36
|
key: '2',
|
|
39
|
-
name:
|
|
37
|
+
name: i18n('SPACING'),
|
|
40
38
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
41
39
|
data: data.spacing
|
|
42
40
|
})
|
|
43
41
|
}, {
|
|
44
42
|
key: '3',
|
|
45
|
-
name:
|
|
43
|
+
name: i18n('CUSTOMIZE'),
|
|
46
44
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
47
45
|
data: data.customize,
|
|
48
46
|
layoutSource: _layout.newsletterLayout
|
|
49
47
|
})
|
|
50
48
|
}, {
|
|
51
49
|
key: '4',
|
|
52
|
-
name:
|
|
50
|
+
name: i18n('BACKGROUND'),
|
|
53
51
|
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
54
52
|
data: data.background
|
|
55
53
|
})
|