@fonixtree/magic-design 0.0.78 → 0.0.80
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 +24 -12
- package/es/assets/fonts/magic-box-iconfont.css.bak +24 -12
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/es/assets/less/common.less +2 -2
- package/es/assets/less/modal.less +7 -2
- package/es/common/Button/index.js +2 -1
- package/es/common/Button/index.less +5 -0
- package/es/common/ButtonIconLayout/index.less +4 -2
- package/es/common/Collapse/index.js +14 -4
- package/es/common/FontStyles/index.less +1 -1
- package/es/common/GroupList/index.js +4 -3
- package/es/common/ImageModal/index.js +31 -26
- package/es/common/ImageModal/index.less +6 -1
- package/es/common/ImgArea/components/Crop.js +267 -0
- package/es/common/ImgArea/components/Icons.js +44 -0
- package/es/common/ImgArea/components/MultiCrops.js +210 -0
- package/es/common/ImgArea/index.js +11 -0
- package/es/common/LinkModal/BundleCampaign/index.js +17 -17
- package/es/common/LinkModal/CustomTable/index.js +1 -0
- package/es/common/LinkModal/FilteredProductModal/index.js +3 -3
- package/es/common/LinkModal/FilteredProductModal/index.less +2 -3
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.less +1 -1
- package/es/common/MagicLink/index.js +89 -0
- package/es/common/MagicLink/index.less +0 -0
- package/es/common/ProductModal/index.js +1 -1
- package/es/common/ProductModal/index.less +12 -7
- package/es/common/UrlPicker/index.js +6 -2
- package/es/common/UrlPicker/index.less +12 -1
- package/es/common/index.js +8 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -10
- package/es/composite-comp/bol/components/Banner/pc/index.js +3 -6
- package/es/composite-comp/bol/components/Button/defaultJSON.js +40 -70
- package/es/composite-comp/bol/components/Button/index.js +8 -14
- package/es/composite-comp/bol/components/Button/index.less +1 -0
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +12 -16
- package/es/composite-comp/bol/components/Carousel/index.js +1 -6
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +4 -8
- package/es/composite-comp/bol/components/Carousel/pc/index.js +15 -7
- package/es/composite-comp/bol/components/Carousel/pc/index.less +13 -5
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +27 -167
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +2 -5
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
- package/es/composite-comp/bol/components/ImageText/pc/index.js +46 -18
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/Newsletter/index.js +1 -6
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
- package/es/composite-comp/bol/components/Tag/index.js +8 -14
- package/es/composite-comp/bol/components/Tag/index.less +1 -0
- package/es/composite-comp/bol/components/Text/defaultJSON.js +4 -6
- package/es/composite-comp/bol/components/Text/index.js +4 -8
- package/es/composite-comp/bol/components/Text/index.less +3 -3
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +141 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
- package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -0
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
- package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +141 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
- package/es/composite-comp/bol/{config-panels/ButtonCompConfig/ButtonConfigContent → second-config-panels/TagSecondConfig}/index.js +40 -38
- package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
- package/es/composite-comp/common/components/ImageLabel/index.js +2 -2
- package/es/composite-comp/common/components/ImageLabel/index.less +6 -2
- package/es/composite-comp/common/components/ProductItem/index.js +1 -1
- package/es/composite-comp/common/components/ProductItem/index.less +9 -9
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +24 -13
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +25 -25
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +62 -2
- package/es/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -1
- 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 +578 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +121 -0
- package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +131 -0
- package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
- package/es/composite-comp/dito/components/PcNavigation/index.js +85 -0
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +478 -0
- package/es/composite-comp/dito/components/PcNavigation/pc/index.less +98 -0
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +30 -12
- package/es/composite-comp/dito/components/Recommend/index.js +5 -6
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +45 -37
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +10 -2
- package/es/composite-comp/dito/components/Recommend/pc/index.js +134 -22
- package/es/composite-comp/dito/components/Recommend/pc/index.less +54 -12
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +45 -19
- package/es/composite-comp/dito/components/SearchBar/index.js +7 -2
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +29 -26
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +13 -3
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +151 -0
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +59 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +12 -2
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +16 -3
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +15 -51
- package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
- package/es/constants/component-types.js +13 -3
- package/es/constants/index.js +20 -2
- package/es/constants/layout.js +34 -8
- package/es/core/Designer/CompListPanel/index.js +8 -33
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
- package/es/core/Designer/ConfigPanel/index.js +72 -23
- package/es/core/Designer/ConfigPanel/index.less +4 -0
- package/es/core/Designer/History/index.js +34 -28
- package/es/core/Designer/PageCompList/index.js +13 -3
- 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 +20 -6
- package/es/core/Designer/index.js +43 -37
- package/es/core/Renderer/index.js +21 -5
- package/es/decorator/compositeDecorator.js +45 -12
- package/es/decorator/index.js +8 -0
- package/es/decorator/metaDecorator.js +4 -3
- package/es/decorator/updateConfigDecorator.js +76 -0
- package/es/locale/en/en.json +14 -1
- package/es/locale/es/es.json +14 -1
- package/es/locale/id/id.json +14 -1
- package/es/meta-comp/components/Button/editable.js +114 -0
- package/es/meta-comp/components/Button/editable.less +6 -0
- package/es/meta-comp/components/Button/index.js +14 -33
- package/es/meta-comp/components/Button/index.less +3 -2
- package/es/meta-comp/components/Image/index.js +39 -8
- package/es/meta-comp/components/Image/index.less +7 -4
- package/es/meta-comp/components/Text/index.js +28 -11
- package/es/meta-comp/config-panels/BaseConfig.js +8 -10
- package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -3
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +17 -4
- package/es/meta-comp/config-panels/TextConfig/index.js +15 -6
- package/es/mobx/Store.js +6 -10
- package/es/utils/coreUtil.js +15 -2
- package/lib/assets/fonts/magic-box-iconfont.css +24 -12
- package/lib/assets/fonts/magic-box-iconfont.css.bak +24 -12
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/lib/assets/less/common.less +2 -2
- package/lib/assets/less/modal.less +7 -2
- package/lib/common/Button/index.js +2 -1
- package/lib/common/Button/index.less +5 -0
- package/lib/common/ButtonIconLayout/index.less +4 -2
- package/lib/common/Collapse/index.js +14 -4
- package/lib/common/FontStyles/index.less +1 -1
- package/lib/common/GroupList/index.js +4 -3
- package/lib/common/ImageModal/index.js +31 -26
- package/lib/common/ImageModal/index.less +6 -1
- package/lib/common/ImgArea/components/Crop.js +267 -0
- package/lib/common/ImgArea/components/Icons.js +44 -0
- package/lib/common/ImgArea/components/MultiCrops.js +210 -0
- package/lib/common/ImgArea/index.js +11 -0
- package/lib/common/LinkModal/BundleCampaign/index.js +17 -17
- package/lib/common/LinkModal/CustomTable/index.js +1 -0
- package/lib/common/LinkModal/FilteredProductModal/index.js +3 -3
- package/lib/common/LinkModal/FilteredProductModal/index.less +2 -3
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.less +1 -1
- package/lib/common/MagicLink/index.js +89 -0
- package/lib/common/MagicLink/index.less +0 -0
- package/lib/common/ProductModal/index.js +1 -1
- package/lib/common/ProductModal/index.less +12 -7
- package/lib/common/UrlPicker/index.js +6 -2
- package/lib/common/UrlPicker/index.less +12 -1
- package/lib/common/index.js +8 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -10
- package/lib/composite-comp/bol/components/Banner/pc/index.js +3 -6
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +40 -70
- package/lib/composite-comp/bol/components/Button/index.js +8 -14
- package/lib/composite-comp/bol/components/Button/index.less +1 -0
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +12 -16
- package/lib/composite-comp/bol/components/Carousel/index.js +1 -6
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +4 -8
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +15 -7
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +13 -5
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +27 -167
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +2 -5
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +46 -18
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/Newsletter/index.js +1 -6
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
- package/lib/composite-comp/bol/components/Tag/index.js +8 -14
- package/lib/composite-comp/bol/components/Tag/index.less +1 -0
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +4 -6
- package/lib/composite-comp/bol/components/Text/index.js +4 -8
- package/lib/composite-comp/bol/components/Text/index.less +3 -3
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +141 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
- package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -0
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +141 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
- package/lib/composite-comp/bol/{config-panels/ButtonCompConfig/ButtonConfigContent → second-config-panels/TagSecondConfig}/index.js +40 -38
- package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
- package/lib/composite-comp/common/components/ImageLabel/index.js +2 -2
- package/lib/composite-comp/common/components/ImageLabel/index.less +6 -2
- package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
- package/lib/composite-comp/common/components/ProductItem/index.less +9 -9
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +24 -13
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +25 -25
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +62 -2
- package/lib/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -1
- 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 +578 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +121 -0
- package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +131 -0
- package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
- package/lib/composite-comp/dito/components/PcNavigation/index.js +85 -0
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +478 -0
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +98 -0
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +30 -12
- package/lib/composite-comp/dito/components/Recommend/index.js +5 -6
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +45 -37
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +10 -2
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +134 -22
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +54 -12
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +45 -19
- package/lib/composite-comp/dito/components/SearchBar/index.js +7 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +29 -26
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +13 -3
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +151 -0
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +59 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +12 -2
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +16 -3
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +15 -51
- package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
- package/lib/constants/component-types.js +13 -3
- package/lib/constants/index.js +20 -2
- package/lib/constants/layout.js +34 -8
- package/lib/core/Designer/CompListPanel/index.js +8 -33
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
- package/lib/core/Designer/ConfigPanel/index.js +72 -23
- package/lib/core/Designer/ConfigPanel/index.less +4 -0
- package/lib/core/Designer/History/index.js +34 -28
- package/lib/core/Designer/PageCompList/index.js +13 -3
- 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 +20 -6
- package/lib/core/Designer/index.js +43 -37
- package/lib/core/Renderer/index.js +21 -5
- package/lib/decorator/compositeDecorator.js +45 -12
- package/lib/decorator/index.js +8 -0
- package/lib/decorator/metaDecorator.js +4 -3
- package/lib/decorator/updateConfigDecorator.js +76 -0
- package/lib/locale/en/en.json +14 -1
- package/lib/locale/es/es.json +14 -1
- package/lib/locale/id/id.json +14 -1
- package/lib/meta-comp/components/Button/editable.js +114 -0
- package/lib/meta-comp/components/Button/editable.less +6 -0
- package/lib/meta-comp/components/Button/index.js +14 -33
- package/lib/meta-comp/components/Button/index.less +3 -2
- package/lib/meta-comp/components/Image/index.js +39 -8
- package/lib/meta-comp/components/Image/index.less +7 -4
- package/lib/meta-comp/components/Text/index.js +28 -11
- package/lib/meta-comp/config-panels/BaseConfig.js +8 -10
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -3
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +17 -4
- package/lib/meta-comp/config-panels/TextConfig/index.js +15 -6
- package/lib/mobx/Store.js +6 -10
- package/lib/utils/coreUtil.js +15 -2
- package/package.json +5 -3
|
@@ -7,13 +7,13 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _ButtonConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ButtonConfig"));
|
|
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,59 +43,61 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
43
43
|
};
|
|
44
44
|
}();
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var debug = require('debug')('worker:TagSecondConfig');
|
|
47
|
+
|
|
48
|
+
var TagSecondConfig =
|
|
47
49
|
/** @class */
|
|
48
50
|
function (_super) {
|
|
49
|
-
__extends(
|
|
51
|
+
__extends(TagSecondConfig, _super);
|
|
50
52
|
|
|
51
|
-
function
|
|
53
|
+
function TagSecondConfig() {
|
|
52
54
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53
55
|
|
|
54
56
|
_this.state = {};
|
|
55
57
|
|
|
56
|
-
_this.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
_this.getContentPanel = function () {
|
|
59
|
+
var panelProps = _this.props.panelProps;
|
|
60
|
+
var source = [{
|
|
61
|
+
key: '1',
|
|
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
|
+
});
|
|
60
77
|
};
|
|
61
78
|
|
|
62
79
|
return _this;
|
|
63
80
|
}
|
|
64
81
|
|
|
65
|
-
|
|
66
|
-
var panelProps = this.props.panelProps;
|
|
82
|
+
TagSecondConfig.prototype.render = function () {
|
|
67
83
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
|
-
className: "
|
|
69
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
70
|
-
|
|
71
|
-
|
|
84
|
+
className: "tag_second_conf_wrap"
|
|
85
|
+
}, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
86
|
+
divider: "bold",
|
|
87
|
+
headerSize: "large",
|
|
72
88
|
source: [{
|
|
73
89
|
key: '1',
|
|
74
|
-
name: (0, _locale.i18n)('
|
|
75
|
-
value:
|
|
76
|
-
|
|
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"
|
|
90
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
91
|
+
value: this.getContentPanel()
|
|
92
|
+
}]
|
|
88
93
|
}));
|
|
89
94
|
};
|
|
90
95
|
|
|
91
|
-
|
|
92
|
-
panelProps: {
|
|
93
|
-
button: {},
|
|
94
|
-
secondaryButton: {}
|
|
95
|
-
}
|
|
96
|
+
TagSecondConfig.defaultProps = {
|
|
97
|
+
panelProps: {}
|
|
96
98
|
};
|
|
97
|
-
return
|
|
99
|
+
return TagSecondConfig;
|
|
98
100
|
}(_react["default"].Component);
|
|
99
101
|
|
|
100
|
-
var _default =
|
|
102
|
+
var _default = TagSecondConfig;
|
|
101
103
|
exports["default"] = _default;
|
|
@@ -71,14 +71,14 @@ function (_super) {
|
|
|
71
71
|
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
72
72
|
key: label.imgUrl || label.labelPictureUrl,
|
|
73
73
|
alt: "img",
|
|
74
|
-
className: (0, _classnames["default"])('image-label-wrap', 'img', (_a = {}, _a["position-" + (label.position || '
|
|
74
|
+
className: (0, _classnames["default"])('image-label-wrap', 'img', (_a = {}, _a["position-" + (label.position || 'null')] = true, _a.small = small, _a)),
|
|
75
75
|
src: label.imgUrl || label.labelPictureUrl
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
80
|
key: label.labelName,
|
|
81
|
-
className: (0, _classnames["default"])('image-label-wrap', (_b = {}, _b["position-" + (label.position || '
|
|
81
|
+
className: (0, _classnames["default"])('image-label-wrap', (_b = {}, _b["position-" + (label.position || 'null')] = true, _b))
|
|
82
82
|
}, label.labelName);
|
|
83
83
|
});
|
|
84
84
|
};
|
|
@@ -144,7 +144,7 @@ function (_super) {
|
|
|
144
144
|
small: true
|
|
145
145
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
146
146
|
className: "content-wrap"
|
|
147
|
-
}, panelProps.label.open &&
|
|
147
|
+
}, panelProps.label.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
148
148
|
className: "promotions-wrap"
|
|
149
149
|
}, promotions.map(function (promot, index) {
|
|
150
150
|
return /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
@@ -4,14 +4,12 @@
|
|
|
4
4
|
background: #FFFFFF;
|
|
5
5
|
border: 1px solid #D2D9E5;
|
|
6
6
|
width: 142px;
|
|
7
|
-
|
|
7
|
+
cursor: pointer;
|
|
8
8
|
|
|
9
9
|
.img-wrap {
|
|
10
10
|
position: relative;
|
|
11
|
-
border-radius: 8px;
|
|
12
11
|
|
|
13
12
|
.product-img {
|
|
14
|
-
border-radius: 8px;
|
|
15
13
|
width: 140px;
|
|
16
14
|
height: 140px;
|
|
17
15
|
object-fit: cover;
|
|
@@ -24,10 +22,10 @@
|
|
|
24
22
|
.promotions-wrap {
|
|
25
23
|
display: flex;
|
|
26
24
|
flex-wrap: wrap;
|
|
27
|
-
margin-bottom: 5px;
|
|
28
25
|
|
|
29
26
|
.promotion-item {
|
|
30
27
|
margin-right: 5px;
|
|
28
|
+
margin-bottom: 5px;
|
|
31
29
|
|
|
32
30
|
&:last-child {
|
|
33
31
|
margin-right: 0;
|
|
@@ -36,7 +34,7 @@
|
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
.product-name {
|
|
39
|
-
margin-bottom:
|
|
37
|
+
margin-bottom: 3px;
|
|
40
38
|
// font-family: 'Montserrat';
|
|
41
39
|
// font-style: normal;
|
|
42
40
|
// font-weight: 500;
|
|
@@ -60,7 +58,7 @@
|
|
|
60
58
|
|
|
61
59
|
.old-price-wrap {
|
|
62
60
|
display: flex;
|
|
63
|
-
margin-top:
|
|
61
|
+
margin-top: 0px;
|
|
64
62
|
align-items: baseline;
|
|
65
63
|
white-space: nowrap;
|
|
66
64
|
overflow: hidden;
|
|
@@ -71,9 +69,11 @@
|
|
|
71
69
|
font-family: 'Montserrat';
|
|
72
70
|
font-style: normal;
|
|
73
71
|
font-weight: 700;
|
|
74
|
-
font-size:
|
|
72
|
+
font-size: 8px;
|
|
75
73
|
line-height: 15px;
|
|
76
|
-
color: #
|
|
74
|
+
color: #fff;
|
|
75
|
+
padding: 0 4px;
|
|
76
|
+
background-color: #CE1126;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.old-price {
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
|
|
132
132
|
&.fixHeight {
|
|
133
133
|
.promotions-wrap {
|
|
134
|
-
height:
|
|
134
|
+
height: 30px;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
.product-name {
|
|
@@ -121,21 +121,32 @@ function (_super) {
|
|
|
121
121
|
_this.props.store.setState({
|
|
122
122
|
CarouselStore: __assign(__assign({}, _mobx.store.CarouselStore), (_a = {}, _a[id] = v, _a))
|
|
123
123
|
});
|
|
124
|
+
} // 图文组件,移动端,只有第3个组件可选列数
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
if (component === 'imageText') {
|
|
128
|
+
if (!(0, _coreUtil.isPc)()) {
|
|
129
|
+
if (v === 'normal3') {
|
|
130
|
+
_this.setState({
|
|
131
|
+
showRowNum: true
|
|
132
|
+
});
|
|
133
|
+
} else {
|
|
134
|
+
_this.setState({
|
|
135
|
+
showRowNum: false
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
124
139
|
} // 移动端导航特殊处理
|
|
140
|
+
// 更改需求,两个布局都需 可选行数
|
|
141
|
+
// if (component == 'mobileNavigation') {
|
|
142
|
+
// if (v === 'tile') {
|
|
143
|
+
// this.setState({ showRowNum: false });
|
|
144
|
+
// } else {
|
|
145
|
+
// this.setState({ showRowNum: true });
|
|
146
|
+
// }
|
|
147
|
+
// }
|
|
125
148
|
|
|
126
149
|
|
|
127
|
-
if (component == 'mobileNavigation') {
|
|
128
|
-
if (v === 'tile') {
|
|
129
|
-
_this.setState({
|
|
130
|
-
showRowNum: false
|
|
131
|
-
});
|
|
132
|
-
} else {
|
|
133
|
-
_this.setState({
|
|
134
|
-
showRowNum: true
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
150
|
_this.selfRender(); // this.setState({});
|
|
140
151
|
|
|
141
152
|
};
|
|
@@ -192,7 +203,7 @@ function (_super) {
|
|
|
192
203
|
rowNumArr.push(i);
|
|
193
204
|
}
|
|
194
205
|
|
|
195
|
-
var _showRowNum = showRowNum && ((0, _coreUtil.isPc)() &&
|
|
206
|
+
var _showRowNum = showRowNum && ((0, _coreUtil.isPc)() && data.pcRowNum || !(0, _coreUtil.isPc)() && data.rowNum);
|
|
196
207
|
|
|
197
208
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
198
209
|
className: "m-customize-config"
|
|
@@ -65,14 +65,14 @@ function (_super) {
|
|
|
65
65
|
configPaddingLR = _a.configPaddingLR,
|
|
66
66
|
configCompSpace = _a.configCompSpace,
|
|
67
67
|
configWidth = _a.configWidth;
|
|
68
|
-
var obj = data[window.magicDesign.device];
|
|
68
|
+
var obj = data[window.magicDesign.device] || {};
|
|
69
69
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
70
|
className: "spacing-config-container"
|
|
71
71
|
}, configWidth && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
72
72
|
title: "Width"
|
|
73
73
|
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
74
74
|
maxVal: window.magicDesign.device === 'pc' ? 1240 : 375,
|
|
75
|
-
minVal: window.magicDesign.device === 'pc' ?
|
|
75
|
+
minVal: window.magicDesign.device === 'pc' ? 806 : 348,
|
|
76
76
|
onChange: function onChange(value) {
|
|
77
77
|
obj.contentWidth = value.count;
|
|
78
78
|
|
|
@@ -89,46 +89,46 @@ function (_super) {
|
|
|
89
89
|
className: "padding-item"
|
|
90
90
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
91
91
|
type: "icon-padding-top"
|
|
92
|
-
}), /*#__PURE__*/_react["default"].createElement(_antd.
|
|
92
|
+
}), /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
|
|
93
93
|
onChange: function onChange(e) {
|
|
94
|
-
obj.paddingTop = e
|
|
94
|
+
obj.paddingTop = e;
|
|
95
95
|
|
|
96
96
|
_this.selfRender();
|
|
97
97
|
},
|
|
98
|
-
value: obj.paddingTop
|
|
98
|
+
value: obj.paddingTop || 0
|
|
99
99
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
100
|
className: "padding-item"
|
|
101
101
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
102
102
|
type: "icon-padding-bottom"
|
|
103
|
-
}), /*#__PURE__*/_react["default"].createElement(_antd.
|
|
103
|
+
}), /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
|
|
104
104
|
onChange: function onChange(e) {
|
|
105
|
-
obj.paddingBottom = e
|
|
105
|
+
obj.paddingBottom = e;
|
|
106
106
|
|
|
107
107
|
_this.selfRender();
|
|
108
108
|
},
|
|
109
|
-
value: obj.paddingBottom
|
|
109
|
+
value: obj.paddingBottom || 0
|
|
110
110
|
})), configPaddingLR && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
111
|
className: "padding-item"
|
|
112
112
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
113
113
|
type: "icon-padding-left"
|
|
114
|
-
}), /*#__PURE__*/_react["default"].createElement(_antd.
|
|
114
|
+
}), /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
|
|
115
115
|
onChange: function onChange(e) {
|
|
116
|
-
obj.paddingLeft = e
|
|
116
|
+
obj.paddingLeft = e;
|
|
117
117
|
|
|
118
118
|
_this.selfRender();
|
|
119
119
|
},
|
|
120
|
-
value: obj.paddingLeft
|
|
120
|
+
value: obj.paddingLeft || 0
|
|
121
121
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
122
|
className: "padding-item"
|
|
123
123
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
124
124
|
type: "icon-padding-right"
|
|
125
|
-
}), /*#__PURE__*/_react["default"].createElement(_antd.
|
|
125
|
+
}), /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
|
|
126
126
|
onChange: function onChange(e) {
|
|
127
|
-
obj.paddingRight = e
|
|
127
|
+
obj.paddingRight = e;
|
|
128
128
|
|
|
129
129
|
_this.selfRender();
|
|
130
130
|
},
|
|
131
|
-
value: obj.paddingRight
|
|
131
|
+
value: obj.paddingRight || 0
|
|
132
132
|
}))))), configCompSpace && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
133
133
|
title: (0, _locale.i18n)('COMPONENT_SPACING')
|
|
134
134
|
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
@@ -146,23 +146,23 @@ function (_super) {
|
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
SpacingConfig.defaultProps = {
|
|
149
|
-
configPaddingLR:
|
|
149
|
+
configPaddingLR: true,
|
|
150
150
|
configCompSpace: true,
|
|
151
151
|
configWidth: false,
|
|
152
152
|
data: {
|
|
153
153
|
pc: {
|
|
154
|
-
paddingTop:
|
|
155
|
-
paddingBottom:
|
|
156
|
-
paddingLeft:
|
|
157
|
-
paddingRight:
|
|
158
|
-
marginBottom:
|
|
154
|
+
paddingTop: 0,
|
|
155
|
+
paddingBottom: 0,
|
|
156
|
+
paddingLeft: 0,
|
|
157
|
+
paddingRight: 0,
|
|
158
|
+
marginBottom: 0
|
|
159
159
|
},
|
|
160
160
|
mobile: {
|
|
161
|
-
paddingTop:
|
|
162
|
-
paddingBottom:
|
|
163
|
-
paddingLeft:
|
|
164
|
-
paddingRight:
|
|
165
|
-
marginBottom:
|
|
161
|
+
paddingTop: 0,
|
|
162
|
+
paddingBottom: 0,
|
|
163
|
+
paddingLeft: 0,
|
|
164
|
+
paddingRight: 0,
|
|
165
|
+
marginBottom: 0
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
};
|
|
@@ -8,11 +8,13 @@ exports.getDefaultJSON = void 0;
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
10
|
var getDefaultJSON = function getDefaultJSON() {
|
|
11
|
+
var contentId = (0, _uuid.v4)();
|
|
11
12
|
return {
|
|
12
13
|
id: (0, _uuid.v4)(),
|
|
13
14
|
type: 'FLASH_DEAL',
|
|
14
15
|
title: {
|
|
15
16
|
icon: {
|
|
17
|
+
id: (0, _uuid.v4)(),
|
|
16
18
|
open: true,
|
|
17
19
|
url: '/get/resource/platform/conf/20220722/picture/组633391550411058986147840.png'
|
|
18
20
|
},
|
|
@@ -23,6 +25,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
23
25
|
specialContent: [],
|
|
24
26
|
text: 'Flash Deal',
|
|
25
27
|
content: {
|
|
28
|
+
sizeType: 'Customize font styles',
|
|
26
29
|
fontFamily: 'Open Sans',
|
|
27
30
|
fontWeight: 600,
|
|
28
31
|
fontSize: 14,
|
|
@@ -48,6 +51,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
48
51
|
backgroundColor: ''
|
|
49
52
|
},
|
|
50
53
|
buttonText: {
|
|
54
|
+
sizeType: 'Customize font styles',
|
|
51
55
|
fontFamily: 'Open Sans',
|
|
52
56
|
fontWeight: 600,
|
|
53
57
|
fontSize: 12,
|
|
@@ -60,6 +64,20 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
60
64
|
borderColor: '',
|
|
61
65
|
borderRadius: 6
|
|
62
66
|
},
|
|
67
|
+
spacing: {
|
|
68
|
+
pc: {
|
|
69
|
+
paddingTop: 2,
|
|
70
|
+
paddingBottom: 2,
|
|
71
|
+
paddingLeft: 5,
|
|
72
|
+
paddingRight: 5
|
|
73
|
+
},
|
|
74
|
+
mobile: {
|
|
75
|
+
paddingTop: 2,
|
|
76
|
+
paddingBottom: 2,
|
|
77
|
+
paddingLeft: 5,
|
|
78
|
+
paddingRight: 5
|
|
79
|
+
}
|
|
80
|
+
},
|
|
63
81
|
buttonIcon: {
|
|
64
82
|
iconUrl: '/get/resource/platform/conf/20220719/picture/icon-arrow-right-s1549371733179686912.png',
|
|
65
83
|
layout: 'right'
|
|
@@ -68,9 +86,11 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
68
86
|
}
|
|
69
87
|
},
|
|
70
88
|
content: {
|
|
89
|
+
id: contentId,
|
|
71
90
|
sortType: '1',
|
|
72
91
|
label: {
|
|
73
92
|
id: (0, _uuid.v4)(),
|
|
93
|
+
contentId: contentId,
|
|
74
94
|
open: true,
|
|
75
95
|
type: 'BUTTON',
|
|
76
96
|
text: 'Button',
|
|
@@ -79,6 +99,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
79
99
|
backgroundColor: '#CC1D20'
|
|
80
100
|
},
|
|
81
101
|
buttonText: {
|
|
102
|
+
sizeType: 'Customize font styles',
|
|
82
103
|
fontFamily: 'Open Sans',
|
|
83
104
|
fontWeight: 600,
|
|
84
105
|
fontSize: 8,
|
|
@@ -91,6 +112,20 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
91
112
|
borderColor: '',
|
|
92
113
|
borderRadius: 7
|
|
93
114
|
},
|
|
115
|
+
spacing: {
|
|
116
|
+
pc: {
|
|
117
|
+
paddingTop: 2,
|
|
118
|
+
paddingBottom: 2,
|
|
119
|
+
paddingLeft: 3,
|
|
120
|
+
paddingRight: 3
|
|
121
|
+
},
|
|
122
|
+
mobile: {
|
|
123
|
+
paddingTop: 2,
|
|
124
|
+
paddingBottom: 2,
|
|
125
|
+
paddingLeft: 3,
|
|
126
|
+
paddingRight: 3
|
|
127
|
+
}
|
|
128
|
+
},
|
|
94
129
|
buttonIcon: {
|
|
95
130
|
iconUrl: '',
|
|
96
131
|
layout: 'right'
|
|
@@ -99,11 +134,13 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
99
134
|
},
|
|
100
135
|
productName: {
|
|
101
136
|
id: (0, _uuid.v4)(),
|
|
137
|
+
contentId: contentId,
|
|
102
138
|
open: true,
|
|
103
139
|
type: 'Text',
|
|
104
140
|
specialContent: [],
|
|
105
141
|
text: 'Flash Deal',
|
|
106
142
|
content: {
|
|
143
|
+
sizeType: 'Customize font styles',
|
|
107
144
|
fontFamily: 'Open Sans',
|
|
108
145
|
fontWeight: 500,
|
|
109
146
|
fontSize: 14,
|
|
@@ -121,11 +158,13 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
121
158
|
},
|
|
122
159
|
activityPrice: {
|
|
123
160
|
id: (0, _uuid.v4)(),
|
|
161
|
+
contentId: contentId,
|
|
124
162
|
open: true,
|
|
125
163
|
type: 'Text',
|
|
126
164
|
specialContent: [],
|
|
127
165
|
text: 'Flash Deal',
|
|
128
166
|
content: {
|
|
167
|
+
sizeType: 'Customize font styles',
|
|
129
168
|
fontFamily: 'Open Sans',
|
|
130
169
|
fontWeight: 600,
|
|
131
170
|
fontSize: 14,
|
|
@@ -143,11 +182,13 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
143
182
|
},
|
|
144
183
|
salesPrice: {
|
|
145
184
|
id: (0, _uuid.v4)(),
|
|
185
|
+
contentId: contentId,
|
|
146
186
|
open: true,
|
|
147
187
|
type: 'Text',
|
|
148
188
|
specialContent: [],
|
|
149
189
|
text: 'Flash Deal',
|
|
150
190
|
content: {
|
|
191
|
+
sizeType: 'Customize font styles',
|
|
151
192
|
fontFamily: 'Open Sans',
|
|
152
193
|
fontWeight: 500,
|
|
153
194
|
fontSize: 10,
|
|
@@ -167,9 +208,28 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
167
208
|
open: true
|
|
168
209
|
}
|
|
169
210
|
},
|
|
211
|
+
spacing: {
|
|
212
|
+
pc: {
|
|
213
|
+
paddingTop: 0,
|
|
214
|
+
paddingBottom: 0,
|
|
215
|
+
paddingLeft: 0,
|
|
216
|
+
paddingRight: 0,
|
|
217
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
218
|
+
},
|
|
219
|
+
mobile: {
|
|
220
|
+
paddingTop: 0,
|
|
221
|
+
paddingBottom: 0,
|
|
222
|
+
paddingLeft: 0,
|
|
223
|
+
paddingRight: 0,
|
|
224
|
+
marginBottom: window.magicDesign.compSpacing
|
|
225
|
+
}
|
|
226
|
+
},
|
|
170
227
|
customize: {
|
|
171
|
-
layout: '
|
|
172
|
-
align: 'left'
|
|
228
|
+
layout: 'layout1',
|
|
229
|
+
align: 'left',
|
|
230
|
+
pcRowNum: 6,
|
|
231
|
+
pcMaxRowNum: 6,
|
|
232
|
+
pcMinRowNum: 5
|
|
173
233
|
},
|
|
174
234
|
background: {
|
|
175
235
|
opacity: 100,
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _mobile = _interopRequireDefault(require("./mobile"));
|
|
11
11
|
|
|
12
|
+
var _pc = _interopRequireDefault(require("./pc"));
|
|
13
|
+
|
|
12
14
|
var _defaultJSON = require("./defaultJSON");
|
|
13
15
|
|
|
14
16
|
var _coreUtil = require("../../../../utils/coreUtil");
|
|
@@ -70,7 +72,9 @@ function (_super) {
|
|
|
70
72
|
|
|
71
73
|
FlashDeal.prototype.render = function () {
|
|
72
74
|
var nodeData = this.props.nodeData;
|
|
73
|
-
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ?
|
|
75
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
|
|
76
|
+
panelProps: nodeData
|
|
77
|
+
}) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
74
78
|
panelProps: nodeData
|
|
75
79
|
}));
|
|
76
80
|
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|