@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,98 +0,0 @@
|
|
|
1
|
-
.pc-navigation {
|
|
2
|
-
display: flex;
|
|
3
|
-
.menu-wrap {
|
|
4
|
-
// margin-top: 26px;
|
|
5
|
-
position: relative;
|
|
6
|
-
width: fit-content;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
|
|
10
|
-
&:hover {
|
|
11
|
-
@keyframes show-active{
|
|
12
|
-
0% {
|
|
13
|
-
opacity: 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
100% {
|
|
17
|
-
opacity: 1;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
.category {
|
|
21
|
-
display: flex;
|
|
22
|
-
&:local {
|
|
23
|
-
animation: show-active .3s linear both;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
.menu-drop {
|
|
27
|
-
// .all-category {
|
|
28
|
-
// color: #ED2121 !important;
|
|
29
|
-
// }
|
|
30
|
-
&>img {
|
|
31
|
-
position: relative;
|
|
32
|
-
left: 5000px;
|
|
33
|
-
filter: drop-shadow(#ED2121 -5000px 0);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
.menu-drop {
|
|
38
|
-
display: flex;
|
|
39
|
-
align-items: center;
|
|
40
|
-
&> img {
|
|
41
|
-
width: 16px;
|
|
42
|
-
margin-right: 10px;
|
|
43
|
-
}
|
|
44
|
-
// &> span {
|
|
45
|
-
// color: #3A2E2E;
|
|
46
|
-
// font-family: NunitoSans-Bold;
|
|
47
|
-
// font-size: 16px;
|
|
48
|
-
// line-height: 22px;
|
|
49
|
-
// }
|
|
50
|
-
}
|
|
51
|
-
.category {
|
|
52
|
-
display: none;
|
|
53
|
-
position: absolute;
|
|
54
|
-
z-index: 9999;
|
|
55
|
-
left: 0;
|
|
56
|
-
bottom: 0;
|
|
57
|
-
transform: translateY(100%);
|
|
58
|
-
// :global {
|
|
59
|
-
.cate-wrap {
|
|
60
|
-
width: 290px;
|
|
61
|
-
border: 1px solid #E6EAF0;
|
|
62
|
-
padding: 8px 0;
|
|
63
|
-
background-color: #fff;
|
|
64
|
-
.cate-item {
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
font-family: 'Open Sans';
|
|
67
|
-
font-style: normal;
|
|
68
|
-
font-weight: 400;
|
|
69
|
-
font-size: 14px;
|
|
70
|
-
line-height: 38px;
|
|
71
|
-
color: #232F46;
|
|
72
|
-
display: flex;
|
|
73
|
-
width: 100%;
|
|
74
|
-
padding: 0 16px;
|
|
75
|
-
justify-content: space-between;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.cate-active {
|
|
79
|
-
background: #FCF1F2;
|
|
80
|
-
&> span {
|
|
81
|
-
color: #CE1126 !important;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
// }
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.category-group {
|
|
90
|
-
margin-left: 180px;
|
|
91
|
-
display: flex;
|
|
92
|
-
.one-category {
|
|
93
|
-
margin-right: 44px;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
@@ -1,151 +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
|
-
require("./index.less");
|
|
11
|
-
|
|
12
|
-
var _antd = require("antd");
|
|
13
|
-
|
|
14
|
-
var _locale = require("../../../../../locale");
|
|
15
|
-
|
|
16
|
-
var _components = require("../../../../../meta-comp/components");
|
|
17
|
-
|
|
18
|
-
var _common = require("../../../../../common");
|
|
19
|
-
|
|
20
|
-
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
25
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
26
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
27
|
-
__proto__: []
|
|
28
|
-
} instanceof Array && function (d, b) {
|
|
29
|
-
d.__proto__ = b;
|
|
30
|
-
} || function (d, b) {
|
|
31
|
-
for (var p in b) {
|
|
32
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
return _extendStatics(d, b);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
return function (d, b) {
|
|
40
|
-
_extendStatics(d, b);
|
|
41
|
-
|
|
42
|
-
function __() {
|
|
43
|
-
this.constructor = d;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47
|
-
};
|
|
48
|
-
}();
|
|
49
|
-
|
|
50
|
-
var SearchPc =
|
|
51
|
-
/** @class */
|
|
52
|
-
function (_super) {
|
|
53
|
-
__extends(SearchPc, _super);
|
|
54
|
-
|
|
55
|
-
function SearchPc() {
|
|
56
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57
|
-
|
|
58
|
-
_this.state = {
|
|
59
|
-
// messageNum: '',
|
|
60
|
-
inputVal: ''
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
_this.onChangeVal = function (val) {
|
|
64
|
-
// console.log('--onChangeVal', val);
|
|
65
|
-
_this.setState({
|
|
66
|
-
inputVal: val
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
_this.searchProduct = function () {
|
|
71
|
-
console.log('--input', _this.state.inputVal);
|
|
72
|
-
(0, _coreUtil.clickUrl)({
|
|
73
|
-
pathname: "/product/list?q=" + _this.state.inputVal
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
_this.keyUp = function (e) {
|
|
78
|
-
if (e.keyCode === 13) {
|
|
79
|
-
_this.searchProduct();
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
return _this;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
SearchPc.prototype.componentDidMount = function () {};
|
|
87
|
-
|
|
88
|
-
SearchPc.prototype.render = function () {
|
|
89
|
-
var _this = this;
|
|
90
|
-
|
|
91
|
-
var data = this.props.data;
|
|
92
|
-
var inputVal = this.state.inputVal;
|
|
93
|
-
console.log('--pc data', data);
|
|
94
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
95
|
-
className: "pc-search-bar"
|
|
96
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
97
|
-
className: "right"
|
|
98
|
-
}, data.box.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
|
-
className: "search-input-wrap",
|
|
100
|
-
style: {
|
|
101
|
-
borderColor: data.box.color.pc
|
|
102
|
-
}
|
|
103
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
104
|
-
className: "search-input",
|
|
105
|
-
onChange: function onChange(e) {
|
|
106
|
-
return _this.onChangeVal(e.target.value);
|
|
107
|
-
},
|
|
108
|
-
onKeyUp: this.keyUp,
|
|
109
|
-
placeholder: (0, _locale.i18n)('PLEASE_INPUT_KEYWORDS'),
|
|
110
|
-
value: inputVal
|
|
111
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
|
-
className: "search-icon",
|
|
113
|
-
onClick: this.searchProduct,
|
|
114
|
-
style: {
|
|
115
|
-
background: data.box.color.pc
|
|
116
|
-
}
|
|
117
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
118
|
-
color: "#fff",
|
|
119
|
-
size: 24,
|
|
120
|
-
type: "icon-search2"
|
|
121
|
-
}))), data.icon.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
|
-
className: "shopping-wrap",
|
|
123
|
-
onClick: function onClick() {
|
|
124
|
-
return (0, _coreUtil.clickUrl)('/cart');
|
|
125
|
-
},
|
|
126
|
-
style: {
|
|
127
|
-
borderColor: data.icon.color.pc,
|
|
128
|
-
color: data.icon.color.pc
|
|
129
|
-
}
|
|
130
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
131
|
-
color: data.icon.color.pc,
|
|
132
|
-
size: 16,
|
|
133
|
-
type: "icon-ShoppingCartSimple"
|
|
134
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
135
|
-
className: "shopping-txt"
|
|
136
|
-
}, (0, _locale.i18n)('SHOPPING_CART')))), data.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
137
|
-
data: data.logo,
|
|
138
|
-
style: {
|
|
139
|
-
height: 40
|
|
140
|
-
}
|
|
141
|
-
}));
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
SearchPc.defaultProps = {
|
|
145
|
-
data: {}
|
|
146
|
-
};
|
|
147
|
-
return SearchPc;
|
|
148
|
-
}(_react["default"].Component);
|
|
149
|
-
|
|
150
|
-
var _default = SearchPc;
|
|
151
|
-
exports["default"] = _default;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
.pc-search-bar {
|
|
2
|
-
// height: 48px;
|
|
3
|
-
// padding: 20px 100px 30px;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: row-reverse;
|
|
6
|
-
align-items: flex-start;
|
|
7
|
-
justify-content: space-between;
|
|
8
|
-
width: 100%;
|
|
9
|
-
|
|
10
|
-
.right {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex: 1;
|
|
13
|
-
margin-left: 90px;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: space-between;
|
|
16
|
-
|
|
17
|
-
.search-input-wrap {
|
|
18
|
-
border: 1px solid #2F54EB;
|
|
19
|
-
border-radius: 6px;
|
|
20
|
-
height: 40px;
|
|
21
|
-
display: flex;
|
|
22
|
-
flex: 1;
|
|
23
|
-
.search-input {
|
|
24
|
-
border: none;
|
|
25
|
-
height: 38px;
|
|
26
|
-
box-shadow: none;
|
|
27
|
-
font-family: 'Open Sans';
|
|
28
|
-
font-style: normal;
|
|
29
|
-
font-weight: 400;
|
|
30
|
-
font-size: 14px;
|
|
31
|
-
}
|
|
32
|
-
.search-icon {
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
height: 100%;
|
|
35
|
-
// width: 40px;
|
|
36
|
-
text-align: center;
|
|
37
|
-
padding: 8px;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.shopping-wrap {
|
|
42
|
-
border-radius: 4px;
|
|
43
|
-
margin-left: 16px;
|
|
44
|
-
padding: 8px 16px;
|
|
45
|
-
font-family: 'Open Sans';
|
|
46
|
-
font-style: normal;
|
|
47
|
-
font-weight: 400;
|
|
48
|
-
font-size: 14px;
|
|
49
|
-
line-height: 22px;
|
|
50
|
-
display: flex;
|
|
51
|
-
align-items: center;
|
|
52
|
-
cursor: pointer;
|
|
53
|
-
border: 1px solid #2F54EB;
|
|
54
|
-
.shopping-txt {
|
|
55
|
-
margin-left: 6px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js
DELETED
|
@@ -1,130 +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 _common = require("../../../../../common");
|
|
11
|
-
|
|
12
|
-
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
13
|
-
|
|
14
|
-
var _TextOnlyFontConfig = _interopRequireDefault(require("../TextOnlyFontConfig"));
|
|
15
|
-
|
|
16
|
-
var _Collapse = _interopRequireDefault(require("../../../../../common/Collapse"));
|
|
17
|
-
|
|
18
|
-
var _locale = require("../../../../../locale");
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
-
|
|
22
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
23
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
24
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
25
|
-
__proto__: []
|
|
26
|
-
} instanceof Array && function (d, b) {
|
|
27
|
-
d.__proto__ = b;
|
|
28
|
-
} || function (d, b) {
|
|
29
|
-
for (var p in b) {
|
|
30
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
return _extendStatics(d, b);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
return function (d, b) {
|
|
38
|
-
_extendStatics(d, b);
|
|
39
|
-
|
|
40
|
-
function __() {
|
|
41
|
-
this.constructor = d;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45
|
-
};
|
|
46
|
-
}();
|
|
47
|
-
|
|
48
|
-
// export default function PcNavConfigCategory(props: any) {
|
|
49
|
-
var PcNavConfigCategory =
|
|
50
|
-
/** @class */
|
|
51
|
-
function (_super) {
|
|
52
|
-
__extends(PcNavConfigCategory, _super);
|
|
53
|
-
|
|
54
|
-
function PcNavConfigCategory() {
|
|
55
|
-
var _this = _super !== null && _super.apply(this, arguments) || this; // const { panelProps } = props;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
_this.reRender = function () {
|
|
59
|
-
(0, _coreUtil.renderPreview)();
|
|
60
|
-
|
|
61
|
-
_this.setState({});
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
return _this;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
PcNavConfigCategory.prototype.render = function () {
|
|
68
|
-
var panelProps = this.props.panelProps;
|
|
69
|
-
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
70
|
-
headerSize: "middle",
|
|
71
|
-
onRefresh: this.reRender,
|
|
72
|
-
source: [{
|
|
73
|
-
key: 'category1',
|
|
74
|
-
name: /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
|
-
onClick: function onClick() {
|
|
76
|
-
return window.open('/#/PageCategoryManagement');
|
|
77
|
-
}
|
|
78
|
-
}, (0, _locale.i18n)('ALL_CATEGORY'), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
79
|
-
color: "#2F54EB",
|
|
80
|
-
size: 16,
|
|
81
|
-
style: {
|
|
82
|
-
marginLeft: 10
|
|
83
|
-
},
|
|
84
|
-
type: "icon-edit"
|
|
85
|
-
})),
|
|
86
|
-
value: /*#__PURE__*/_react["default"].createElement(_TextOnlyFontConfig["default"], {
|
|
87
|
-
data: panelProps.allCategory,
|
|
88
|
-
needIcon: true
|
|
89
|
-
}),
|
|
90
|
-
metaOption: panelProps.allCategory,
|
|
91
|
-
toggleType: 'switch'
|
|
92
|
-
}, {
|
|
93
|
-
key: 'category2',
|
|
94
|
-
name: (0, _locale.i18n)('FIRST_CATEGORY'),
|
|
95
|
-
value: /*#__PURE__*/_react["default"].createElement(_TextOnlyFontConfig["default"], {
|
|
96
|
-
data: panelProps.firstCategory
|
|
97
|
-
}),
|
|
98
|
-
metaOption: panelProps.firstCategory,
|
|
99
|
-
toggleType: 'arrow'
|
|
100
|
-
}, {
|
|
101
|
-
key: 'category3',
|
|
102
|
-
name: (0, _locale.i18n)('SECONDARY_CATEGORY'),
|
|
103
|
-
value: /*#__PURE__*/_react["default"].createElement(_TextOnlyFontConfig["default"], {
|
|
104
|
-
data: panelProps.secondCategory
|
|
105
|
-
}),
|
|
106
|
-
metaOption: panelProps.secondCategory,
|
|
107
|
-
toggleType: 'arrow'
|
|
108
|
-
}, {
|
|
109
|
-
key: 'category4',
|
|
110
|
-
name: (0, _locale.i18n)('LAST_CATEGORY'),
|
|
111
|
-
value: /*#__PURE__*/_react["default"].createElement(_TextOnlyFontConfig["default"], {
|
|
112
|
-
data: panelProps.lastCategory
|
|
113
|
-
}),
|
|
114
|
-
metaOption: panelProps.lastCategory,
|
|
115
|
-
toggleType: 'arrow'
|
|
116
|
-
}]
|
|
117
|
-
}));
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
PcNavConfigCategory.defaultProps = {
|
|
121
|
-
panelProps: {
|
|
122
|
-
headline: {},
|
|
123
|
-
subTitle: {}
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
return PcNavConfigCategory;
|
|
127
|
-
}(_react["default"].Component);
|
|
128
|
-
|
|
129
|
-
var _default = PcNavConfigCategory;
|
|
130
|
-
exports["default"] = _default;
|
package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js
DELETED
|
@@ -1,128 +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 _mobxReact = require("mobx-react");
|
|
11
|
-
|
|
12
|
-
var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
|
|
13
|
-
|
|
14
|
-
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
15
|
-
|
|
16
|
-
var _Button = _interopRequireDefault(require("../../../../../common/Button"));
|
|
17
|
-
|
|
18
|
-
var _defaultJSON = require("../../../components/PcNavigation/defaultJSON");
|
|
19
|
-
|
|
20
|
-
var _locale = require("../../../../../locale");
|
|
21
|
-
|
|
22
|
-
var _decorator = require("../../../../../decorator");
|
|
23
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
-
|
|
26
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
27
|
-
|
|
28
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
30
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
31
|
-
__proto__: []
|
|
32
|
-
} instanceof Array && function (d, b) {
|
|
33
|
-
d.__proto__ = b;
|
|
34
|
-
} || function (d, b) {
|
|
35
|
-
for (var p in b) {
|
|
36
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
return _extendStatics(d, b);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
return function (d, b) {
|
|
44
|
-
_extendStatics(d, b);
|
|
45
|
-
|
|
46
|
-
function __() {
|
|
47
|
-
this.constructor = d;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51
|
-
};
|
|
52
|
-
}();
|
|
53
|
-
|
|
54
|
-
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
55
|
-
var c = arguments.length,
|
|
56
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
57
|
-
d;
|
|
58
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
59
|
-
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
60
|
-
}
|
|
61
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
var notice = 'Please add some Navigation';
|
|
65
|
-
|
|
66
|
-
var PcNavigationConfigGroup =
|
|
67
|
-
/** @class */
|
|
68
|
-
function (_super) {
|
|
69
|
-
__extends(PcNavigationConfigGroup, _super);
|
|
70
|
-
|
|
71
|
-
function PcNavigationConfigGroup() {
|
|
72
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
73
|
-
|
|
74
|
-
_this.state = {};
|
|
75
|
-
|
|
76
|
-
_this.onClickItem = function (node) {
|
|
77
|
-
_this.props.store.setState({
|
|
78
|
-
clickedGroup: node.id
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
_this.onAddClick = function () {
|
|
83
|
-
var json = (0, _defaultJSON.PcNavGroupSourceJSON)();
|
|
84
|
-
|
|
85
|
-
_this.props.source.push(json);
|
|
86
|
-
|
|
87
|
-
_this.setState({});
|
|
88
|
-
|
|
89
|
-
(0, _coreUtil.renderPreview)();
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
_this.reRender = function () {
|
|
93
|
-
_this.setState({});
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
return _this;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
PcNavigationConfigGroup.prototype.render = function () {
|
|
100
|
-
var source = this.props.source;
|
|
101
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
|
-
className: "banner_group"
|
|
103
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
-
className: "node_list"
|
|
105
|
-
}, source.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
106
|
-
className: "notice"
|
|
107
|
-
}, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
|
|
108
|
-
onClickItem: this.onClickItem,
|
|
109
|
-
reRender: this.reRender,
|
|
110
|
-
source: source
|
|
111
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
|
-
className: "btn_wrap"
|
|
113
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
114
|
-
icon: "icon-add",
|
|
115
|
-
onClick: this.onAddClick,
|
|
116
|
-
type: "primary"
|
|
117
|
-
}, (0, _locale.i18n)('ADD_NAVIGATION'))));
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
PcNavigationConfigGroup.defaultProps = {
|
|
121
|
-
source: []
|
|
122
|
-
};
|
|
123
|
-
PcNavigationConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], PcNavigationConfigGroup);
|
|
124
|
-
return PcNavigationConfigGroup;
|
|
125
|
-
}(_react["default"].Component);
|
|
126
|
-
|
|
127
|
-
var _default = PcNavigationConfigGroup;
|
|
128
|
-
exports["default"] = _default;
|