@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
|
@@ -15,8 +15,6 @@ var _coreUtil = require("../../../../utils/coreUtil");
|
|
|
15
15
|
|
|
16
16
|
var _layout = require("../../../../constants/layout");
|
|
17
17
|
|
|
18
|
-
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
19
|
-
|
|
20
18
|
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
21
19
|
|
|
22
20
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
@@ -83,8 +81,6 @@ function (_super) {
|
|
|
83
81
|
}
|
|
84
82
|
|
|
85
83
|
RecommendConfig.prototype.render = function () {
|
|
86
|
-
var _this = this;
|
|
87
|
-
|
|
88
84
|
var data = this.props.data;
|
|
89
85
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
90
86
|
divider: "bold",
|
|
@@ -101,24 +97,14 @@ function (_super) {
|
|
|
101
97
|
value: /*#__PURE__*/_react["default"].createElement(_RecommendConfigContent["default"], {
|
|
102
98
|
panelProps: data.content
|
|
103
99
|
})
|
|
104
|
-
}, {
|
|
105
|
-
|
|
106
|
-
name: (0, _locale.i18n)('SPACING'),
|
|
107
|
-
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
108
|
-
configCompSpace: true,
|
|
109
|
-
configPaddingLR: true,
|
|
110
|
-
data: data.spacing
|
|
111
|
-
})
|
|
112
|
-
}, {
|
|
100
|
+
}, // { key: '3', name: i18n('SPACING'), value: <SpacingConfig configCompSpace configPaddingLR data={data.spacing} /> },
|
|
101
|
+
{
|
|
113
102
|
key: '4',
|
|
114
103
|
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
115
104
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
116
105
|
data: data.customize,
|
|
117
106
|
isHideAlign: true,
|
|
118
|
-
layoutSource: (0, _coreUtil.isPc)() ? _layout.recommendLayoutPc : _layout.recommendLayoutMobile
|
|
119
|
-
selectedLayoutFun: function selectedLayoutFun(v) {
|
|
120
|
-
_this.getLayout(v);
|
|
121
|
-
}
|
|
107
|
+
layoutSource: (0, _coreUtil.isPc)() ? _layout.recommendLayoutPc : _layout.recommendLayoutMobile
|
|
122
108
|
})
|
|
123
109
|
}, {
|
|
124
110
|
key: '5',
|
|
@@ -15,8 +15,6 @@ var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-
|
|
|
15
15
|
|
|
16
16
|
var _common = require("../../../../common");
|
|
17
17
|
|
|
18
|
-
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
19
|
-
|
|
20
18
|
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
21
19
|
|
|
22
20
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
@@ -77,53 +75,25 @@ function (_super) {
|
|
|
77
75
|
toggleType: 'switch'
|
|
78
76
|
}, {
|
|
79
77
|
key: 'search2',
|
|
80
|
-
name: (0, _locale.i18n)('SEARCH_BOX'),
|
|
81
|
-
value: /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
82
|
-
style: {
|
|
83
|
-
marginTop: 20
|
|
84
|
-
},
|
|
85
|
-
title: (0, _locale.i18n)('COLOR')
|
|
86
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
87
|
-
onChange: function onChange(v) {
|
|
88
|
-
if ((0, _coreUtil.isPc)()) {
|
|
89
|
-
data.box.color.pc = v;
|
|
90
|
-
} else {
|
|
91
|
-
data.box.color.mobile = v;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
_this.selfRender();
|
|
95
|
-
},
|
|
96
|
-
value: (0, _coreUtil.isPc)() ? data.box.color.pc : data.box.color.mobile
|
|
97
|
-
})),
|
|
98
|
-
metaOption: data.box,
|
|
99
|
-
toggleType: 'switch'
|
|
100
|
-
}, {
|
|
101
|
-
key: 'search3',
|
|
102
78
|
name: (0, _locale.i18n)('ICON'),
|
|
103
79
|
value: /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
104
|
-
style: {
|
|
105
|
-
marginTop: 20
|
|
106
|
-
},
|
|
107
80
|
title: (0, _locale.i18n)('COLOR')
|
|
108
81
|
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
109
82
|
onChange: function onChange(v) {
|
|
110
|
-
|
|
111
|
-
data.icon.color.pc = v;
|
|
112
|
-
} else {
|
|
113
|
-
data.icon.color.mobile = v;
|
|
114
|
-
}
|
|
83
|
+
data.icon.color = v;
|
|
115
84
|
|
|
116
85
|
_this.selfRender();
|
|
117
86
|
},
|
|
118
|
-
value:
|
|
87
|
+
value: data.icon.color
|
|
119
88
|
})),
|
|
120
89
|
metaOption: data.icon,
|
|
121
90
|
toggleType: 'switch'
|
|
122
91
|
}];
|
|
123
92
|
return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
124
93
|
headerSize: "middle",
|
|
125
|
-
|
|
126
|
-
|
|
94
|
+
onRefresh: function onRefresh() {
|
|
95
|
+
return (0, _coreUtil.renderPreview)();
|
|
96
|
+
},
|
|
127
97
|
showActiveColor: true,
|
|
128
98
|
source: source,
|
|
129
99
|
type: "switch"
|
|
@@ -142,13 +112,6 @@ function (_super) {
|
|
|
142
112
|
key: 'searchBar1',
|
|
143
113
|
name: (0, _locale.i18n)('CONTENT'),
|
|
144
114
|
value: this.getContentPanel()
|
|
145
|
-
}, {
|
|
146
|
-
key: 'searchBar4',
|
|
147
|
-
name: (0, _locale.i18n)('SPACING'),
|
|
148
|
-
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
149
|
-
configCompSpace: true,
|
|
150
|
-
data: data.spacing
|
|
151
|
-
})
|
|
152
115
|
}, {
|
|
153
116
|
key: 'searchBar2',
|
|
154
117
|
name: (0, _locale.i18n)('CUSTOMIZE'),
|
package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js
CHANGED
|
@@ -215,32 +215,17 @@ function (_super) {
|
|
|
215
215
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
216
216
|
|
|
217
217
|
_this.state = {
|
|
218
|
-
intelligentType:
|
|
219
|
-
|
|
218
|
+
intelligentType: (0, _commonUtil.ensure)(function () {
|
|
219
|
+
return _this.props.value.intelligentType;
|
|
220
|
+
}, 'ALL'),
|
|
221
|
+
intelligentValue: (0, _commonUtil.ensure)(function () {
|
|
222
|
+
return _this.props.value.intelligentValue;
|
|
223
|
+
}, []),
|
|
220
224
|
categoryData: [],
|
|
221
225
|
brandData: [],
|
|
222
226
|
labelData: []
|
|
223
227
|
};
|
|
224
228
|
|
|
225
|
-
_this.onChangeIntelligentType = function (type) {
|
|
226
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
227
|
-
return __generator(this, function (_a) {
|
|
228
|
-
this.setState({
|
|
229
|
-
intelligentType: type,
|
|
230
|
-
intelligentValue: []
|
|
231
|
-
});
|
|
232
|
-
this.getTypeData(type);
|
|
233
|
-
this.props.onChange({
|
|
234
|
-
intelligentType: type,
|
|
235
|
-
intelligentValue: []
|
|
236
|
-
});
|
|
237
|
-
return [2
|
|
238
|
-
/*return*/
|
|
239
|
-
];
|
|
240
|
-
});
|
|
241
|
-
});
|
|
242
|
-
};
|
|
243
|
-
|
|
244
229
|
_this.getTypeData = function (type) {
|
|
245
230
|
return __awaiter(_this, void 0, void 0, function () {
|
|
246
231
|
var res, res, res;
|
|
@@ -313,29 +298,34 @@ function (_super) {
|
|
|
313
298
|
});
|
|
314
299
|
};
|
|
315
300
|
|
|
301
|
+
_this.onChangeIntelligentType = function (type) {
|
|
302
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
303
|
+
return __generator(this, function (_a) {
|
|
304
|
+
this.setState({
|
|
305
|
+
intelligentType: type,
|
|
306
|
+
intelligentValue: []
|
|
307
|
+
});
|
|
308
|
+
this.props.onChange({
|
|
309
|
+
intelligentType: type,
|
|
310
|
+
intelligentValue: []
|
|
311
|
+
});
|
|
312
|
+
this.getTypeData(type);
|
|
313
|
+
return [2
|
|
314
|
+
/*return*/
|
|
315
|
+
];
|
|
316
|
+
});
|
|
317
|
+
});
|
|
318
|
+
};
|
|
319
|
+
|
|
316
320
|
return _this;
|
|
317
321
|
}
|
|
318
322
|
|
|
319
323
|
AIRecommendation.prototype.componentDidMount = function () {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
this.getTypeData(intelligentType);
|
|
324
|
-
this.setState({
|
|
325
|
-
intelligentType: intelligentType,
|
|
326
|
-
intelligentValue: intelligentValue
|
|
327
|
-
});
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
AIRecommendation.prototype.componentWillReceiveProps = function (nextProps) {
|
|
331
|
-
var _a = nextProps.value,
|
|
332
|
-
intelligentType = _a.intelligentType,
|
|
333
|
-
intelligentValue = _a.intelligentValue;
|
|
334
|
-
this.getTypeData(intelligentType);
|
|
335
|
-
this.setState({
|
|
336
|
-
intelligentType: intelligentType,
|
|
337
|
-
intelligentValue: intelligentValue
|
|
324
|
+
this.props.onChange({
|
|
325
|
+
intelligentType: this.state.intelligentType,
|
|
326
|
+
intelligentValue: this.state.intelligentValue
|
|
338
327
|
});
|
|
328
|
+
this.getTypeData(this.state.intelligentType);
|
|
339
329
|
};
|
|
340
330
|
|
|
341
331
|
AIRecommendation.prototype.render = function () {
|
|
@@ -17,16 +17,12 @@ var _common = require("../../../../common");
|
|
|
17
17
|
|
|
18
18
|
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
19
19
|
|
|
20
|
-
var _ButtonConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ButtonConfig"));
|
|
21
|
-
|
|
22
20
|
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
23
21
|
|
|
24
22
|
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
25
23
|
|
|
26
24
|
var _coreUtil = require("../../../../utils/coreUtil");
|
|
27
25
|
|
|
28
|
-
require("./index.less");
|
|
29
|
-
|
|
30
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
27
|
|
|
32
28
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -55,22 +51,6 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
55
51
|
};
|
|
56
52
|
}();
|
|
57
53
|
|
|
58
|
-
var __assign = void 0 && (void 0).__assign || function () {
|
|
59
|
-
__assign = Object.assign || function (t) {
|
|
60
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
61
|
-
s = arguments[i];
|
|
62
|
-
|
|
63
|
-
for (var p in s) {
|
|
64
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return t;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
return __assign.apply(this, arguments);
|
|
72
|
-
};
|
|
73
|
-
|
|
74
54
|
var RecommendSecondConfig =
|
|
75
55
|
/** @class */
|
|
76
56
|
function (_super) {
|
|
@@ -84,9 +64,16 @@ function (_super) {
|
|
|
84
64
|
_this.getContentPanel = function () {
|
|
85
65
|
var panelProps = _this.props.panelProps;
|
|
86
66
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
67
|
+
if (!panelProps.hover) {
|
|
68
|
+
panelProps.hover = {
|
|
69
|
+
open: false,
|
|
70
|
+
image: JSON.parse(JSON.stringify(panelProps.image)),
|
|
71
|
+
groupName: JSON.parse(JSON.stringify(panelProps.groupName))
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
var productSource = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
76
|
+
split: "dashed",
|
|
90
77
|
title: (0, _locale.i18n)('SOURCE_OF_PRODUCT')
|
|
91
78
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
92
79
|
onChange: function onChange(v) {
|
|
@@ -99,9 +86,7 @@ function (_super) {
|
|
|
99
86
|
value: "select"
|
|
100
87
|
}, (0, _locale.i18n)('SELECT_PRODUCT')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
101
88
|
value: "recommend"
|
|
102
|
-
}, (0, _locale.i18n)('AI_RECOMMENDATION')))), /*#__PURE__*/_react["default"].createElement(
|
|
103
|
-
className: "greyBg"
|
|
104
|
-
}, panelProps.sourceType === 'select' && /*#__PURE__*/_react["default"].createElement(_common.ProductSource, {
|
|
89
|
+
}, (0, _locale.i18n)('AI_RECOMMENDATION')))), panelProps.sourceType === 'select' && /*#__PURE__*/_react["default"].createElement(_common.ProductSource, {
|
|
105
90
|
onChange: function onChange(v) {
|
|
106
91
|
panelProps.prodIds = v;
|
|
107
92
|
|
|
@@ -120,6 +105,7 @@ function (_super) {
|
|
|
120
105
|
intelligentValue: panelProps.intelligentValue
|
|
121
106
|
}
|
|
122
107
|
}), panelProps.sourceType === 'recommend' && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
108
|
+
split: "dashed",
|
|
123
109
|
title: (0, _locale.i18n)('PRODUCT_QUANTITY')
|
|
124
110
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Radio.Group, {
|
|
125
111
|
onChange: function onChange(e) {
|
|
@@ -136,7 +122,27 @@ function (_super) {
|
|
|
136
122
|
value: 50
|
|
137
123
|
}, "\u226450"), /*#__PURE__*/_react["default"].createElement(_antd.Radio, {
|
|
138
124
|
value: 100
|
|
139
|
-
}, "\u2264100"))))
|
|
125
|
+
}, "\u2264100"))));
|
|
126
|
+
|
|
127
|
+
var hoverSetting = /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
128
|
+
divider: "dashed",
|
|
129
|
+
source: [{
|
|
130
|
+
key: 'hoverSetting_1',
|
|
131
|
+
name: (0, _locale.i18n)('IMAGE'),
|
|
132
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
133
|
+
data: panelProps.hover.image
|
|
134
|
+
}),
|
|
135
|
+
metaOption: panelProps.hover.image
|
|
136
|
+
}, {
|
|
137
|
+
key: 'hoverSetting_2',
|
|
138
|
+
name: (0, _locale.i18n)('GROUP_NAME'),
|
|
139
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
140
|
+
data: panelProps.hover.groupName
|
|
141
|
+
}),
|
|
142
|
+
metaOption: panelProps.hover.groupName
|
|
143
|
+
}],
|
|
144
|
+
type: "switch"
|
|
145
|
+
});
|
|
140
146
|
|
|
141
147
|
var defaultSource = [{
|
|
142
148
|
key: 'defaultSource_1',
|
|
@@ -152,13 +158,22 @@ function (_super) {
|
|
|
152
158
|
data: panelProps.groupName
|
|
153
159
|
}),
|
|
154
160
|
metaOption: panelProps.groupName
|
|
161
|
+
}, // { key: 'defaultSource_3', name: i18n('SEE_ALL'), value: <ButtonConfig data={panelProps.seeAll} />, metaOption: panelProps.seeAll },
|
|
162
|
+
{
|
|
163
|
+
key: 'defaultSource_4',
|
|
164
|
+
name: (0, _locale.i18n)('SECOND_CATEGORY'),
|
|
165
|
+
value: productSource,
|
|
166
|
+
toggleType: 'arrow',
|
|
167
|
+
metaOption: {
|
|
168
|
+
id: 'productSource',
|
|
169
|
+
open: true
|
|
170
|
+
}
|
|
155
171
|
}, {
|
|
156
|
-
key: '
|
|
157
|
-
name: (0, _locale.i18n)('
|
|
158
|
-
value:
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
metaOption: panelProps.seeAll
|
|
172
|
+
key: 'defaultSource_5',
|
|
173
|
+
name: (0, _locale.i18n)('HOVER'),
|
|
174
|
+
value: hoverSetting,
|
|
175
|
+
metaOption: panelProps.hover,
|
|
176
|
+
toggleType: 'checkbox'
|
|
162
177
|
}];
|
|
163
178
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
164
179
|
headerSize: "middle",
|
|
@@ -168,68 +183,22 @@ function (_super) {
|
|
|
168
183
|
showActiveColor: true,
|
|
169
184
|
source: defaultSource,
|
|
170
185
|
type: "switch"
|
|
171
|
-
})
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
_this.resetHover = function () {
|
|
175
|
-
var panelProps = _this.props.panelProps;
|
|
176
|
-
|
|
177
|
-
if (panelProps.hover.open) {
|
|
178
|
-
panelProps.hover.image = __assign(__assign({}, panelProps.hover.image), JSON.parse(JSON.stringify(panelProps.image)));
|
|
179
|
-
panelProps.hover.groupName = __assign(__assign({}, panelProps.hover.groupName), JSON.parse(JSON.stringify(panelProps.groupName)));
|
|
180
|
-
}
|
|
186
|
+
}));
|
|
181
187
|
};
|
|
182
188
|
|
|
183
189
|
return _this;
|
|
184
190
|
}
|
|
185
191
|
|
|
186
192
|
RecommendSecondConfig.prototype.render = function () {
|
|
187
|
-
var _this = this;
|
|
188
|
-
|
|
189
|
-
var panelProps = this.props.panelProps;
|
|
190
|
-
|
|
191
|
-
var hoverPanel = /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
192
|
-
divider: "dashed",
|
|
193
|
-
noChange: true,
|
|
194
|
-
onRefresh: function onRefresh() {
|
|
195
|
-
return (0, _coreUtil.renderPreview)();
|
|
196
|
-
},
|
|
197
|
-
source: [{
|
|
198
|
-
key: 'hoverSetting_1',
|
|
199
|
-
name: (0, _locale.i18n)('IMAGE'),
|
|
200
|
-
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
201
|
-
data: panelProps.hover.image
|
|
202
|
-
}),
|
|
203
|
-
metaOption: panelProps.hover.image
|
|
204
|
-
}, {
|
|
205
|
-
key: 'hoverSetting_2',
|
|
206
|
-
name: (0, _locale.i18n)('GROUP_NAME'),
|
|
207
|
-
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
208
|
-
data: panelProps.hover.groupName
|
|
209
|
-
}),
|
|
210
|
-
metaOption: panelProps.hover.groupName
|
|
211
|
-
}],
|
|
212
|
-
type: "switch"
|
|
213
|
-
});
|
|
214
|
-
|
|
215
193
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
216
194
|
className: "recommend_second_conf_wrap"
|
|
217
195
|
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
218
196
|
divider: "bold",
|
|
219
197
|
headerSize: "large",
|
|
220
|
-
onRefresh: function onRefresh() {
|
|
221
|
-
return _this.resetHover();
|
|
222
|
-
},
|
|
223
198
|
source: [{
|
|
224
199
|
key: '1',
|
|
225
200
|
name: (0, _locale.i18n)('CONTENT'),
|
|
226
201
|
value: this.getContentPanel()
|
|
227
|
-
}, {
|
|
228
|
-
key: '2',
|
|
229
|
-
name: (0, _locale.i18n)('HOVER'),
|
|
230
|
-
value: hoverPanel,
|
|
231
|
-
metaOption: panelProps.hover,
|
|
232
|
-
toggleType: 'checkbox'
|
|
233
202
|
}]
|
|
234
203
|
}));
|
|
235
204
|
};
|
|
@@ -1,15 +1,3 @@
|
|
|
1
1
|
.recommend_second_conf_wrap {
|
|
2
|
-
|
|
3
|
-
.sourceOfProduct {
|
|
4
|
-
border-top: 1px solid #D2D9E5;
|
|
5
|
-
padding-top: 20px;
|
|
6
|
-
padding-bottom: 10px;
|
|
7
|
-
|
|
8
|
-
.greyBg {
|
|
9
|
-
background: #F5F6F7;
|
|
10
|
-
border-radius: 6px;
|
|
11
|
-
padding: 12px;
|
|
12
|
-
padding-bottom: 1px;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
2
|
+
width: 354px;
|
|
15
3
|
}
|
|
@@ -31,8 +31,6 @@ var _Recommend = _interopRequireDefault(require("../composite-comp/dito/componen
|
|
|
31
31
|
|
|
32
32
|
var _MobileNavigation = _interopRequireDefault(require("../composite-comp/dito/components/MobileNavigation"));
|
|
33
33
|
|
|
34
|
-
var _PcNavigation = _interopRequireDefault(require("../composite-comp/dito/components/PcNavigation"));
|
|
35
|
-
|
|
36
34
|
var _BannerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/BannerConfig"));
|
|
37
35
|
|
|
38
36
|
var _DividerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/DividerConfig"));
|
|
@@ -59,8 +57,6 @@ var _RecommendConfig = _interopRequireDefault(require("../composite-comp/dito/co
|
|
|
59
57
|
|
|
60
58
|
var _MobileNavigationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/MobileNavigationConfig"));
|
|
61
59
|
|
|
62
|
-
var _PcNavigationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/PcNavigationConfig"));
|
|
63
|
-
|
|
64
60
|
var _BannerSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/BannerSecondConfig"));
|
|
65
61
|
|
|
66
62
|
var _TextSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TextSecondConfig"));
|
|
@@ -73,12 +69,6 @@ var _RecommendSecondConfig = _interopRequireDefault(require("../composite-comp/d
|
|
|
73
69
|
|
|
74
70
|
var _MobileNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/MobileNavigationSecondConfig"));
|
|
75
71
|
|
|
76
|
-
var _TagSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TagSecondConfig"));
|
|
77
|
-
|
|
78
|
-
var _ButtonSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/ButtonSecondConfig"));
|
|
79
|
-
|
|
80
|
-
var _PcNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/PcNavigationSecondConfig"));
|
|
81
|
-
|
|
82
72
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
83
73
|
|
|
84
74
|
var _a, _b, _c; // 组件
|
|
@@ -87,17 +77,17 @@ var _a, _b, _c; // 组件
|
|
|
87
77
|
/**
|
|
88
78
|
* 渲染组件索引
|
|
89
79
|
*/
|
|
90
|
-
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[
|
|
80
|
+
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a);
|
|
91
81
|
/**
|
|
92
82
|
* 一级配置面板索引
|
|
93
83
|
*/
|
|
94
84
|
|
|
95
85
|
exports.componentMap = componentMap;
|
|
96
|
-
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[
|
|
86
|
+
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b);
|
|
97
87
|
/**
|
|
98
88
|
* 二级配置面板索引
|
|
99
89
|
*/
|
|
100
90
|
|
|
101
91
|
exports.configPanelMap = configPanelMap;
|
|
102
|
-
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[
|
|
92
|
+
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c);
|
|
103
93
|
exports.secondConfigPanelMap = secondConfigPanelMap;
|
package/es/constants/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.urlType = exports.respCodeMap = exports.quickMenuCode = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.
|
|
6
|
+
exports.urlType = exports.respCodeMap = exports.quickMenuCode = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.deviceTypeMap = exports.compInfoMap = exports.STORAGE_KEY = void 0;
|
|
7
7
|
var STORAGE_KEY = {
|
|
8
8
|
LOCALE: 'magicLocale'
|
|
9
9
|
};
|
|
@@ -27,11 +27,6 @@ var deviceTypeMap = {
|
|
|
27
27
|
PHONE: 'mobile'
|
|
28
28
|
};
|
|
29
29
|
exports.deviceTypeMap = deviceTypeMap;
|
|
30
|
-
var deviceTypeWidthMap = {
|
|
31
|
-
pc: 1240,
|
|
32
|
-
mobile: 375
|
|
33
|
-
};
|
|
34
|
-
exports.deviceTypeWidthMap = deviceTypeWidthMap;
|
|
35
30
|
var magicMode = {
|
|
36
31
|
DESIGNER: 'designer',
|
|
37
32
|
RENDERER: 'renderer'
|
|
@@ -99,10 +94,6 @@ var compInfoMap = {
|
|
|
99
94
|
MOBILE_NAVIGATION: {
|
|
100
95
|
name: 'Mobile Navigation',
|
|
101
96
|
icon: 'icon-navigation'
|
|
102
|
-
},
|
|
103
|
-
PC_NAVIGATION: {
|
|
104
|
-
name: 'PC Navigation',
|
|
105
|
-
icon: 'icon-navigation'
|
|
106
97
|
}
|
|
107
98
|
};
|
|
108
99
|
/**
|
|
@@ -158,13 +149,4 @@ var metaInst = {
|
|
|
158
149
|
type: metaType.BUTTON
|
|
159
150
|
}
|
|
160
151
|
};
|
|
161
|
-
|
|
162
|
-
* 全局事件类型
|
|
163
|
-
*/
|
|
164
|
-
|
|
165
|
-
exports.metaInst = metaInst;
|
|
166
|
-
var eventType = {
|
|
167
|
-
// 二级配置面板返回时,更新一级面板事件
|
|
168
|
-
UPDATE_FIRST_CONFIG: 'update-first-config'
|
|
169
|
-
};
|
|
170
|
-
exports.eventType = eventType;
|
|
152
|
+
exports.metaInst = metaInst;
|
package/es/constants/layout.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.
|
|
6
|
+
exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.newsletterLayout = exports.mobileNavigationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = void 0;
|
|
7
7
|
|
|
8
8
|
var _dividerLayout = _interopRequireDefault(require("../assets/images/layout-icon/dividerLayout.svg"));
|
|
9
9
|
|
|
@@ -39,20 +39,16 @@ var _newsletter = _interopRequireDefault(require("../assets/images/layout-icon/n
|
|
|
39
39
|
|
|
40
40
|
var _layoutRecommend = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-1.png"));
|
|
41
41
|
|
|
42
|
-
var _layoutRecommend2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-
|
|
42
|
+
var _layoutRecommend2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-3.png"));
|
|
43
43
|
|
|
44
|
-
var _layoutRecommend3 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-
|
|
44
|
+
var _layoutRecommend3 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-4.png"));
|
|
45
45
|
|
|
46
|
-
var _layoutRecommend4 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-
|
|
47
|
-
|
|
48
|
-
var _layoutRecommend5 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-5.png"));
|
|
46
|
+
var _layoutRecommend4 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-5.png"));
|
|
49
47
|
|
|
50
48
|
var _layoutNavigationNewline = _interopRequireDefault(require("../assets/images/layout-icon/layout-navigation-newline.png"));
|
|
51
49
|
|
|
52
50
|
var _layoutNavigationTile = _interopRequireDefault(require("../assets/images/layout-icon/layout-navigation-tile.png"));
|
|
53
51
|
|
|
54
|
-
var _layoutNavigationNormal = _interopRequireDefault(require("../assets/images/layout-icon/layout-navigation-normal.png"));
|
|
55
|
-
|
|
56
52
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
57
53
|
|
|
58
54
|
// import p3 from '../assets/images/layout-icon/layout-imagetext-p3.png';
|
|
@@ -138,36 +134,20 @@ var recommendLayoutMobile = [{
|
|
|
138
134
|
id: 'layout1',
|
|
139
135
|
name: 'layout1',
|
|
140
136
|
image: _layoutRecommend["default"]
|
|
141
|
-
}, {
|
|
142
|
-
id: 'layout2',
|
|
143
|
-
name: 'layout2',
|
|
144
|
-
image: _layoutRecommend2["default"]
|
|
145
|
-
}, {
|
|
146
|
-
id: 'layout3',
|
|
147
|
-
name: 'layout3',
|
|
148
|
-
image: _layoutRecommend3["default"]
|
|
149
|
-
}, {
|
|
150
|
-
id: 'layout4',
|
|
151
|
-
name: 'layout4',
|
|
152
|
-
image: _layoutRecommend4["default"]
|
|
153
|
-
}, {
|
|
154
|
-
id: 'layout5',
|
|
155
|
-
name: 'layout5',
|
|
156
|
-
image: _layoutRecommend5["default"]
|
|
157
137
|
}];
|
|
158
138
|
exports.recommendLayoutMobile = recommendLayoutMobile;
|
|
159
139
|
var recommendLayoutPc = [{
|
|
160
140
|
id: 'layout1',
|
|
161
141
|
name: 'layout1',
|
|
162
|
-
image:
|
|
142
|
+
image: _layoutRecommend2["default"]
|
|
163
143
|
}, {
|
|
164
144
|
id: 'layout2',
|
|
165
145
|
name: 'layout2',
|
|
166
|
-
image:
|
|
146
|
+
image: _layoutRecommend3["default"]
|
|
167
147
|
}, {
|
|
168
148
|
id: 'layout3',
|
|
169
149
|
name: 'layout3',
|
|
170
|
-
image:
|
|
150
|
+
image: _layoutRecommend4["default"]
|
|
171
151
|
}];
|
|
172
152
|
exports.recommendLayoutPc = recommendLayoutPc;
|
|
173
153
|
var mobileNavigationLayout = [{
|
|
@@ -179,10 +159,4 @@ var mobileNavigationLayout = [{
|
|
|
179
159
|
name: 'tile',
|
|
180
160
|
image: _layoutNavigationTile["default"]
|
|
181
161
|
}];
|
|
182
|
-
exports.mobileNavigationLayout = mobileNavigationLayout;
|
|
183
|
-
var pcNavigationLayout = [{
|
|
184
|
-
id: 'normal',
|
|
185
|
-
name: 'normal',
|
|
186
|
-
image: _layoutNavigationNormal["default"]
|
|
187
|
-
}];
|
|
188
|
-
exports.pcNavigationLayout = pcNavigationLayout;
|
|
162
|
+
exports.mobileNavigationLayout = mobileNavigationLayout;
|