@fonixtree/magic-design 0.0.99 → 0.0.101
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 -28
- package/es/assets/fonts/magic-box-iconfont.css.bak +12 -28
- 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/button.less +0 -23
- package/es/assets/less/common.less +2 -2
- package/es/assets/less/index.less +1 -2
- 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/FontStyles/index.less +1 -1
- package/es/common/GroupList/index.js +3 -4
- 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 +2 -3
- package/es/common/LinkModal/FilteredProductModal/index.js +19 -23
- package/es/common/LinkModal/FilteredProductModal/index.less +3 -2
- 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 -16
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/es/composite-comp/bol/components/Banner/mobile/index.js +11 -48
- package/es/composite-comp/bol/components/Banner/pc/index.js +20 -50
- 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 +9 -9
- 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 +38 -61
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +9 -21
- package/es/composite-comp/bol/components/Carousel/pc/index.js +33 -69
- package/es/composite-comp/bol/components/Carousel/pc/index.less +16 -28
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +6 -15
- package/es/composite-comp/bol/components/ImageGallery/index.js +1 -5
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +15 -77
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +64 -16
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +179 -57
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +5 -3
- 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/ImageText/pc/index.less +0 -2
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +3 -3
- package/es/composite-comp/bol/components/Newsletter/index.js +8 -16
- package/es/composite-comp/bol/components/Newsletter/index.less +1 -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 +7 -5
- package/es/composite-comp/bol/components/Text/index.js +8 -4
- package/es/composite-comp/bol/components/Text/index.less +3 -3
- 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/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 +2 -4
- package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -1
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +2 -4
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +4 -20
- 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/ImageGallerySecondConfig/index.js +17 -6
- 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 +9 -4
- package/es/composite-comp/common/components/ProductItem/index.js +32 -39
- package/es/composite-comp/common/components/ProductItem/index.less +16 -18
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +25 -52
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +29 -40
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +8 -67
- package/es/composite-comp/dito/components/FlashDeal/index.js +1 -5
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +38 -24
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -1
- 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 +15 -33
- package/es/composite-comp/dito/components/Recommend/index.js +6 -5
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +72 -93
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +2 -11
- package/es/composite-comp/dito/components/Recommend/pc/index.js +53 -184
- package/es/composite-comp/dito/components/Recommend/pc/index.less +12 -56
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +19 -48
- package/es/composite-comp/dito/components/SearchBar/index.js +2 -7
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +26 -31
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +3 -15
- 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 +2 -11
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +1 -3
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -18
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +51 -16
- 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 -15
- package/es/constants/index.js +2 -21
- package/es/constants/layout.js +14 -35
- package/es/core/Designer/CompListPanel/CompCard/index.js +1 -3
- package/es/core/Designer/CompListPanel/index.js +36 -11
- package/es/core/Designer/ConfigPanel/index.js +23 -73
- 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 +4 -42
- package/es/core/Designer/PageCompList/index.less +10 -10
- package/es/core/Designer/QuickMenuBar/index.js +4 -38
- package/es/core/Designer/QuickMenuBar/index.less +0 -34
- package/es/core/Designer/ViewArea/index.js +8 -48
- package/es/core/Designer/ViewArea/index.less +4 -39
- package/es/core/Designer/index.js +41 -93
- package/es/core/Renderer/index.js +5 -23
- package/es/decorator/compositeDecorator.js +17 -147
- package/es/decorator/index.js +0 -8
- package/es/decorator/metaDecorator.js +8 -41
- package/es/locale/en/en.json +3 -21
- package/es/locale/es/es.json +1 -19
- package/es/locale/id/id.json +3 -21
- package/es/meta-comp/components/Button/index.js +33 -14
- package/es/meta-comp/components/Button/index.less +2 -3
- package/es/meta-comp/components/Image/index.js +8 -47
- package/es/meta-comp/components/Image/index.less +3 -7
- package/es/meta-comp/components/Text/index.js +11 -38
- package/es/meta-comp/config-panels/BaseConfig.js +10 -8
- package/es/meta-comp/config-panels/ButtonConfig/index.js +3 -2
- package/es/meta-comp/config-panels/ImageConfig/index.js +4 -17
- package/es/meta-comp/config-panels/TextConfig/index.js +7 -16
- package/es/mobx/Store.js +10 -9
- package/es/mobx/index.js +3 -9
- package/es/utils/businessUtil.js +3 -3
- package/es/utils/coreUtil.js +2 -15
- package/lib/assets/fonts/magic-box-iconfont.css +12 -28
- package/lib/assets/fonts/magic-box-iconfont.css.bak +12 -28
- 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/button.less +0 -23
- package/lib/assets/less/common.less +2 -2
- package/lib/assets/less/index.less +1 -2
- 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/FontStyles/index.less +1 -1
- package/lib/common/GroupList/index.js +3 -4
- 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 +2 -3
- package/lib/common/LinkModal/FilteredProductModal/index.js +19 -23
- package/lib/common/LinkModal/FilteredProductModal/index.less +3 -2
- 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 -16
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +11 -48
- package/lib/composite-comp/bol/components/Banner/pc/index.js +20 -50
- 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 +9 -9
- 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 +38 -61
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +9 -21
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +33 -69
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +16 -28
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +6 -15
- package/lib/composite-comp/bol/components/ImageGallery/index.js +1 -5
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +15 -77
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +64 -16
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +179 -57
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +5 -3
- 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/ImageText/pc/index.less +0 -2
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +3 -3
- package/lib/composite-comp/bol/components/Newsletter/index.js +8 -16
- package/lib/composite-comp/bol/components/Newsletter/index.less +1 -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 +7 -5
- package/lib/composite-comp/bol/components/Text/index.js +8 -4
- package/lib/composite-comp/bol/components/Text/index.less +3 -3
- 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/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 +2 -4
- package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +2 -4
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +4 -20
- 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/ImageGallerySecondConfig/index.js +17 -6
- 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 +9 -4
- package/lib/composite-comp/common/components/ProductItem/index.js +32 -39
- package/lib/composite-comp/common/components/ProductItem/index.less +16 -18
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +25 -52
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +29 -40
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +8 -67
- package/lib/composite-comp/dito/components/FlashDeal/index.js +1 -5
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +38 -24
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -1
- 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 +15 -33
- package/lib/composite-comp/dito/components/Recommend/index.js +6 -5
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +72 -93
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +2 -11
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +53 -184
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +12 -56
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +19 -48
- package/lib/composite-comp/dito/components/SearchBar/index.js +2 -7
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +26 -31
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +3 -15
- 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 +2 -11
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +1 -3
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +3 -18
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +51 -16
- 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 -15
- package/lib/constants/index.js +2 -21
- package/lib/constants/layout.js +14 -35
- package/lib/core/Designer/CompListPanel/CompCard/index.js +1 -3
- package/lib/core/Designer/CompListPanel/index.js +36 -11
- package/lib/core/Designer/ConfigPanel/index.js +23 -73
- 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 +4 -42
- package/lib/core/Designer/PageCompList/index.less +10 -10
- package/lib/core/Designer/QuickMenuBar/index.js +4 -38
- package/lib/core/Designer/QuickMenuBar/index.less +0 -34
- package/lib/core/Designer/ViewArea/index.js +8 -48
- package/lib/core/Designer/ViewArea/index.less +4 -39
- package/lib/core/Designer/index.js +41 -93
- package/lib/core/Renderer/index.js +5 -23
- package/lib/decorator/compositeDecorator.js +17 -147
- package/lib/decorator/index.js +0 -8
- package/lib/decorator/metaDecorator.js +8 -41
- package/lib/locale/en/en.json +3 -21
- package/lib/locale/es/es.json +1 -19
- package/lib/locale/id/id.json +3 -21
- package/lib/meta-comp/components/Button/index.js +33 -14
- package/lib/meta-comp/components/Button/index.less +2 -3
- package/lib/meta-comp/components/Image/index.js +8 -47
- package/lib/meta-comp/components/Image/index.less +3 -7
- package/lib/meta-comp/components/Text/index.js +11 -38
- package/lib/meta-comp/config-panels/BaseConfig.js +10 -8
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +3 -2
- package/lib/meta-comp/config-panels/ImageConfig/index.js +4 -17
- package/lib/meta-comp/config-panels/TextConfig/index.js +7 -16
- package/lib/mobx/Store.js +10 -9
- package/lib/mobx/index.js +3 -9
- package/lib/utils/businessUtil.js +3 -3
- package/lib/utils/coreUtil.js +2 -15
- package/package.json +3 -5
- package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/es/assets/less/datepicker.less +0 -11
- 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/common/SystemNotification/Confirm/index.js +0 -263
- package/es/common/SystemNotification/Confirm/index.less +0 -33
- package/es/common/SystemNotification/index.js +0 -115
- package/es/composite-comp/bol/components/Carousel/imgs/pcDefImg1.png +0 -0
- 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/pc/index.js +0 -164
- package/es/composite-comp/bol/components/ImageGallery/pc/index.less +0 -26
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -143
- 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 -143
- 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/mobile/imgs/defImg.png +0 -0
- 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 +0 -566
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +0 -122
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -136
- 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 -482
- package/es/composite-comp/dito/components/PcNavigation/pc/index.less +0 -107
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -149
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +0 -60
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -129
- 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 -194
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +0 -140
- package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
- package/es/core/Designer/AppointmentModal/index.js +0 -84
- package/es/core/Designer/AppointmentModal/index.less +0 -23
- 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/components/Button/editable.js +0 -114
- package/es/meta-comp/components/Button/editable.less +0 -6
- 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/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/es/mobx/Frame.js +0 -64
- package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/lib/assets/less/datepicker.less +0 -11
- 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/common/SystemNotification/Confirm/index.js +0 -263
- package/lib/common/SystemNotification/Confirm/index.less +0 -33
- package/lib/common/SystemNotification/index.js +0 -115
- package/lib/composite-comp/bol/components/Carousel/imgs/pcDefImg1.png +0 -0
- 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/pc/index.js +0 -164
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.less +0 -26
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +0 -143
- 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 -143
- 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/mobile/imgs/defImg.png +0 -0
- 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 +0 -566
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +0 -122
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -136
- 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 -482
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +0 -107
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -149
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +0 -60
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +0 -129
- 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 -194
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +0 -140
- package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +0 -102
- package/lib/core/Designer/AppointmentModal/index.js +0 -84
- package/lib/core/Designer/AppointmentModal/index.less +0 -23
- 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/components/Button/editable.js +0 -114
- package/lib/meta-comp/components/Button/editable.less +0 -6
- 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/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
- package/lib/mobx/Frame.js +0 -64
|
@@ -11,8 +11,6 @@ var _antd = require("antd");
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
-
var _HotAreaConfig = _interopRequireDefault(require("./HotAreaConfig"));
|
|
15
|
-
|
|
16
14
|
var _commonUtil = require("../../../utils/commonUtil");
|
|
17
15
|
|
|
18
16
|
var _coreUtil = require("../../../utils/coreUtil");
|
|
@@ -202,7 +200,8 @@ function (_super) {
|
|
|
202
200
|
function ImageConfig() {
|
|
203
201
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
204
202
|
|
|
205
|
-
_this.onClick = function (event) {
|
|
203
|
+
_this.onClick = function (event) {
|
|
204
|
+
console.log(event);
|
|
206
205
|
};
|
|
207
206
|
|
|
208
207
|
_this.getImg = function (v) {
|
|
@@ -292,10 +291,6 @@ function (_super) {
|
|
|
292
291
|
_this.selfRender();
|
|
293
292
|
};
|
|
294
293
|
|
|
295
|
-
_this.getSelectedImg = function (data) {
|
|
296
|
-
return (0, _coreUtil.isPc)() ? data.content.pcImgSrc : data.content.h5ImgSrc;
|
|
297
|
-
};
|
|
298
|
-
|
|
299
294
|
return _this;
|
|
300
295
|
}
|
|
301
296
|
|
|
@@ -304,24 +299,16 @@ function (_super) {
|
|
|
304
299
|
|
|
305
300
|
var _a = this.props,
|
|
306
301
|
data = _a.data,
|
|
307
|
-
needHover = _a.needHover;
|
|
308
|
-
var selectImg = this.getSelectedImg(data);
|
|
302
|
+
needHover = _a.needHover; // console.log('---image', this.props);
|
|
309
303
|
|
|
310
304
|
var ContentSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
|
|
311
305
|
onChange: function onChange(v) {
|
|
312
306
|
_this.getImg(v);
|
|
313
307
|
},
|
|
314
|
-
value:
|
|
315
|
-
}), selectImg && /*#__PURE__*/_react["default"].createElement(_HotAreaConfig["default"], {
|
|
316
|
-
imgUrl: selectImg,
|
|
317
|
-
onChange: function onChange() {
|
|
318
|
-
return _this.setState({});
|
|
319
|
-
},
|
|
320
|
-
option: data.content
|
|
308
|
+
value: (0, _coreUtil.isPc)() ? data.content.pcImgSrc : data.content.h5ImgSrc
|
|
321
309
|
}), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
322
310
|
title: "URL"
|
|
323
311
|
}, /*#__PURE__*/_react["default"].createElement(_common.UrlPicker, {
|
|
324
|
-
disabled: data.content.openHotArea,
|
|
325
312
|
onChange: function onChange(v) {
|
|
326
313
|
data.content.clickUrl = v;
|
|
327
314
|
|
|
@@ -147,11 +147,6 @@ function (_super) {
|
|
|
147
147
|
_extends(obj, sizeTypeMap[v]);
|
|
148
148
|
};
|
|
149
149
|
|
|
150
|
-
_this.getContentWidth = function (textData) {
|
|
151
|
-
var baseWidth = (window.magicDesign.device == 'pc' ? textData.pcWidth : textData.width) || 100;
|
|
152
|
-
return Math.min(baseWidth, 100);
|
|
153
|
-
};
|
|
154
|
-
|
|
155
150
|
return _this;
|
|
156
151
|
}
|
|
157
152
|
|
|
@@ -274,26 +269,21 @@ function (_super) {
|
|
|
274
269
|
|
|
275
270
|
_this.selfRender();
|
|
276
271
|
},
|
|
277
|
-
value:
|
|
272
|
+
value: data.content.clickUrl
|
|
278
273
|
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
279
274
|
title: (0, _locale.i18n)('CONTENT_WIDTH')
|
|
280
275
|
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
281
|
-
maxVal:
|
|
282
|
-
minVal:
|
|
276
|
+
maxVal: 1760,
|
|
277
|
+
minVal: 0,
|
|
283
278
|
onChange: function onChange(_a) {
|
|
284
279
|
var count = _a.count;
|
|
285
|
-
|
|
286
|
-
if (window.magicDesign.device == 'pc') {
|
|
287
|
-
textData.pcWidth = count;
|
|
288
|
-
} else {
|
|
289
|
-
textData.width = count;
|
|
290
|
-
}
|
|
280
|
+
textData.width = count;
|
|
291
281
|
|
|
292
282
|
_this.selfRender();
|
|
293
283
|
},
|
|
294
|
-
unit: "
|
|
284
|
+
unit: "px",
|
|
295
285
|
value: {
|
|
296
|
-
count:
|
|
286
|
+
count: textData.width
|
|
297
287
|
}
|
|
298
288
|
})))
|
|
299
289
|
}, {
|
|
@@ -301,6 +291,7 @@ function (_super) {
|
|
|
301
291
|
name: (0, _locale.i18n)('SPACING'),
|
|
302
292
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
303
293
|
configCompSpace: false,
|
|
294
|
+
configPaddingLR: true,
|
|
304
295
|
data: data.spacing
|
|
305
296
|
})
|
|
306
297
|
}, {
|
package/lib/mobx/Store.js
CHANGED
|
@@ -13,9 +13,6 @@ var _storeUtil = require("../utils/storeUtil");
|
|
|
13
13
|
|
|
14
14
|
var debug = require('debug')('worker:mobx');
|
|
15
15
|
|
|
16
|
-
var CACHE_KEY = 'STORE';
|
|
17
|
-
var whiteList = ['hoveredMeta', 'clickedMeta', 'clickedGroup', 'clickedFloor', 'hoveredFloor', 'textSelection', 'MPageData'];
|
|
18
|
-
|
|
19
16
|
var Store =
|
|
20
17
|
/** @class */
|
|
21
18
|
function () {
|
|
@@ -26,12 +23,10 @@ function () {
|
|
|
26
23
|
|
|
27
24
|
this.clickedMeta = ''; // 点击的元组件Id
|
|
28
25
|
|
|
29
|
-
this.clickedGroup = ''; //
|
|
26
|
+
this.clickedGroup = ''; // 点击的元组件组Id
|
|
30
27
|
|
|
31
28
|
this.clickedFloor = ''; // 点击的楼层Id
|
|
32
29
|
|
|
33
|
-
this.hoveredFloor = ''; // hover的复合组件Id
|
|
34
|
-
|
|
35
30
|
this.textSelection = null; // 文本元组件选中区域
|
|
36
31
|
|
|
37
32
|
this.MPageData = []; // 楼层数据
|
|
@@ -39,13 +34,11 @@ function () {
|
|
|
39
34
|
this.CarouselStore = {}; // 轮播组件暂存数据
|
|
40
35
|
|
|
41
36
|
(0, _mobx.makeObservable)(this, {
|
|
42
|
-
MPageData: _mobx.observable,
|
|
43
37
|
locale: _mobx.observable,
|
|
44
38
|
hoveredMeta: _mobx.observable,
|
|
45
39
|
clickedMeta: _mobx.observable,
|
|
46
40
|
clickedGroup: _mobx.observable,
|
|
47
41
|
clickedFloor: _mobx.observable,
|
|
48
|
-
hoveredFloor: _mobx.observable,
|
|
49
42
|
CarouselStore: _mobx.observable,
|
|
50
43
|
setState: _mobx.action.bound
|
|
51
44
|
});
|
|
@@ -61,7 +54,6 @@ function () {
|
|
|
61
54
|
propertyList.forEach(function (field) {
|
|
62
55
|
_this[field] = data[field];
|
|
63
56
|
});
|
|
64
|
-
(0, _storeUtil.persistence)(CACHE_KEY, this, whiteList);
|
|
65
57
|
};
|
|
66
58
|
/**
|
|
67
59
|
*根据groupId 获取楼层Id
|
|
@@ -95,6 +87,15 @@ function () {
|
|
|
95
87
|
return componentFloor.id;
|
|
96
88
|
};
|
|
97
89
|
|
|
90
|
+
Store.prototype.getFloorInfo = function () {
|
|
91
|
+
var _this = this;
|
|
92
|
+
|
|
93
|
+
var componentFloor = this.MPageData.find(function (floor) {
|
|
94
|
+
return floor.id === _this.clickedFloor;
|
|
95
|
+
});
|
|
96
|
+
return componentFloor;
|
|
97
|
+
};
|
|
98
|
+
|
|
98
99
|
return Store;
|
|
99
100
|
}();
|
|
100
101
|
|
package/lib/mobx/index.js
CHANGED
|
@@ -4,10 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
|
-
store: true
|
|
8
|
-
frameStore: true
|
|
7
|
+
store: true
|
|
9
8
|
};
|
|
10
|
-
exports.store = exports
|
|
9
|
+
exports.store = exports["default"] = void 0;
|
|
11
10
|
|
|
12
11
|
var _mobx = require("mobx");
|
|
13
12
|
|
|
@@ -25,18 +24,13 @@ Object.keys(_mobx).forEach(function (key) {
|
|
|
25
24
|
|
|
26
25
|
var _Store = require("./Store");
|
|
27
26
|
|
|
28
|
-
var _Frame = require("./Frame");
|
|
29
|
-
|
|
30
27
|
/* 开启严格模式 */
|
|
31
28
|
(0, _mobx.configure)({
|
|
32
29
|
enforceActions: 'observed'
|
|
33
30
|
});
|
|
34
31
|
var store = new _Store.Store();
|
|
35
32
|
exports.store = store;
|
|
36
|
-
var frameStore = new _Frame.Frame();
|
|
37
|
-
exports.frameStore = frameStore;
|
|
38
33
|
var _default = {
|
|
39
|
-
store: store
|
|
40
|
-
frameStore: frameStore
|
|
34
|
+
store: store
|
|
41
35
|
};
|
|
42
36
|
exports["default"] = _default;
|
|
@@ -20,7 +20,7 @@ var parseUrl = function parseUrl(url) {
|
|
|
20
20
|
switch (type) {
|
|
21
21
|
// 商品详情
|
|
22
22
|
case _constants.urlType.PRODUCT_DETAIL:
|
|
23
|
-
pcLink = "/
|
|
23
|
+
pcLink = "/offer-detail/" + arg1;
|
|
24
24
|
h5Link = "/product/detail/" + arg1 + "?productId=" + (arg2 !== null && arg2 !== void 0 ? arg2 : '');
|
|
25
25
|
params = {
|
|
26
26
|
type: 'PROD_DETAIL',
|
|
@@ -33,7 +33,7 @@ var parseUrl = function parseUrl(url) {
|
|
|
33
33
|
|
|
34
34
|
case _constants.urlType.CATG_PROD_LIST:
|
|
35
35
|
// 商品列表
|
|
36
|
-
pcLink = "/
|
|
36
|
+
pcLink = "/offer-list/catg/" + arg1;
|
|
37
37
|
h5Link = "/product/list/" + arg1;
|
|
38
38
|
params = {
|
|
39
39
|
type: 'PROD_LIST',
|
|
@@ -57,7 +57,7 @@ var parseUrl = function parseUrl(url) {
|
|
|
57
57
|
|
|
58
58
|
case _constants.urlType.CUSTOMIZED:
|
|
59
59
|
// 自定义页面
|
|
60
|
-
pcLink = "/
|
|
60
|
+
pcLink = "/promotion/" + arg1;
|
|
61
61
|
h5Link = "/group/" + arg1;
|
|
62
62
|
params = {
|
|
63
63
|
type: 'CUSTOMIZED',
|
package/lib/utils/coreUtil.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.setMagicDesign = exports.renderPreview = exports.isPc = exports.isDesignMode = exports.
|
|
6
|
+
exports.setMagicDesign = exports.renderPreview = exports.isPc = exports.isDesignMode = exports.copyNode = exports.clickUrl = void 0;
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
@@ -184,13 +184,6 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
184
184
|
|
|
185
185
|
var _this = void 0;
|
|
186
186
|
|
|
187
|
-
/** 根据楼层设置的终端类型,判断是否展示该楼层 */
|
|
188
|
-
var isActiveFloor = function isActiveFloor(activeTerminal) {
|
|
189
|
-
return !activeTerminal || activeTerminal === 'ALL' || activeTerminal === window.magicDesign.device.toUpperCase();
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
exports.isActiveFloor = isActiveFloor;
|
|
193
|
-
|
|
194
187
|
var isDesignMode = function isDesignMode() {
|
|
195
188
|
return window.magicDesign.mode === 'designer';
|
|
196
189
|
};
|
|
@@ -211,15 +204,10 @@ var setMagicDesign = function setMagicDesign(magicDesignObj) {
|
|
|
211
204
|
|
|
212
205
|
exports.setMagicDesign = setMagicDesign;
|
|
213
206
|
|
|
214
|
-
var renderPreview = function renderPreview(
|
|
215
|
-
if (changeHistory === void 0) {
|
|
216
|
-
changeHistory = true;
|
|
217
|
-
}
|
|
218
|
-
|
|
207
|
+
var renderPreview = function renderPreview() {
|
|
219
208
|
var evt = new Event('render-view', {
|
|
220
209
|
bubbles: false
|
|
221
210
|
});
|
|
222
|
-
evt.changeHistory = changeHistory;
|
|
223
211
|
window.document.dispatchEvent(evt);
|
|
224
212
|
}; // 领取优惠券
|
|
225
213
|
|
|
@@ -303,7 +291,6 @@ var clickUrl = function clickUrl(url) {
|
|
|
303
291
|
if (url.startsWith('/')) {
|
|
304
292
|
(0, _commonUtil.navigateTo)(url);
|
|
305
293
|
} else {
|
|
306
|
-
// location.href = url;
|
|
307
294
|
var newUrl = isPc() ? pcLink : h5Link;
|
|
308
295
|
(0, _commonUtil.navigateTo)(newUrl);
|
|
309
296
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonixtree/magic-design",
|
|
3
3
|
"author": "Cylon Team",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.101",
|
|
5
5
|
"description": "Magic Design",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"antd": "4.20.6",
|
|
24
24
|
"axios": "0.27.2",
|
|
25
25
|
"immutability-helper": "3.1.1",
|
|
26
|
-
"interactjs": "1.10.17",
|
|
27
26
|
"lodash": "4.17.21",
|
|
28
27
|
"macy": "2.5.1",
|
|
29
28
|
"mobx": "6.6.1",
|
|
@@ -33,12 +32,11 @@
|
|
|
33
32
|
"react-router-dom": "5.3.0",
|
|
34
33
|
"react-slick": "^0.29.0",
|
|
35
34
|
"replace": "^1.2.1",
|
|
36
|
-
"shortid": "^2.2.16",
|
|
37
35
|
"slick-carousel": "^1.8.1"
|
|
38
36
|
},
|
|
39
37
|
"peerDependencies": {
|
|
40
|
-
"react": ">=16.11.0",
|
|
41
|
-
"react
|
|
38
|
+
"react-dom": ">=16.11.0",
|
|
39
|
+
"react": ">=16.11.0"
|
|
42
40
|
},
|
|
43
41
|
"files": [
|
|
44
42
|
"es",
|
|
Binary file
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
.ant-picker {
|
|
2
|
-
&:hover {
|
|
3
|
-
border-color: #2F54EB !important;
|
|
4
|
-
}
|
|
5
|
-
&.ant-picker-focused {
|
|
6
|
-
border-color: #2F54EB !important;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
.ant-picker-time-panel-column > li.ant-picker-time-panel-cell-selected .ant-picker-time-panel-cell-inner {
|
|
10
|
-
background-color: #E9F0FF !important;
|
|
11
|
-
}
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.coordinateType = void 0;
|
|
9
|
-
|
|
10
|
-
var _interactjs = _interopRequireDefault(require("interactjs"));
|
|
11
|
-
|
|
12
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
|
-
var _ramda = require("ramda");
|
|
15
|
-
|
|
16
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
-
|
|
18
|
-
var _Icons = require("./Icons");
|
|
19
|
-
|
|
20
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
|
|
22
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
-
|
|
26
|
-
var __extends = void 0 && (void 0).__extends || function () {
|
|
27
|
-
var _extendStatics = function extendStatics(d, b) {
|
|
28
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
29
|
-
__proto__: []
|
|
30
|
-
} instanceof Array && function (d, b) {
|
|
31
|
-
d.__proto__ = b;
|
|
32
|
-
} || function (d, b) {
|
|
33
|
-
for (var p in b) {
|
|
34
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
return _extendStatics(d, b);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
return function (d, b) {
|
|
42
|
-
_extendStatics(d, b);
|
|
43
|
-
|
|
44
|
-
function __() {
|
|
45
|
-
this.constructor = d;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49
|
-
};
|
|
50
|
-
}();
|
|
51
|
-
|
|
52
|
-
var __assign = void 0 && (void 0).__assign || function () {
|
|
53
|
-
__assign = Object.assign || function (t) {
|
|
54
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
55
|
-
s = arguments[i];
|
|
56
|
-
|
|
57
|
-
for (var p in s) {
|
|
58
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return t;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
return __assign.apply(this, arguments);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
var Crop =
|
|
69
|
-
/** @class */
|
|
70
|
-
function (_super) {
|
|
71
|
-
__extends(Crop, _super);
|
|
72
|
-
|
|
73
|
-
function Crop() {
|
|
74
|
-
var _this = _super !== null && _super.apply(this, arguments) || this; // shouldComponentUpdate(nextProps) {
|
|
75
|
-
// // reduce uncessary update
|
|
76
|
-
// return !equals(nextProps.coordinate.inputVal, this.state.inputVal)||!equals(nextProps.coordinate, this.props.coordinate)
|
|
77
|
-
// || (nextProps.index !== this.props.index)
|
|
78
|
-
// }
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
_this.handleResizeMove = function (e) {
|
|
82
|
-
var _a = _this.props,
|
|
83
|
-
index = _a.index,
|
|
84
|
-
coordinate = _a.coordinate,
|
|
85
|
-
_b = _a.coordinate,
|
|
86
|
-
x = _b.x,
|
|
87
|
-
y = _b.y,
|
|
88
|
-
coordinates = _a.coordinates,
|
|
89
|
-
onResize = _a.onResize,
|
|
90
|
-
onChange = _a.onChange,
|
|
91
|
-
onSave = _a.onSave;
|
|
92
|
-
var _c = e.rect,
|
|
93
|
-
width = _c.width,
|
|
94
|
-
height = _c.height;
|
|
95
|
-
var _d = e.deltaRect,
|
|
96
|
-
left = _d.left,
|
|
97
|
-
top = _d.top; // console.log(x, left, y, top);
|
|
98
|
-
// if (x + left < 0 || y + top < 0 || x + left + width > 500 || y + top + height > 500) {
|
|
99
|
-
// return;
|
|
100
|
-
// }
|
|
101
|
-
|
|
102
|
-
var nextCoordinate = __assign(__assign({}, coordinate), {
|
|
103
|
-
x: x + left,
|
|
104
|
-
y: y + top,
|
|
105
|
-
width: width,
|
|
106
|
-
height: height
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
var nextCoordinates = (0, _ramda.update)(index, nextCoordinate)(coordinates);
|
|
110
|
-
|
|
111
|
-
if ((0, _ramda.is)(Function, onResize)) {
|
|
112
|
-
onResize(nextCoordinate, index, nextCoordinates);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
if ((0, _ramda.is)(Function, onChange)) {
|
|
116
|
-
onChange(nextCoordinate, index, nextCoordinates);
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
_this.handleDragMove = function (e) {
|
|
121
|
-
var _a = _this.props,
|
|
122
|
-
index = _a.index,
|
|
123
|
-
coordinate = _a.coordinate,
|
|
124
|
-
_b = _a.coordinate,
|
|
125
|
-
x = _b.x,
|
|
126
|
-
y = _b.y,
|
|
127
|
-
coordinates = _a.coordinates,
|
|
128
|
-
onDrag = _a.onDrag,
|
|
129
|
-
onChange = _a.onChange;
|
|
130
|
-
var dx = e.dx,
|
|
131
|
-
dy = e.dy;
|
|
132
|
-
|
|
133
|
-
var nextCoordinate = __assign(__assign({}, coordinate), {
|
|
134
|
-
x: x + dx,
|
|
135
|
-
y: y + dy
|
|
136
|
-
});
|
|
137
|
-
|
|
138
|
-
var nextCoordinates = (0, _ramda.update)(index, nextCoordinate)(coordinates);
|
|
139
|
-
|
|
140
|
-
if ((0, _ramda.is)(Function, onDrag)) {
|
|
141
|
-
onDrag(nextCoordinate, index, nextCoordinates);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
if ((0, _ramda.is)(Function, onChange)) {
|
|
145
|
-
onChange(nextCoordinate, index, nextCoordinates);
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
_this.handleDelete = function () {
|
|
150
|
-
var _a = _this.props,
|
|
151
|
-
index = _a.index,
|
|
152
|
-
coordinate = _a.coordinate,
|
|
153
|
-
onDelete = _a.onDelete,
|
|
154
|
-
coordinates = _a.coordinates;
|
|
155
|
-
var nextCoordinates = (0, _ramda.remove)(index, 1)(coordinates);
|
|
156
|
-
|
|
157
|
-
if ((0, _ramda.is)(Function, onDelete)) {
|
|
158
|
-
onDelete(coordinate, index, nextCoordinates);
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
_this.state = {
|
|
163
|
-
inputVal: _this.props.coordinate && _this.props.coordinate.inputVal || ''
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
_this.handleSave = function () {
|
|
167
|
-
var _a = _this.props,
|
|
168
|
-
coordinate = _a.coordinate,
|
|
169
|
-
_b = _a.coordinate,
|
|
170
|
-
x = _b.x,
|
|
171
|
-
y = _b.y,
|
|
172
|
-
coordinates = _a.coordinates,
|
|
173
|
-
index = _a.index,
|
|
174
|
-
onSave = _a.onSave;
|
|
175
|
-
|
|
176
|
-
var nextCoordinate = __assign(__assign({}, coordinate), {
|
|
177
|
-
x: x,
|
|
178
|
-
y: y,
|
|
179
|
-
inputVal: _this.state.inputVal
|
|
180
|
-
});
|
|
181
|
-
|
|
182
|
-
var nextCoordinates = (0, _ramda.update)(index, nextCoordinate)(coordinates);
|
|
183
|
-
onSave && onSave(coordinate, index, nextCoordinates);
|
|
184
|
-
(0, _interactjs["default"])(_this.crop).unset();
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
return _this;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
Crop.prototype.componentDidMount = function () {
|
|
191
|
-
(0, _interactjs["default"])(this.crop).draggable({
|
|
192
|
-
modifiers: [_interactjs["default"].modifiers.restrictRect({
|
|
193
|
-
restriction: 'parent'
|
|
194
|
-
})]
|
|
195
|
-
}).resizable({
|
|
196
|
-
edges: {
|
|
197
|
-
left: true,
|
|
198
|
-
right: true,
|
|
199
|
-
bottom: true,
|
|
200
|
-
top: true
|
|
201
|
-
}
|
|
202
|
-
}).on('dragmove', this.handleDragMove).on('resizemove', this.handleResizeMove);
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
Crop.prototype.componentWillUnmount = function () {
|
|
206
|
-
(0, _interactjs["default"])(this.crop).unset();
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
Crop.prototype.render = function () {
|
|
210
|
-
var _this = this;
|
|
211
|
-
|
|
212
|
-
var _a = this.props,
|
|
213
|
-
coordinate = _a.coordinate,
|
|
214
|
-
index = _a.index,
|
|
215
|
-
onSave = _a.onSave;
|
|
216
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
217
|
-
ref: function ref(crop) {
|
|
218
|
-
return _this.crop = crop;
|
|
219
|
-
},
|
|
220
|
-
style: Crop.cropStyle(coordinate)
|
|
221
|
-
}, /*#__PURE__*/_react["default"].createElement(_Icons.NumberIcon, {
|
|
222
|
-
number: index + 1
|
|
223
|
-
}), /*#__PURE__*/_react["default"].createElement(_Icons.DeleteIcon, {
|
|
224
|
-
onClick: this.handleDelete
|
|
225
|
-
}));
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
Crop.cropStyle = function (coordinate) {
|
|
229
|
-
var x = coordinate.x,
|
|
230
|
-
y = coordinate.y,
|
|
231
|
-
width = coordinate.width,
|
|
232
|
-
height = coordinate.height;
|
|
233
|
-
return {
|
|
234
|
-
display: 'inline-block',
|
|
235
|
-
position: 'absolute',
|
|
236
|
-
width: width,
|
|
237
|
-
height: height,
|
|
238
|
-
top: y,
|
|
239
|
-
left: x,
|
|
240
|
-
border: '1px dashed #2F54EB',
|
|
241
|
-
background: 'rgba(47, 84, 235, 0.15)'
|
|
242
|
-
};
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
return Crop;
|
|
246
|
-
}(_react.Component);
|
|
247
|
-
|
|
248
|
-
var coordinateType = _propTypes["default"].shape({
|
|
249
|
-
x: _propTypes["default"].number.isRequired,
|
|
250
|
-
y: _propTypes["default"].number.isRequired,
|
|
251
|
-
width: _propTypes["default"].number.isRequired,
|
|
252
|
-
height: _propTypes["default"].number.isRequired
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
exports.coordinateType = coordinateType;
|
|
256
|
-
Crop.propTypes = {
|
|
257
|
-
coordinate: coordinateType.isRequired,
|
|
258
|
-
index: _propTypes["default"].number.isRequired,
|
|
259
|
-
onResize: _propTypes["default"].func,
|
|
260
|
-
onDrag: _propTypes["default"].func,
|
|
261
|
-
onDelete: _propTypes["default"].func,
|
|
262
|
-
onChange: _propTypes["default"].func,
|
|
263
|
-
coordinates: _propTypes["default"].array,
|
|
264
|
-
onSave: _propTypes["default"].func
|
|
265
|
-
};
|
|
266
|
-
var _default = Crop;
|
|
267
|
-
exports["default"] = _default;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.NumberIcon = exports.DeleteIcon = void 0;
|
|
7
|
-
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
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); }
|
|
15
|
-
|
|
16
|
-
var DeleteIcon = function DeleteIcon(props) {
|
|
17
|
-
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
18
|
-
className: "rmc-icon-container"
|
|
19
|
-
}, props), /*#__PURE__*/_react["default"].createElement("div", {
|
|
20
|
-
className: "rmc-remove"
|
|
21
|
-
}), /*#__PURE__*/_react["default"].createElement("style", {
|
|
22
|
-
jsx: "true"
|
|
23
|
-
}, "\n .rmc-icon-container {\n width: 15px;\n height: 15px;\n cursor: pointer;\n float: right;\n background:#2F54EB;\n opacity: 0.8;\n }\n .rmc-remove {\n color: white;\n position: absolute;\n margin-top: 6px;\n }\n\n .rmc-remove:hover {\n cursor: pointer;\n }\n\n .rmc-remove:before {\n content: '';\n position: absolute;\n width: 15px;\n height: 1px;\n background-color: currentColor;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n .rmc-remove:after {\n content: '';\n position: absolute;\n width: 15px;\n height: 1px;\n background-color: currentColor;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n "));
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
exports.DeleteIcon = DeleteIcon;
|
|
27
|
-
|
|
28
|
-
var NumberIcon = function NumberIcon(_a) {
|
|
29
|
-
var number = _a.number;
|
|
30
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
|
-
className: "rmc-number"
|
|
32
|
-
}, number, /*#__PURE__*/_react["default"].createElement("style", {
|
|
33
|
-
jsx: "true"
|
|
34
|
-
}, "\n .rmc-number {\n height: 15px;\n width: 15px;\n float: left;\n font-size: 12px;\n background:#2F54EB;\n text-align: center;\n line-height: 15px;\n color: white;\n opacity: 0.8;\n }\n "));
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
exports.NumberIcon = NumberIcon;
|
|
38
|
-
var number = _propTypes["default"].number;
|
|
39
|
-
NumberIcon.propTypes = {
|
|
40
|
-
number: number
|
|
41
|
-
};
|
|
42
|
-
NumberIcon.defaultProps = {
|
|
43
|
-
number: ''
|
|
44
|
-
};
|