@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
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _antd = require("antd");
|
|
13
|
-
|
|
14
|
-
var _TextConfig = require("../../../../../meta-comp/config-panels/TextConfig");
|
|
15
|
-
|
|
16
|
-
var _common = require("../../../../../common");
|
|
17
|
-
|
|
18
|
-
var _mobx = require("../../../../../mobx");
|
|
19
|
-
|
|
20
|
-
var _BaseConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/BaseConfig"));
|
|
21
|
-
|
|
22
|
-
var _locale = require("../../../../../locale");
|
|
23
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
-
|
|
26
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
-
|
|
28
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
-
|
|
30
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
|
-
|
|
32
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
33
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
34
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
35
|
-
__proto__: []
|
|
36
|
-
} instanceof Array && function (d, b) {
|
|
37
|
-
d.__proto__ = b;
|
|
38
|
-
} || function (d, b) {
|
|
39
|
-
for (var p in b) {
|
|
40
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
return _extendStatics(d, b);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
return function (d, b) {
|
|
48
|
-
_extendStatics(d, b);
|
|
49
|
-
|
|
50
|
-
function __() {
|
|
51
|
-
this.constructor = d;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
55
|
-
};
|
|
56
|
-
}();
|
|
57
|
-
|
|
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
|
-
// type PageOwnState = {
|
|
75
|
-
// /** 是否选择 Button Hover Icon */
|
|
76
|
-
// isHover: boolean;
|
|
77
|
-
// }
|
|
78
|
-
var TextOnlyFontConfig =
|
|
79
|
-
/** @class */
|
|
80
|
-
function (_super) {
|
|
81
|
-
__extends(TextOnlyFontConfig, _super);
|
|
82
|
-
|
|
83
|
-
function TextOnlyFontConfig() {
|
|
84
|
-
var _this = _super !== null && _super.apply(this, arguments) || this; // state: PageOwnState = {
|
|
85
|
-
// isHover: false,
|
|
86
|
-
// }
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
_this.onChangeButtonIcon = function (icon) {
|
|
90
|
-
var data = _this.props.data;
|
|
91
|
-
data.iconUrl = icon;
|
|
92
|
-
|
|
93
|
-
_this.selfRender();
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
return _this;
|
|
97
|
-
} // componentDidMount() {
|
|
98
|
-
// window.document.addEventListener('text-render', this.selfRender);
|
|
99
|
-
// }
|
|
100
|
-
// componentWillUnmount() {
|
|
101
|
-
// window.document.removeEventListener('text-render', this.selfRender);
|
|
102
|
-
// }
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
TextOnlyFontConfig.prototype.render = function () {
|
|
106
|
-
var _this = this;
|
|
107
|
-
|
|
108
|
-
var _a = this.props,
|
|
109
|
-
data = _a.data,
|
|
110
|
-
needIcon = _a.needIcon; // console.log('-----text data', data);
|
|
111
|
-
|
|
112
|
-
var textData = _mobx.store.textSelection ? _mobx.store.textSelection : data.content;
|
|
113
|
-
|
|
114
|
-
if (!data.spacing) {
|
|
115
|
-
data.spacing = {
|
|
116
|
-
pc: {},
|
|
117
|
-
mobile: {}
|
|
118
|
-
};
|
|
119
|
-
} // const textData = data.content;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
|
-
className: "m-text-config"
|
|
124
|
-
}, /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, needIcon && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
125
|
-
title: (0, _locale.i18n)('ICON')
|
|
126
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.IconPicker, {
|
|
127
|
-
onChange: function onChange(icon) {
|
|
128
|
-
return _this.onChangeButtonIcon(icon);
|
|
129
|
-
} // onClick={() => { this.setState({ isHover: data == this.props.data.hover.buttonIcon }); }}
|
|
130
|
-
,
|
|
131
|
-
value: data.iconUrl
|
|
132
|
-
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
133
|
-
title: (0, _locale.i18n)('FONT_STYLE')
|
|
134
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
135
|
-
onChange: function onChange(v) {
|
|
136
|
-
if (v == 'Customize font styles') {
|
|
137
|
-
textData.sizeType = v;
|
|
138
|
-
} else {
|
|
139
|
-
var findOne = _TextConfig.sizeTypeList.find(function (t) {
|
|
140
|
-
return t.key == v;
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
_extends(textData, __assign(__assign({}, findOne), {
|
|
144
|
-
sizeType: findOne === null || findOne === void 0 ? void 0 : findOne.key
|
|
145
|
-
}));
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
_this.selfRender();
|
|
149
|
-
},
|
|
150
|
-
value: textData.sizeType
|
|
151
|
-
}, _TextConfig.sizeTypeList.map(function (sizeType) {
|
|
152
|
-
return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
153
|
-
key: sizeType.key,
|
|
154
|
-
value: sizeType.key
|
|
155
|
-
}, sizeType.key);
|
|
156
|
-
}))), textData.sizeType == 'Customize font styles' && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
157
|
-
title: (0, _locale.i18n)('FONT_FAMILY')
|
|
158
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
159
|
-
onChange: function onChange(v) {
|
|
160
|
-
textData.fontFamily = v;
|
|
161
|
-
|
|
162
|
-
_this.selfRender();
|
|
163
|
-
},
|
|
164
|
-
value: textData.fontFamily
|
|
165
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
166
|
-
value: "Montserrat"
|
|
167
|
-
}, "Montserrat"), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
168
|
-
value: "Open Sans"
|
|
169
|
-
}, "Open Sans"))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
170
|
-
title: (0, _locale.i18n)('FONT_WEIGHT')
|
|
171
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
172
|
-
onChange: function onChange(v) {
|
|
173
|
-
textData.fontWeight = v;
|
|
174
|
-
|
|
175
|
-
_this.selfRender();
|
|
176
|
-
},
|
|
177
|
-
value: textData.fontWeight
|
|
178
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
179
|
-
value: 400
|
|
180
|
-
}, (0, _locale.i18n)('REGULAR')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
181
|
-
value: 600
|
|
182
|
-
}, (0, _locale.i18n)('MEDIUM')))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
183
|
-
title: (0, _locale.i18n)('FONT_SIZE')
|
|
184
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
185
|
-
onChange: function onChange(_a) {
|
|
186
|
-
var count = _a.count;
|
|
187
|
-
|
|
188
|
-
if (window.magicDesign.device == 'pc') {
|
|
189
|
-
textData.pcFontSize = count;
|
|
190
|
-
} else {
|
|
191
|
-
textData.fontSize = count;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
_this.selfRender();
|
|
195
|
-
},
|
|
196
|
-
unit: "px",
|
|
197
|
-
value: {
|
|
198
|
-
count: window.magicDesign.device == 'pc' ? textData.pcFontSize : textData.fontSize
|
|
199
|
-
}
|
|
200
|
-
}))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
201
|
-
title: ""
|
|
202
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.FontStyles, {
|
|
203
|
-
onChange: function onChange(value) {
|
|
204
|
-
_extends(textData, value);
|
|
205
|
-
|
|
206
|
-
_this.selfRender();
|
|
207
|
-
},
|
|
208
|
-
showBgColor: true,
|
|
209
|
-
showTextAlign: true,
|
|
210
|
-
value: textData
|
|
211
|
-
}))));
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
TextOnlyFontConfig.defaultProps = {
|
|
215
|
-
data: null,
|
|
216
|
-
needIcon: false
|
|
217
|
-
};
|
|
218
|
-
return TextOnlyFontConfig;
|
|
219
|
-
}(_BaseConfig["default"]);
|
|
220
|
-
|
|
221
|
-
var _default = TextOnlyFontConfig;
|
|
222
|
-
exports["default"] = _default;
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _PcNavigationConfigGroup = _interopRequireDefault(require("./PcNavigationConfigGroup"));
|
|
11
|
-
|
|
12
|
-
var _PcNavConfigCategory = _interopRequireDefault(require("./PcNavConfigCategory"));
|
|
13
|
-
|
|
14
|
-
var _locale = require("../../../../locale");
|
|
15
|
-
|
|
16
|
-
var _layout = require("../../../../constants/layout");
|
|
17
|
-
|
|
18
|
-
var _common = require("../../../../common");
|
|
19
|
-
|
|
20
|
-
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
21
|
-
|
|
22
|
-
var _ButtonConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ButtonConfig"));
|
|
23
|
-
|
|
24
|
-
var _coreUtil = require("../../../../utils/coreUtil");
|
|
25
|
-
|
|
26
|
-
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
27
|
-
|
|
28
|
-
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
29
|
-
|
|
30
|
-
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
31
|
-
|
|
32
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
|
-
|
|
34
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
35
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
36
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
37
|
-
__proto__: []
|
|
38
|
-
} instanceof Array && function (d, b) {
|
|
39
|
-
d.__proto__ = b;
|
|
40
|
-
} || function (d, b) {
|
|
41
|
-
for (var p in b) {
|
|
42
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
return _extendStatics(d, b);
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
return function (d, b) {
|
|
50
|
-
_extendStatics(d, b);
|
|
51
|
-
|
|
52
|
-
function __() {
|
|
53
|
-
this.constructor = d;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
57
|
-
};
|
|
58
|
-
}();
|
|
59
|
-
|
|
60
|
-
var PcNavigationConfig =
|
|
61
|
-
/** @class */
|
|
62
|
-
function (_super) {
|
|
63
|
-
__extends(PcNavigationConfig, _super);
|
|
64
|
-
|
|
65
|
-
function PcNavigationConfig() {
|
|
66
|
-
var _this = _super !== null && _super.apply(this, arguments) || this; // state = {
|
|
67
|
-
// ready: false,
|
|
68
|
-
// }
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
_this.selfRender = function () {
|
|
72
|
-
(0, _coreUtil.renderPreview)();
|
|
73
|
-
|
|
74
|
-
_this.setState({});
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
_this.getTitlePanel = function () {
|
|
78
|
-
var data = _this.props.data;
|
|
79
|
-
var source = [{
|
|
80
|
-
key: 'imageTextTitle1',
|
|
81
|
-
name: (0, _locale.i18n)('HEADLINE'),
|
|
82
|
-
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
83
|
-
data: data.headline
|
|
84
|
-
}),
|
|
85
|
-
metaOption: data.headline,
|
|
86
|
-
toggleType: 'switch'
|
|
87
|
-
}, {
|
|
88
|
-
key: 'imageTextTitle2',
|
|
89
|
-
name: (0, _locale.i18n)('SUBTITLE'),
|
|
90
|
-
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
91
|
-
data: data.subtitle
|
|
92
|
-
}),
|
|
93
|
-
metaOption: data.subtitle,
|
|
94
|
-
toggleType: 'switch'
|
|
95
|
-
}];
|
|
96
|
-
return /*#__PURE__*/_react["default"].createElement(_common.Collapse // divider="dashed"
|
|
97
|
-
, {
|
|
98
|
-
headerSize: "middle",
|
|
99
|
-
onRefresh: function onRefresh() {
|
|
100
|
-
return (0, _coreUtil.renderPreview)();
|
|
101
|
-
},
|
|
102
|
-
source: source,
|
|
103
|
-
type: "switch"
|
|
104
|
-
});
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
_this.getButtonPanel = function () {
|
|
108
|
-
var data = _this.props.data;
|
|
109
|
-
var source = [{
|
|
110
|
-
key: 'imageTextButton1',
|
|
111
|
-
name: (0, _locale.i18n)('BUTTON'),
|
|
112
|
-
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
113
|
-
data: data.button
|
|
114
|
-
}),
|
|
115
|
-
metaOption: data.button,
|
|
116
|
-
toggleType: 'switch'
|
|
117
|
-
}, {
|
|
118
|
-
key: 'imageTextButton2',
|
|
119
|
-
name: (0, _locale.i18n)('SECONDARY_BUTTON'),
|
|
120
|
-
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
121
|
-
data: data.secondButton
|
|
122
|
-
}),
|
|
123
|
-
metaOption: data.secondButton,
|
|
124
|
-
toggleType: 'switch'
|
|
125
|
-
}];
|
|
126
|
-
return /*#__PURE__*/_react["default"].createElement(_common.Collapse // divider="dashed"
|
|
127
|
-
, {
|
|
128
|
-
headerSize: "middle",
|
|
129
|
-
onRefresh: function onRefresh() {
|
|
130
|
-
return (0, _coreUtil.renderPreview)();
|
|
131
|
-
},
|
|
132
|
-
source: source,
|
|
133
|
-
type: "switch"
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
return _this;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
PcNavigationConfig.prototype.render = function () {
|
|
141
|
-
var data = this.props.data;
|
|
142
|
-
console.log('-----pc', data);
|
|
143
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
144
|
-
className: "container"
|
|
145
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
146
|
-
divider: "bold",
|
|
147
|
-
headerSize: "large",
|
|
148
|
-
source: [{
|
|
149
|
-
key: 'pcNavigation0',
|
|
150
|
-
name: (0, _locale.i18n)('HOME'),
|
|
151
|
-
value: /*#__PURE__*/_react["default"].createElement(_PcNavConfigCategory["default"], {
|
|
152
|
-
panelProps: data.home
|
|
153
|
-
}),
|
|
154
|
-
metaOption: data.home
|
|
155
|
-
}, {
|
|
156
|
-
key: 'pcNavigation1',
|
|
157
|
-
name: (0, _locale.i18n)('GROUP'),
|
|
158
|
-
value: /*#__PURE__*/_react["default"].createElement(_PcNavigationConfigGroup["default"], {
|
|
159
|
-
source: data.groupSource
|
|
160
|
-
}),
|
|
161
|
-
metaOption: data.groupSource
|
|
162
|
-
}, {
|
|
163
|
-
key: 'pcNavigation2',
|
|
164
|
-
name: (0, _locale.i18n)('SPACING'),
|
|
165
|
-
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
166
|
-
configPaddingLR: true,
|
|
167
|
-
data: data.spacing
|
|
168
|
-
})
|
|
169
|
-
}, {
|
|
170
|
-
key: 'pcNavigation3',
|
|
171
|
-
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
172
|
-
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
173
|
-
component: "pcNavigation",
|
|
174
|
-
data: data.customize,
|
|
175
|
-
isHideAlign: true,
|
|
176
|
-
layoutSource: _layout.pcNavigationLayout
|
|
177
|
-
})
|
|
178
|
-
}, {
|
|
179
|
-
key: 'pcNavigation4',
|
|
180
|
-
name: (0, _locale.i18n)('BACKGROUND'),
|
|
181
|
-
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
182
|
-
data: data.background
|
|
183
|
-
})
|
|
184
|
-
}]
|
|
185
|
-
}));
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
PcNavigationConfig.defaultProps = {
|
|
189
|
-
data: {}
|
|
190
|
-
};
|
|
191
|
-
return PcNavigationConfig;
|
|
192
|
-
}(_react["default"].Component);
|
|
193
|
-
|
|
194
|
-
var _default = PcNavigationConfig;
|
|
195
|
-
exports["default"] = _default;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
11
|
-
|
|
12
|
-
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
13
|
-
|
|
14
|
-
var _coreUtil = require("../../../../utils/coreUtil");
|
|
15
|
-
|
|
16
|
-
var _locale = require("../../../../locale");
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
21
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
22
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
23
|
-
__proto__: []
|
|
24
|
-
} instanceof Array && function (d, b) {
|
|
25
|
-
d.__proto__ = b;
|
|
26
|
-
} || function (d, b) {
|
|
27
|
-
for (var p in b) {
|
|
28
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
return _extendStatics(d, b);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
return function (d, b) {
|
|
36
|
-
_extendStatics(d, b);
|
|
37
|
-
|
|
38
|
-
function __() {
|
|
39
|
-
this.constructor = d;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43
|
-
};
|
|
44
|
-
}();
|
|
45
|
-
|
|
46
|
-
var PcNavigationSecondConfig =
|
|
47
|
-
/** @class */
|
|
48
|
-
function (_super) {
|
|
49
|
-
__extends(PcNavigationSecondConfig, _super);
|
|
50
|
-
|
|
51
|
-
function PcNavigationSecondConfig() {
|
|
52
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53
|
-
|
|
54
|
-
_this.state = {};
|
|
55
|
-
|
|
56
|
-
_this.getContentPanel = function (data) {
|
|
57
|
-
var source = [// { key: 'pcNavSecondContent1', name: i18n('IMAGE'), value: <ImageConfig data={data.image} needHover={needHover} />, metaOption: data.image },
|
|
58
|
-
{
|
|
59
|
-
key: 'pcNavSecondContent2',
|
|
60
|
-
name: (0, _locale.i18n)('NAVIGATION_NAME'),
|
|
61
|
-
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
62
|
-
data: data.title
|
|
63
|
-
}),
|
|
64
|
-
metaOption: data.title
|
|
65
|
-
}];
|
|
66
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
67
|
-
headerSize: "middle",
|
|
68
|
-
onRefresh: function onRefresh() {
|
|
69
|
-
return (0, _coreUtil.renderPreview)();
|
|
70
|
-
},
|
|
71
|
-
showActiveColor: true,
|
|
72
|
-
source: source,
|
|
73
|
-
type: "switch"
|
|
74
|
-
}));
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
return _this;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
PcNavigationSecondConfig.prototype.render = function () {
|
|
81
|
-
var panelProps = this.props.panelProps;
|
|
82
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
83
|
-
className: "banner_second_conf_wrap"
|
|
84
|
-
}, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
85
|
-
divider: "bold",
|
|
86
|
-
headerSize: "large",
|
|
87
|
-
source: [{
|
|
88
|
-
key: 'mobileNavSecondConfig1',
|
|
89
|
-
name: (0, _locale.i18n)('CONTENT'),
|
|
90
|
-
value: this.getContentPanel(panelProps)
|
|
91
|
-
}]
|
|
92
|
-
}));
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
PcNavigationSecondConfig.defaultProps = {
|
|
96
|
-
panelProps: {}
|
|
97
|
-
};
|
|
98
|
-
return PcNavigationSecondConfig;
|
|
99
|
-
}(_react["default"].Component);
|
|
100
|
-
|
|
101
|
-
var _default = PcNavigationSecondConfig;
|
|
102
|
-
exports["default"] = _default;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = TerminalSelect;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _common = require("../../../../common");
|
|
11
|
-
|
|
12
|
-
require("./index.less");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
|
-
function TerminalSelect(_a) {
|
|
17
|
-
var value = _a.value,
|
|
18
|
-
onChange = _a.onChange,
|
|
19
|
-
terminalType = _a.terminalType;
|
|
20
|
-
var isActiveMobile = !value || ['MOBILE', 'ALL'].includes(value);
|
|
21
|
-
var isActivePc = !value || ['PC', 'ALL'].includes(value);
|
|
22
|
-
|
|
23
|
-
var onTerminalClick = function onTerminalClick(terminal) {
|
|
24
|
-
// 至少选中一种终端
|
|
25
|
-
if (value === terminal) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
if (!value || value === 'ALL') {
|
|
30
|
-
if (terminal === 'PC') {
|
|
31
|
-
onChange('MOBILE');
|
|
32
|
-
} else {
|
|
33
|
-
onChange('PC');
|
|
34
|
-
}
|
|
35
|
-
} else {
|
|
36
|
-
onChange('ALL');
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
|
-
className: "terminal_wrap"
|
|
42
|
-
}, ['MOBILE', 'ALL', undefined, null].includes(terminalType) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
43
|
-
className: "terminal_item",
|
|
44
|
-
onClick: function onClick() {
|
|
45
|
-
return onTerminalClick('MOBILE');
|
|
46
|
-
}
|
|
47
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
48
|
-
color: isActiveMobile ? '#2F54EB' : '#C4C4C4',
|
|
49
|
-
size: 20,
|
|
50
|
-
type: "icon-mobile"
|
|
51
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
52
|
-
className: "select"
|
|
53
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
54
|
-
color: isActiveMobile ? '#00AC5A' : '#A3AEC3',
|
|
55
|
-
size: 9,
|
|
56
|
-
type: "icon-select"
|
|
57
|
-
}))), ['PC', 'ALL', undefined, null].includes(terminalType) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
58
|
-
className: "terminal_item",
|
|
59
|
-
onClick: function onClick() {
|
|
60
|
-
return onTerminalClick('PC');
|
|
61
|
-
}
|
|
62
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
63
|
-
color: isActivePc ? '#2F54EB' : '#C4C4C4',
|
|
64
|
-
size: 20,
|
|
65
|
-
type: "icon-pc"
|
|
66
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
|
-
className: "select"
|
|
68
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
69
|
-
color: isActivePc ? '#00AC5A' : '#A3AEC3',
|
|
70
|
-
size: 9,
|
|
71
|
-
type: "icon-select"
|
|
72
|
-
}))));
|
|
73
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
.terminal_wrap {
|
|
2
|
-
display: flex;
|
|
3
|
-
.terminal_item {
|
|
4
|
-
position: relative;
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
width: 24px;
|
|
9
|
-
height: 24px;
|
|
10
|
-
background-color: #EDF0F4;
|
|
11
|
-
border-radius: 2px;
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
.select {
|
|
14
|
-
position: absolute;
|
|
15
|
-
right: -4px;
|
|
16
|
-
top: -4px;
|
|
17
|
-
line-height: 0;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
.terminal_item + .terminal_item {
|
|
21
|
-
margin-left: 16px;
|
|
22
|
-
}
|
|
23
|
-
.active {
|
|
24
|
-
background-color: #2F54EB;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
.terminal_wrap+ span {
|
|
28
|
-
margin-left: 14px;
|
|
29
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = updateConfigDecorator;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _constants = require("../constants");
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
15
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
16
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
17
|
-
__proto__: []
|
|
18
|
-
} instanceof Array && function (d, b) {
|
|
19
|
-
d.__proto__ = b;
|
|
20
|
-
} || function (d, b) {
|
|
21
|
-
for (var p in b) {
|
|
22
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
return _extendStatics(d, b);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return function (d, b) {
|
|
30
|
-
_extendStatics(d, b);
|
|
31
|
-
|
|
32
|
-
function __() {
|
|
33
|
-
this.constructor = d;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
37
|
-
};
|
|
38
|
-
}();
|
|
39
|
-
/**
|
|
40
|
-
* 更新组件一级配置面板的装修器
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
function updateConfigDecorator(WrappedComponent) {
|
|
45
|
-
var Wrapper =
|
|
46
|
-
/** @class */
|
|
47
|
-
function (_super) {
|
|
48
|
-
__extends(Wrapper, _super);
|
|
49
|
-
|
|
50
|
-
function Wrapper() {
|
|
51
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
52
|
-
|
|
53
|
-
_this.update = function () {
|
|
54
|
-
_this.setState({});
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
return _this;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
Wrapper.prototype.componentDidMount = function () {
|
|
61
|
-
window.document.addEventListener(_constants.eventType.UPDATE_FIRST_CONFIG, this.update);
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
Wrapper.prototype.componentWillUnmount = function () {
|
|
65
|
-
window.document.removeEventListener(_constants.eventType.UPDATE_FIRST_CONFIG, this.update);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
Wrapper.prototype.render = function () {
|
|
69
|
-
return /*#__PURE__*/_react["default"].createElement(WrappedComponent, this.props);
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
return Wrapper;
|
|
73
|
-
}(_react["default"].Component);
|
|
74
|
-
|
|
75
|
-
return Wrapper;
|
|
76
|
-
}
|