@fonixtree/magic-design 0.0.102 → 0.0.104
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 +28 -12
- package/es/assets/fonts/magic-box-iconfont.css.bak +28 -12
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/es/assets/less/button.less +23 -0
- package/es/assets/less/common.less +2 -2
- package/es/assets/less/datepicker.less +11 -0
- package/es/assets/less/index.less +2 -1
- package/es/assets/less/modal.less +7 -2
- package/es/common/Button/index.js +2 -1
- package/es/common/Button/index.less +5 -0
- package/es/common/ButtonIconLayout/index.less +4 -2
- package/es/common/Collapse/index.js +14 -4
- package/es/common/FontStyles/index.less +1 -1
- package/es/common/GroupList/index.js +4 -3
- package/es/common/ImageModal/index.js +31 -26
- package/es/common/ImageModal/index.less +6 -1
- package/es/common/ImgArea/components/Crop.js +267 -0
- package/es/common/ImgArea/components/Icons.js +44 -0
- package/es/common/ImgArea/components/MultiCrops.js +210 -0
- package/es/common/ImgArea/index.js +11 -0
- package/es/common/LinkModal/BundleCampaign/index.js +17 -17
- package/es/common/LinkModal/CustomTable/index.js +3 -2
- package/es/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/es/common/LinkModal/FilteredProductModal/index.less +2 -3
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.less +1 -1
- package/es/common/MagicLink/index.js +89 -0
- package/es/common/MagicLink/index.less +0 -0
- package/es/common/ProductModal/index.js +1 -1
- package/es/common/ProductModal/index.less +12 -7
- package/es/common/SystemNotification/Confirm/index.js +263 -0
- package/es/common/SystemNotification/Confirm/index.less +33 -0
- package/es/common/SystemNotification/index.js +115 -0
- package/es/common/UrlPicker/index.js +6 -2
- package/es/common/UrlPicker/index.less +12 -1
- package/es/common/index.js +16 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/es/composite-comp/bol/components/Banner/mobile/index.js +48 -11
- package/es/composite-comp/bol/components/Banner/pc/index.js +50 -20
- package/es/composite-comp/bol/components/Button/defaultJSON.js +40 -70
- package/es/composite-comp/bol/components/Button/index.js +8 -14
- package/es/composite-comp/bol/components/Button/index.less +9 -9
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +16 -20
- package/es/composite-comp/bol/components/Carousel/imgs/pcDefImg1.png +0 -0
- package/es/composite-comp/bol/components/Carousel/index.js +1 -6
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +58 -38
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +22 -9
- package/es/composite-comp/bol/components/Carousel/pc/index.js +67 -34
- package/es/composite-comp/bol/components/Carousel/pc/index.less +29 -16
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +19 -10
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg1.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg2.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg3.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg4.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg5.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg1.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg2.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg3.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg4.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg5.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg6.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/index.js +5 -1
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +77 -15
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -66
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +166 -0
- package/es/composite-comp/bol/components/ImageGallery/pc/index.less +23 -0
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +57 -179
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +3 -5
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
- package/es/composite-comp/bol/components/ImageText/pc/index.js +46 -18
- package/es/composite-comp/bol/components/ImageText/pc/index.less +2 -0
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +3 -3
- package/es/composite-comp/bol/components/Newsletter/index.js +16 -8
- package/es/composite-comp/bol/components/Newsletter/index.less +1 -1
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
- package/es/composite-comp/bol/components/Tag/index.js +8 -14
- package/es/composite-comp/bol/components/Tag/index.less +1 -0
- package/es/composite-comp/bol/components/Text/defaultJSON.js +5 -7
- package/es/composite-comp/bol/components/Text/index.js +4 -8
- package/es/composite-comp/bol/components/Text/index.less +3 -3
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +143 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
- package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -1
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +4 -2
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +20 -4
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
- package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +143 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
- package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +6 -17
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
- package/es/composite-comp/bol/{config-panels/ButtonCompConfig/ButtonConfigContent → second-config-panels/TagSecondConfig}/index.js +40 -38
- package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
- package/es/composite-comp/common/components/ImageLabel/index.less +1 -1
- package/es/composite-comp/common/components/ProductItem/index.js +26 -6
- package/es/composite-comp/common/components/ProductItem/index.less +11 -10
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +52 -25
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +40 -29
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +67 -8
- package/es/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/es/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +24 -38
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -1
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg.png +0 -0
- 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 +567 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +122 -0
- package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +136 -0
- package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
- package/es/composite-comp/dito/components/PcNavigation/index.js +85 -0
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +482 -0
- package/es/composite-comp/dito/components/PcNavigation/pc/index.less +107 -0
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +33 -15
- package/es/composite-comp/dito/components/Recommend/index.js +5 -6
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +93 -72
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +11 -2
- package/es/composite-comp/dito/components/Recommend/pc/index.js +184 -53
- package/es/composite-comp/dito/components/Recommend/pc/index.less +56 -12
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +49 -20
- package/es/composite-comp/dito/components/SearchBar/imgs/xt-logo.png +0 -0
- package/es/composite-comp/dito/components/SearchBar/index.js +7 -2
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +31 -26
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +15 -3
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +149 -0
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +60 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +11 -2
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +18 -3
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +16 -51
- package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
- package/es/constants/component-types.js +15 -3
- package/es/constants/index.js +21 -2
- package/es/constants/layout.js +35 -14
- package/es/core/Designer/AppointmentModal/index.js +87 -0
- package/es/core/Designer/AppointmentModal/index.less +23 -0
- package/es/core/Designer/CompListPanel/CompCard/index.js +3 -1
- package/es/core/Designer/CompListPanel/index.js +11 -36
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
- package/es/core/Designer/ConfigPanel/index.js +73 -23
- package/es/core/Designer/ConfigPanel/index.less +4 -0
- package/es/core/Designer/History/index.js +34 -28
- package/es/core/Designer/PageCompList/index.js +42 -4
- package/es/core/Designer/PageCompList/index.less +10 -10
- package/es/core/Designer/QuickMenuBar/index.js +38 -4
- package/es/core/Designer/QuickMenuBar/index.less +34 -0
- package/es/core/Designer/ViewArea/index.js +48 -8
- package/es/core/Designer/ViewArea/index.less +40 -4
- package/es/core/Designer/index.js +93 -41
- package/es/core/Renderer/index.js +23 -5
- package/es/decorator/compositeDecorator.js +147 -17
- package/es/decorator/index.js +8 -0
- package/es/decorator/metaDecorator.js +41 -8
- package/es/decorator/updateConfigDecorator.js +76 -0
- package/es/locale/en/en.json +21 -3
- package/es/locale/es/es.json +19 -1
- package/es/locale/id/id.json +21 -3
- package/es/meta-comp/components/Button/editable.js +114 -0
- package/es/meta-comp/components/Button/editable.less +6 -0
- package/es/meta-comp/components/Button/index.js +14 -33
- package/es/meta-comp/components/Button/index.less +3 -2
- package/es/meta-comp/components/Image/image/h5DefImg.png +0 -0
- package/es/meta-comp/components/Image/image/h5Img.png +0 -0
- package/es/meta-comp/components/Image/image/pcDefImg.png +0 -0
- package/es/meta-comp/components/Image/image/pcImg.png +0 -0
- package/es/meta-comp/components/Image/index.js +47 -8
- package/es/meta-comp/components/Image/index.less +7 -3
- package/es/meta-comp/components/Text/index.js +38 -11
- package/es/meta-comp/config-panels/BaseConfig.js +8 -10
- package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -3
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +17 -4
- package/es/meta-comp/config-panels/TextConfig/index.js +16 -7
- package/es/mobx/Frame.js +64 -0
- package/es/mobx/Store.js +9 -10
- package/es/mobx/index.js +9 -3
- package/es/utils/businessUtil.js +3 -3
- package/es/utils/coreUtil.js +15 -2
- package/lib/assets/fonts/magic-box-iconfont.css +28 -12
- package/lib/assets/fonts/magic-box-iconfont.css.bak +28 -12
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/lib/assets/less/button.less +23 -0
- package/lib/assets/less/common.less +2 -2
- package/lib/assets/less/datepicker.less +11 -0
- package/lib/assets/less/index.less +2 -1
- package/lib/assets/less/modal.less +7 -2
- package/lib/common/Button/index.js +2 -1
- package/lib/common/Button/index.less +5 -0
- package/lib/common/ButtonIconLayout/index.less +4 -2
- package/lib/common/Collapse/index.js +14 -4
- package/lib/common/FontStyles/index.less +1 -1
- package/lib/common/GroupList/index.js +4 -3
- package/lib/common/ImageModal/index.js +31 -26
- package/lib/common/ImageModal/index.less +6 -1
- package/lib/common/ImgArea/components/Crop.js +267 -0
- package/lib/common/ImgArea/components/Icons.js +44 -0
- package/lib/common/ImgArea/components/MultiCrops.js +210 -0
- package/lib/common/ImgArea/index.js +11 -0
- package/lib/common/LinkModal/BundleCampaign/index.js +17 -17
- package/lib/common/LinkModal/CustomTable/index.js +3 -2
- package/lib/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/lib/common/LinkModal/FilteredProductModal/index.less +2 -3
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.less +1 -1
- package/lib/common/MagicLink/index.js +89 -0
- package/lib/common/MagicLink/index.less +0 -0
- package/lib/common/ProductModal/index.js +1 -1
- package/lib/common/ProductModal/index.less +12 -7
- package/lib/common/SystemNotification/Confirm/index.js +263 -0
- package/lib/common/SystemNotification/Confirm/index.less +33 -0
- package/lib/common/SystemNotification/index.js +115 -0
- package/lib/common/UrlPicker/index.js +6 -2
- package/lib/common/UrlPicker/index.less +12 -1
- package/lib/common/index.js +16 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +48 -11
- package/lib/composite-comp/bol/components/Banner/pc/index.js +50 -20
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +40 -70
- package/lib/composite-comp/bol/components/Button/index.js +8 -14
- package/lib/composite-comp/bol/components/Button/index.less +9 -9
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +16 -20
- package/lib/composite-comp/bol/components/Carousel/imgs/pcDefImg1.png +0 -0
- package/lib/composite-comp/bol/components/Carousel/index.js +1 -6
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +58 -38
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +22 -9
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +67 -34
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +29 -16
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +19 -10
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg1.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg2.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg3.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg4.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg5.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg1.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg2.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg3.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg4.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg5.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg6.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/index.js +5 -1
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +77 -15
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -66
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +166 -0
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.less +23 -0
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +57 -179
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +3 -5
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +46 -18
- package/lib/composite-comp/bol/components/ImageText/pc/index.less +2 -0
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +3 -3
- package/lib/composite-comp/bol/components/Newsletter/index.js +16 -8
- package/lib/composite-comp/bol/components/Newsletter/index.less +1 -1
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
- package/lib/composite-comp/bol/components/Tag/index.js +8 -14
- package/lib/composite-comp/bol/components/Tag/index.less +1 -0
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +5 -7
- package/lib/composite-comp/bol/components/Text/index.js +4 -8
- package/lib/composite-comp/bol/components/Text/index.less +3 -3
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +143 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
- package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +4 -2
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +20 -4
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +143 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
- package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +6 -17
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
- package/lib/composite-comp/bol/{config-panels/ButtonCompConfig/ButtonConfigContent → second-config-panels/TagSecondConfig}/index.js +40 -38
- package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
- package/lib/composite-comp/common/components/ImageLabel/index.less +1 -1
- package/lib/composite-comp/common/components/ProductItem/index.js +26 -6
- package/lib/composite-comp/common/components/ProductItem/index.less +11 -10
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +52 -25
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +40 -29
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +67 -8
- package/lib/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/lib/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +24 -38
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -1
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg.png +0 -0
- 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 +567 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +122 -0
- package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +136 -0
- package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
- package/lib/composite-comp/dito/components/PcNavigation/index.js +85 -0
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +482 -0
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +107 -0
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +33 -15
- package/lib/composite-comp/dito/components/Recommend/index.js +5 -6
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +93 -72
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +11 -2
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +184 -53
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +56 -12
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +49 -20
- package/lib/composite-comp/dito/components/SearchBar/imgs/xt-logo.png +0 -0
- package/lib/composite-comp/dito/components/SearchBar/index.js +7 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +31 -26
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +15 -3
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +149 -0
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +60 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +11 -2
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +18 -3
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +16 -51
- package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
- package/lib/constants/component-types.js +15 -3
- package/lib/constants/index.js +21 -2
- package/lib/constants/layout.js +35 -14
- package/lib/core/Designer/AppointmentModal/index.js +87 -0
- package/lib/core/Designer/AppointmentModal/index.less +23 -0
- package/lib/core/Designer/CompListPanel/CompCard/index.js +3 -1
- package/lib/core/Designer/CompListPanel/index.js +11 -36
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
- package/lib/core/Designer/ConfigPanel/index.js +73 -23
- package/lib/core/Designer/ConfigPanel/index.less +4 -0
- package/lib/core/Designer/History/index.js +34 -28
- package/lib/core/Designer/PageCompList/index.js +42 -4
- package/lib/core/Designer/PageCompList/index.less +10 -10
- package/lib/core/Designer/QuickMenuBar/index.js +38 -4
- package/lib/core/Designer/QuickMenuBar/index.less +34 -0
- package/lib/core/Designer/ViewArea/index.js +48 -8
- package/lib/core/Designer/ViewArea/index.less +40 -4
- package/lib/core/Designer/index.js +93 -41
- package/lib/core/Renderer/index.js +23 -5
- package/lib/decorator/compositeDecorator.js +147 -17
- package/lib/decorator/index.js +8 -0
- package/lib/decorator/metaDecorator.js +41 -8
- package/lib/decorator/updateConfigDecorator.js +76 -0
- package/lib/locale/en/en.json +21 -3
- package/lib/locale/es/es.json +19 -1
- package/lib/locale/id/id.json +21 -3
- package/lib/meta-comp/components/Button/editable.js +114 -0
- package/lib/meta-comp/components/Button/editable.less +6 -0
- package/lib/meta-comp/components/Button/index.js +14 -33
- package/lib/meta-comp/components/Button/index.less +3 -2
- package/lib/meta-comp/components/Image/image/h5DefImg.png +0 -0
- package/lib/meta-comp/components/Image/image/h5Img.png +0 -0
- package/lib/meta-comp/components/Image/image/pcDefImg.png +0 -0
- package/lib/meta-comp/components/Image/image/pcImg.png +0 -0
- package/lib/meta-comp/components/Image/index.js +47 -8
- package/lib/meta-comp/components/Image/index.less +7 -3
- package/lib/meta-comp/components/Text/index.js +38 -11
- package/lib/meta-comp/config-panels/BaseConfig.js +8 -10
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -3
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +17 -4
- package/lib/meta-comp/config-panels/TextConfig/index.js +16 -7
- package/lib/mobx/Frame.js +64 -0
- package/lib/mobx/Store.js +9 -10
- package/lib/mobx/index.js +9 -3
- package/lib/utils/businessUtil.js +3 -3
- package/lib/utils/coreUtil.js +15 -2
- package/package.json +5 -3
|
@@ -319,24 +319,24 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
319
319
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
320
320
|
className: "labelStyle"
|
|
321
321
|
}, "Campaign Name"), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
322
|
-
|
|
322
|
+
className: "inputStyle",
|
|
323
323
|
onChange: function onChange(e) {
|
|
324
324
|
setCampaignName(e.target.value);
|
|
325
325
|
},
|
|
326
|
-
|
|
326
|
+
value: campaignName
|
|
327
327
|
})), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
328
328
|
span: 12
|
|
329
329
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
330
330
|
className: "labelStyle"
|
|
331
331
|
}, "Store"), /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
332
|
-
showSearch: true,
|
|
333
|
-
optionFilterProp: "children",
|
|
334
332
|
className: "inputStyle",
|
|
335
|
-
placeholder: "Please select",
|
|
336
|
-
value: storeId,
|
|
337
333
|
onChange: function onChange(value) {
|
|
338
334
|
return setStoreId(value);
|
|
339
|
-
}
|
|
335
|
+
},
|
|
336
|
+
optionFilterProp: "children",
|
|
337
|
+
placeholder: "Please select",
|
|
338
|
+
showSearch: true,
|
|
339
|
+
value: storeId
|
|
340
340
|
}, storeList && storeList.length > 0 && storeList.map(function (v) {
|
|
341
341
|
return /*#__PURE__*/_react["default"].createElement(Option, {
|
|
342
342
|
key: v.storeId,
|
|
@@ -352,10 +352,10 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
352
352
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
353
353
|
className: "labelStyle"
|
|
354
354
|
}, "Campaign State"), /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
355
|
+
className: "inputStyle",
|
|
355
356
|
defaultValue: "A,B",
|
|
356
|
-
value: cmpState,
|
|
357
357
|
onChange: changeCamState,
|
|
358
|
-
|
|
358
|
+
value: cmpState
|
|
359
359
|
}, stateMap && stateMap.length > 0 && stateMap.map(function (v) {
|
|
360
360
|
return /*#__PURE__*/_react["default"].createElement(Option, {
|
|
361
361
|
key: v.key,
|
|
@@ -365,24 +365,24 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
365
365
|
span: 12
|
|
366
366
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
367
367
|
onClick: queryFunc,
|
|
368
|
-
type: "primary",
|
|
369
368
|
style: {
|
|
370
369
|
marginRight: 10
|
|
371
|
-
}
|
|
370
|
+
},
|
|
371
|
+
type: "primary"
|
|
372
372
|
}, "Query"), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
373
373
|
onClick: function onClick() {
|
|
374
374
|
reset();
|
|
375
375
|
}
|
|
376
376
|
}, "Cancel"))), /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
377
|
-
scroll: {
|
|
378
|
-
y: 340
|
|
379
|
-
},
|
|
380
|
-
loading: loading,
|
|
381
377
|
bordered: false,
|
|
378
|
+
columns: columns,
|
|
379
|
+
dataSource: bundleList,
|
|
380
|
+
loading: loading,
|
|
382
381
|
rowKey: "campaignId",
|
|
383
382
|
rowSelection: rowSelection,
|
|
384
|
-
|
|
385
|
-
|
|
383
|
+
scroll: {
|
|
384
|
+
y: 340
|
|
385
|
+
}
|
|
386
386
|
}));
|
|
387
387
|
};
|
|
388
388
|
|
|
@@ -200,6 +200,7 @@ function CustomTable(props) {
|
|
|
200
200
|
queryCus({
|
|
201
201
|
pageType: 'Customized',
|
|
202
202
|
verType: 'Formal',
|
|
203
|
+
configVersion: 'V2',
|
|
203
204
|
state: 'Using'
|
|
204
205
|
});
|
|
205
206
|
}, []);
|
|
@@ -208,8 +209,8 @@ function CustomTable(props) {
|
|
|
208
209
|
dataIndex: 'pageName'
|
|
209
210
|
}];
|
|
210
211
|
var rowSelection = {
|
|
211
|
-
onChange: function onChange(selectedRowKeys) {
|
|
212
|
-
_onChange("customized-" +
|
|
212
|
+
onChange: function onChange(selectedRowKeys, selectedRows) {
|
|
213
|
+
_onChange("customized-" + (selectedRows[0].pageCode || selectedRows[0].bdPageId || ''));
|
|
213
214
|
},
|
|
214
215
|
type: 'radio'
|
|
215
216
|
};
|
|
@@ -517,13 +517,13 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
517
517
|
queryStore();
|
|
518
518
|
}, []);
|
|
519
519
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
520
|
-
className: "
|
|
520
|
+
className: "mFilteredProductModal"
|
|
521
521
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
522
522
|
className: "proModalWrap"
|
|
523
523
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
524
524
|
className: "info"
|
|
525
525
|
}, (0, _locale.i18n)('THE_PRODUCT_QUANTITY_WILL_BE_AUTOMATICALLY_UPDATED_WITH_THE_ITEMS_THAT_MEET_THE_CATEGORY_CONDITIONS')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
526
|
-
className: "
|
|
526
|
+
className: "mFilteredProductModalContent"
|
|
527
527
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
528
528
|
className: "leftCot"
|
|
529
529
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
1
|
+
.mFilteredProductModal {
|
|
3
2
|
.proModalWrap {
|
|
4
3
|
.info {
|
|
5
4
|
background: #ecf1fd;
|
|
@@ -17,7 +16,7 @@
|
|
|
17
16
|
background-size: contain;
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
.
|
|
19
|
+
.mFilteredProductModalContent {
|
|
21
20
|
display: flex;
|
|
22
21
|
|
|
23
22
|
.rightCot {
|
|
@@ -232,7 +232,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
232
232
|
|
|
233
233
|
var _j = (0, _react.useState)({
|
|
234
234
|
pageSize: 20,
|
|
235
|
-
|
|
235
|
+
pageIndex: 1
|
|
236
236
|
}),
|
|
237
237
|
paginationParams = _j[0],
|
|
238
238
|
setPaginationParams = _j[1];
|
|
@@ -399,7 +399,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
399
399
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
400
400
|
onClick: function onClick() {
|
|
401
401
|
setLoading(true);
|
|
402
|
-
paginationParams.
|
|
402
|
+
paginationParams.pageIndex = 1;
|
|
403
403
|
|
|
404
404
|
var total = paginationParams.total,
|
|
405
405
|
params = __rest(paginationParams, ["total"]);
|
|
@@ -468,7 +468,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
468
468
|
pagination: __assign(__assign({}, paginationParams), {
|
|
469
469
|
onChange: function onChange(page) {
|
|
470
470
|
setLoading(true);
|
|
471
|
-
paginationParams.
|
|
471
|
+
paginationParams.pageIndex = page;
|
|
472
472
|
|
|
473
473
|
var total = paginationParams.total,
|
|
474
474
|
params = __rest(paginationParams, ["total"]);
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.onAClick = exports.getLinkUrl = exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _businessUtil = require("src/components/utils/businessUtil");
|
|
11
|
+
|
|
12
|
+
var _coreUtil = require("src/components/utils/coreUtil");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
17
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
18
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
19
|
+
__proto__: []
|
|
20
|
+
} instanceof Array && function (d, b) {
|
|
21
|
+
d.__proto__ = b;
|
|
22
|
+
} || function (d, b) {
|
|
23
|
+
for (var p in b) {
|
|
24
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return _extendStatics(d, b);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
return function (d, b) {
|
|
32
|
+
_extendStatics(d, b);
|
|
33
|
+
|
|
34
|
+
function __() {
|
|
35
|
+
this.constructor = d;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
39
|
+
};
|
|
40
|
+
}();
|
|
41
|
+
|
|
42
|
+
var onAClick = function onAClick(e, url) {
|
|
43
|
+
e.preventDefault();
|
|
44
|
+
|
|
45
|
+
if (window.magicDesign.mode === 'renderer') {
|
|
46
|
+
(0, _coreUtil.clickUrl)(url);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
exports.onAClick = onAClick;
|
|
51
|
+
|
|
52
|
+
var getLinkUrl = function getLinkUrl(url) {
|
|
53
|
+
var h5Link = (0, _businessUtil.parseUrl)(url).h5Link;
|
|
54
|
+
return h5Link;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
exports.getLinkUrl = getLinkUrl;
|
|
58
|
+
|
|
59
|
+
var MagicLink =
|
|
60
|
+
/** @class */
|
|
61
|
+
function (_super) {
|
|
62
|
+
__extends(MagicLink, _super);
|
|
63
|
+
|
|
64
|
+
function MagicLink() {
|
|
65
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
66
|
+
|
|
67
|
+
_this.state = {};
|
|
68
|
+
return _this;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
MagicLink.prototype.render = function () {
|
|
72
|
+
var _a = this.props,
|
|
73
|
+
url = _a.url,
|
|
74
|
+
children = _a.children;
|
|
75
|
+
var href = getLinkUrl(url);
|
|
76
|
+
return /*#__PURE__*/_react["default"].createElement("a", {
|
|
77
|
+
href: href,
|
|
78
|
+
onClick: function onClick(e) {
|
|
79
|
+
return onAClick(e, url);
|
|
80
|
+
}
|
|
81
|
+
}, children);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
MagicLink.defaultProps = {};
|
|
85
|
+
return MagicLink;
|
|
86
|
+
}(_react["default"].Component);
|
|
87
|
+
|
|
88
|
+
var _default = MagicLink;
|
|
89
|
+
exports["default"] = _default;
|
|
File without changes
|
|
@@ -11,13 +11,15 @@
|
|
|
11
11
|
.content {
|
|
12
12
|
display: flex;
|
|
13
13
|
margin-bottom: 8px;
|
|
14
|
+
|
|
14
15
|
.rightCot {
|
|
15
16
|
width: calc(100% - 260px);
|
|
16
17
|
margin-left: 16px;
|
|
17
18
|
display: flex;
|
|
18
19
|
flex-direction: column;
|
|
19
20
|
justify-content: space-between;
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
.prodImg {
|
|
21
23
|
display: inline-block;
|
|
22
24
|
width: 36px;
|
|
23
25
|
height: 36px;
|
|
@@ -25,16 +27,18 @@
|
|
|
25
27
|
background-position: 50% 50%;
|
|
26
28
|
background-repeat: no-repeat;
|
|
27
29
|
}
|
|
30
|
+
|
|
28
31
|
.selectedCot {
|
|
32
|
+
padding-right: 18px;
|
|
29
33
|
margin-left: 4px;
|
|
30
|
-
height:
|
|
34
|
+
height: 78px;
|
|
31
35
|
background: #f8f8f8;
|
|
32
36
|
border: 1px solid #e0e0e0;
|
|
33
37
|
border-radius: 2px;
|
|
34
38
|
display: flex;
|
|
35
39
|
flex-direction: row;
|
|
36
|
-
flex-wrap: wrap;
|
|
37
|
-
overflow-
|
|
40
|
+
// flex-wrap: wrap;
|
|
41
|
+
overflow-x: auto;
|
|
38
42
|
|
|
39
43
|
.selectedItem {
|
|
40
44
|
box-sizing: border-box;
|
|
@@ -71,9 +75,9 @@
|
|
|
71
75
|
cursor: pointer;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
|
-
&:nth-child(n + 11) {
|
|
75
|
-
|
|
76
|
-
}
|
|
78
|
+
// &:nth-child(n + 11) {
|
|
79
|
+
// margin-top: 5px !important;
|
|
80
|
+
// }
|
|
77
81
|
|
|
78
82
|
.selectedItemImg {
|
|
79
83
|
height: 52px;
|
|
@@ -94,6 +98,7 @@
|
|
|
94
98
|
padding-right: 14px;
|
|
95
99
|
box-sizing: border-box;
|
|
96
100
|
border-right: 1px solid #e0e0e0;
|
|
101
|
+
|
|
97
102
|
.divider {
|
|
98
103
|
width: 10%;
|
|
99
104
|
display: inline-block;
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = Confirm;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _antd = require("antd");
|
|
11
|
+
|
|
12
|
+
var _Button = _interopRequireDefault(require("../../Button"));
|
|
13
|
+
|
|
14
|
+
var _Iconfont = _interopRequireDefault(require("../../Iconfont"));
|
|
15
|
+
|
|
16
|
+
require("./index.less");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
23
|
+
function adopt(value) {
|
|
24
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
25
|
+
resolve(value);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
30
|
+
function fulfilled(value) {
|
|
31
|
+
try {
|
|
32
|
+
step(generator.next(value));
|
|
33
|
+
} catch (e) {
|
|
34
|
+
reject(e);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function rejected(value) {
|
|
39
|
+
try {
|
|
40
|
+
step(generator["throw"](value));
|
|
41
|
+
} catch (e) {
|
|
42
|
+
reject(e);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function step(result) {
|
|
47
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
55
|
+
var _ = {
|
|
56
|
+
label: 0,
|
|
57
|
+
sent: function sent() {
|
|
58
|
+
if (t[0] & 1) throw t[1];
|
|
59
|
+
return t[1];
|
|
60
|
+
},
|
|
61
|
+
trys: [],
|
|
62
|
+
ops: []
|
|
63
|
+
},
|
|
64
|
+
f,
|
|
65
|
+
y,
|
|
66
|
+
t,
|
|
67
|
+
g;
|
|
68
|
+
return g = {
|
|
69
|
+
next: verb(0),
|
|
70
|
+
"throw": verb(1),
|
|
71
|
+
"return": verb(2)
|
|
72
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
73
|
+
return this;
|
|
74
|
+
}), g;
|
|
75
|
+
|
|
76
|
+
function verb(n) {
|
|
77
|
+
return function (v) {
|
|
78
|
+
return step([n, v]);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function step(op) {
|
|
83
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
84
|
+
|
|
85
|
+
while (_) {
|
|
86
|
+
try {
|
|
87
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
88
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
89
|
+
|
|
90
|
+
switch (op[0]) {
|
|
91
|
+
case 0:
|
|
92
|
+
case 1:
|
|
93
|
+
t = op;
|
|
94
|
+
break;
|
|
95
|
+
|
|
96
|
+
case 4:
|
|
97
|
+
_.label++;
|
|
98
|
+
return {
|
|
99
|
+
value: op[1],
|
|
100
|
+
done: false
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
case 5:
|
|
104
|
+
_.label++;
|
|
105
|
+
y = op[1];
|
|
106
|
+
op = [0];
|
|
107
|
+
continue;
|
|
108
|
+
|
|
109
|
+
case 7:
|
|
110
|
+
op = _.ops.pop();
|
|
111
|
+
|
|
112
|
+
_.trys.pop();
|
|
113
|
+
|
|
114
|
+
continue;
|
|
115
|
+
|
|
116
|
+
default:
|
|
117
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
118
|
+
_ = 0;
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
123
|
+
_.label = op[1];
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
128
|
+
_.label = t[1];
|
|
129
|
+
t = op;
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (t && _.label < t[2]) {
|
|
134
|
+
_.label = t[2];
|
|
135
|
+
|
|
136
|
+
_.ops.push(op);
|
|
137
|
+
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (t[2]) _.ops.pop();
|
|
142
|
+
|
|
143
|
+
_.trys.pop();
|
|
144
|
+
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
op = body.call(thisArg, _);
|
|
149
|
+
} catch (e) {
|
|
150
|
+
op = [6, e];
|
|
151
|
+
y = 0;
|
|
152
|
+
} finally {
|
|
153
|
+
f = t = 0;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (op[0] & 5) throw op[1];
|
|
158
|
+
return {
|
|
159
|
+
value: op[0] ? op[1] : void 0,
|
|
160
|
+
done: true
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
166
|
+
var t = {};
|
|
167
|
+
|
|
168
|
+
for (var p in s) {
|
|
169
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
173
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
174
|
+
}
|
|
175
|
+
return t;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
var debug = require('debug')('worker:confirm');
|
|
179
|
+
|
|
180
|
+
function Confirm(props) {
|
|
181
|
+
var _this = this;
|
|
182
|
+
|
|
183
|
+
var okText = props.okText,
|
|
184
|
+
cancelText = props.cancelText,
|
|
185
|
+
title = props.title,
|
|
186
|
+
content = props.content,
|
|
187
|
+
onOk = props.onOk,
|
|
188
|
+
onCancel = props.onCancel,
|
|
189
|
+
onClose = props.onClose,
|
|
190
|
+
rest = __rest(props, ["okText", "cancelText", "title", "content", "onOk", "onCancel", "onClose"]);
|
|
191
|
+
|
|
192
|
+
var onOkClick = function onOkClick() {
|
|
193
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
194
|
+
var error_1;
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
switch (_a.label) {
|
|
197
|
+
case 0:
|
|
198
|
+
_a.trys.push([0, 2,, 3]);
|
|
199
|
+
|
|
200
|
+
return [4
|
|
201
|
+
/*yield*/
|
|
202
|
+
, onOk()];
|
|
203
|
+
|
|
204
|
+
case 1:
|
|
205
|
+
_a.sent();
|
|
206
|
+
|
|
207
|
+
onClose();
|
|
208
|
+
return [3
|
|
209
|
+
/*break*/
|
|
210
|
+
, 3];
|
|
211
|
+
|
|
212
|
+
case 2:
|
|
213
|
+
error_1 = _a.sent();
|
|
214
|
+
debug(error_1);
|
|
215
|
+
return [3
|
|
216
|
+
/*break*/
|
|
217
|
+
, 3];
|
|
218
|
+
|
|
219
|
+
case 3:
|
|
220
|
+
return [2
|
|
221
|
+
/*return*/
|
|
222
|
+
];
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
var onCancelClick = function onCancelClick() {
|
|
229
|
+
try {
|
|
230
|
+
onCancel();
|
|
231
|
+
onClose();
|
|
232
|
+
} catch (error) {
|
|
233
|
+
debug(error);
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Modal, _extends({}, rest, {
|
|
238
|
+
closable: false,
|
|
239
|
+
footer: null
|
|
240
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
241
|
+
className: "confirm_wrap"
|
|
242
|
+
}, title && /*#__PURE__*/_react["default"].createElement("div", {
|
|
243
|
+
className: "confirm_title"
|
|
244
|
+
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
245
|
+
color: "#FFBF1B",
|
|
246
|
+
size: 24,
|
|
247
|
+
type: "icon-notice1"
|
|
248
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
249
|
+
className: "confirm_title_text"
|
|
250
|
+
}, title)), content && /*#__PURE__*/_react["default"].createElement("div", {
|
|
251
|
+
className: "confirm_content"
|
|
252
|
+
}, content), /*#__PURE__*/_react["default"].createElement("div", {
|
|
253
|
+
className: "confirm_footer"
|
|
254
|
+
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
255
|
+
onClick: onCancelClick,
|
|
256
|
+
size: "small",
|
|
257
|
+
type: "light"
|
|
258
|
+
}, cancelText), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
259
|
+
onClick: onOkClick,
|
|
260
|
+
size: "small",
|
|
261
|
+
type: "primary"
|
|
262
|
+
}, okText))));
|
|
263
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
.confirm_wrap {
|
|
3
|
+
padding: 16px 16px 12px 16px;
|
|
4
|
+
.confirm_title {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
font-family: 'Open Sans';
|
|
8
|
+
font-style: normal;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
font-size: 16px;
|
|
11
|
+
line-height: 24px;
|
|
12
|
+
color: #232F46;
|
|
13
|
+
.confirm_title_text {
|
|
14
|
+
margin-left: 16px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.confirm_content {
|
|
18
|
+
font-family: 'Open Sans';
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
font-size: 13px;
|
|
22
|
+
line-height: 18px;
|
|
23
|
+
color: #232F46;
|
|
24
|
+
margin-left: 40px;
|
|
25
|
+
margin-top: 10px;
|
|
26
|
+
}
|
|
27
|
+
.confirm_footer {
|
|
28
|
+
margin-top: 24px;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: flex-end;
|
|
32
|
+
}
|
|
33
|
+
}
|