@fonixtree/magic-design 0.0.104 → 0.0.106
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/images/layout-icon/imageGalleryLayout1.png +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 +7 -7
- 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 +20 -16
- package/es/composite-comp/bol/components/Carousel/index.js +6 -1
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +38 -58
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +9 -22
- package/es/composite-comp/bol/components/Carousel/pc/index.js +34 -67
- package/es/composite-comp/bol/components/Carousel/pc/index.less +16 -29
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +10 -19
- 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 +66 -15
- 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.less +0 -1
- package/es/composite-comp/common/components/ProductItem/index.js +6 -26
- package/es/composite-comp/common/components/ProductItem/index.less +10 -11
- 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 +20 -49
- 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 +8 -44
- 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 -40
- 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/images/layout-icon/imageGalleryLayout1.png +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 +7 -7
- 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 +20 -16
- package/lib/composite-comp/bol/components/Carousel/index.js +6 -1
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +38 -58
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +9 -22
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +34 -67
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +16 -29
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +10 -19
- 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 +66 -15
- 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.less +0 -1
- package/lib/composite-comp/common/components/ProductItem/index.js +6 -26
- package/lib/composite-comp/common/components/ProductItem/index.less +10 -11
- 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 +20 -49
- 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 +8 -44
- 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 -40
- 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 -166
- package/es/composite-comp/bol/components/ImageGallery/pc/index.less +0 -23
- 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 -567
- 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/imgs/xt-logo.png +0 -0
- 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 -87
- 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 -166
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.less +0 -23
- 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 -567
- 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/imgs/xt-logo.png +0 -0
- 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 -87
- 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
|
@@ -41,22 +41,6 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
41
41
|
};
|
|
42
42
|
}();
|
|
43
43
|
|
|
44
|
-
var __assign = void 0 && (void 0).__assign || function () {
|
|
45
|
-
__assign = Object.assign || function (t) {
|
|
46
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
47
|
-
s = arguments[i];
|
|
48
|
-
|
|
49
|
-
for (var p in s) {
|
|
50
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return t;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
return __assign.apply(this, arguments);
|
|
58
|
-
};
|
|
59
|
-
|
|
60
44
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
61
45
|
var t = {};
|
|
62
46
|
|
|
@@ -85,7 +69,7 @@ function metaDecorator(WrappedComponent) {
|
|
|
85
69
|
}; // 元组件点击事件
|
|
86
70
|
|
|
87
71
|
_this.onMetaClick = function (event) {
|
|
88
|
-
var _a, _b;
|
|
72
|
+
var _a, _b, _c;
|
|
89
73
|
|
|
90
74
|
if (window.magicDesign.mode === 'renderer') {
|
|
91
75
|
return;
|
|
@@ -106,7 +90,7 @@ function metaDecorator(WrappedComponent) {
|
|
|
106
90
|
}
|
|
107
91
|
|
|
108
92
|
_mobx.store.setState({
|
|
109
|
-
clickedMeta:
|
|
93
|
+
clickedMeta: (_c = _this.props.data) === null || _c === void 0 ? void 0 : _c.id,
|
|
110
94
|
clickedGroup: parentId,
|
|
111
95
|
clickedFloor: floorId
|
|
112
96
|
});
|
|
@@ -149,7 +133,7 @@ function metaDecorator(WrappedComponent) {
|
|
|
149
133
|
return false;
|
|
150
134
|
};
|
|
151
135
|
|
|
152
|
-
_this.
|
|
136
|
+
_this.getStyle = function () {
|
|
153
137
|
var _a = _this.state,
|
|
154
138
|
hoveredMeta = _a.hoveredMeta,
|
|
155
139
|
clickedMeta = _a.clickedMeta;
|
|
@@ -158,8 +142,7 @@ function metaDecorator(WrappedComponent) {
|
|
|
158
142
|
var isClick = (data === null || data === void 0 ? void 0 : data.id) === clickedMeta;
|
|
159
143
|
var style = {
|
|
160
144
|
boxSizing: 'border-box',
|
|
161
|
-
height: '100%'
|
|
162
|
-
border: 'none'
|
|
145
|
+
height: '100%'
|
|
163
146
|
};
|
|
164
147
|
|
|
165
148
|
if (window.magicDesign.mode === 'renderer') {
|
|
@@ -170,22 +153,6 @@ function metaDecorator(WrappedComponent) {
|
|
|
170
153
|
}
|
|
171
154
|
|
|
172
155
|
return style;
|
|
173
|
-
}; // text元组件在选中或悬浮时 需要实时展示其宽度
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
_this.getStyle = function () {
|
|
177
|
-
var _a = _this.props,
|
|
178
|
-
style = _a.style,
|
|
179
|
-
rest = __rest(_a, ["style"]);
|
|
180
|
-
|
|
181
|
-
var newStyle = __assign({}, style);
|
|
182
|
-
|
|
183
|
-
if (rest.data.type === 'TEXT') {
|
|
184
|
-
var width = window.magicDesign.device === 'pc' ? rest.data.content.pcWidth : rest.data.content.width;
|
|
185
|
-
newStyle.width = (Math.min(width, 100) || 100) + "%";
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
return newStyle;
|
|
189
156
|
};
|
|
190
157
|
|
|
191
158
|
return _this;
|
|
@@ -209,13 +176,13 @@ function metaDecorator(WrappedComponent) {
|
|
|
209
176
|
Wrapper.prototype.render = function () {
|
|
210
177
|
var _a = this.props,
|
|
211
178
|
className = _a.className,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
var hoverStyle = this.getInteractStyle(); // console.log(rest);
|
|
179
|
+
style = _a.style,
|
|
180
|
+
rest = __rest(_a, ["className", "style"]);
|
|
215
181
|
|
|
182
|
+
var hoverStyle = this.getStyle();
|
|
216
183
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
217
184
|
className: className,
|
|
218
|
-
style:
|
|
185
|
+
style: style
|
|
219
186
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
220
187
|
className: "meta_wrap",
|
|
221
188
|
onClick: this.onMetaClick,
|
package/lib/locale/en/en.json
CHANGED
|
@@ -1,23 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"IMAGES": "Images",
|
|
3
|
-
"PUBLISH_TIME": "Publish Time",
|
|
4
|
-
"CONFIRM": "Confirm",
|
|
5
|
-
"PUBLISH_LATER": "Publish Later",
|
|
6
|
-
"PUBLISH_NOW": "Publish Now",
|
|
7
|
-
"SEARCH_BOX": "Search Box",
|
|
8
|
-
"PLEASE_INPUT_KEYWORDS": "Please input keywords",
|
|
9
|
-
"SHOPPING_CART": "Shopping Cart",
|
|
10
|
-
"ADD_BUTTON": "Add Button",
|
|
11
|
-
"BUTTON_TAG": "Button Tag",
|
|
12
|
-
"ADD_TAG": "Add Tag",
|
|
13
|
-
"LAST_CATEGORY": "Last Category",
|
|
14
|
-
"SECONDARY_CATEGORY": "Secondary Category",
|
|
15
|
-
"FIRST_CATEGORY": "First Category",
|
|
16
|
-
"ALL_CATEGORY": "All Category",
|
|
17
|
-
"HOME": "Home",
|
|
18
|
-
"ADD_CLICKABLE_AREA": "Add Clickable Area",
|
|
19
|
-
"ADD_AREA": "Add Area",
|
|
20
|
-
"CLICKABLE_AREA": "Clickable Area",
|
|
21
2
|
"VOUCHER_SUCCESS": "Voucher received successfully!",
|
|
22
3
|
"NAVIGATION_NAME": "Navigation Name",
|
|
23
4
|
"ADD_NAVIGATION": "Add Navigation",
|
|
@@ -37,8 +18,8 @@
|
|
|
37
18
|
"BACKGROUND": "Background",
|
|
38
19
|
"PLACEHOLDER": "Placeholder",
|
|
39
20
|
"FONT_STYLE": "Font Style",
|
|
40
|
-
"FONT_FAMILY": "
|
|
41
|
-
"FONT_WEIGHT": "
|
|
21
|
+
"FONT_FAMILY": "font Family",
|
|
22
|
+
"FONT_WEIGHT": "font Weight",
|
|
42
23
|
"FONT_SIZE": "Font Size",
|
|
43
24
|
"LINE_SPACING": "Line Spacing",
|
|
44
25
|
"LINE_COLOR": "Line Color",
|
|
@@ -104,6 +85,7 @@
|
|
|
104
85
|
"INPUT_FIELD": "Input Field",
|
|
105
86
|
"CONFIRMATION": "Confirmation",
|
|
106
87
|
"IMAGE_TAG": "Image Tag",
|
|
88
|
+
"BUTTON_TAG": "Button Tag",
|
|
107
89
|
"SECONDARY_BUTTON_TAG": "Secondary Button Tag",
|
|
108
90
|
"TITLE": "Title",
|
|
109
91
|
"HOVER": "Hover",
|
package/lib/locale/es/es.json
CHANGED
|
@@ -1,23 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"IMAGES": "Images",
|
|
3
|
-
"PUBLISH_TIME": "Publish Time",
|
|
4
|
-
"CONFIRM": "Confirm",
|
|
5
|
-
"PUBLISH_LATER": "Publish Later",
|
|
6
|
-
"PUBLISH_NOW": "Publish Now",
|
|
7
|
-
"SEARCH_BOX": "Search Box",
|
|
8
|
-
"PLEASE_INPUT_KEYWORDS": "Please input keywords",
|
|
9
|
-
"SHOPPING_CART": "Shopping Cart",
|
|
10
|
-
"ADD_BUTTON": "Add Button",
|
|
11
|
-
"BUTTON_TAG": "Etiqueta de botón",
|
|
12
|
-
"ADD_TAG": "Add Tag",
|
|
13
|
-
"LAST_CATEGORY": "Last Category",
|
|
14
|
-
"SECONDARY_CATEGORY": "Secondary Category",
|
|
15
|
-
"FIRST_CATEGORY": "First Category",
|
|
16
|
-
"ALL_CATEGORY": "All Category",
|
|
17
|
-
"HOME": "Home",
|
|
18
|
-
"ADD_CLICKABLE_AREA": "Add Clickable Area",
|
|
19
|
-
"ADD_AREA": "Add Area",
|
|
20
|
-
"CLICKABLE_AREA": "Clickable Area",
|
|
21
2
|
"VOUCHER_SUCCESS": "Voucher received successfully!",
|
|
22
3
|
"NAVIGATION_NAME": "Navigation Name",
|
|
23
4
|
"ADD_NAVIGATION": "Add Navigation",
|
|
@@ -104,6 +85,7 @@
|
|
|
104
85
|
"INPUT_FIELD": "Campo de entrada",
|
|
105
86
|
"CONFIRMATION": "Confirmación",
|
|
106
87
|
"IMAGE_TAG": "Etiqueta de imagen",
|
|
88
|
+
"BUTTON_TAG": "Etiqueta de botón",
|
|
107
89
|
"SECONDARY_BUTTON_TAG": "Etiqueta de botón secundario",
|
|
108
90
|
"TITLE": "Título",
|
|
109
91
|
"HOVER": "Hover",
|
package/lib/locale/id/id.json
CHANGED
|
@@ -1,23 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"IMAGES": "Images",
|
|
3
|
-
"PUBLISH_TIME": "Publish Time",
|
|
4
|
-
"CONFIRM": "Confirm",
|
|
5
|
-
"PUBLISH_LATER": "Publish Later",
|
|
6
|
-
"PUBLISH_NOW": "Publish Now",
|
|
7
|
-
"SEARCH_BOX": "Search Box",
|
|
8
|
-
"PLEASE_INPUT_KEYWORDS": "Please input keywords",
|
|
9
|
-
"SHOPPING_CART": "Shopping Cart",
|
|
10
|
-
"ADD_BUTTON": "Add Button",
|
|
11
|
-
"BUTTON_TAG": "Button Tag",
|
|
12
|
-
"ADD_TAG": "Add Tag",
|
|
13
|
-
"LAST_CATEGORY": "Last Category",
|
|
14
|
-
"SECONDARY_CATEGORY": "Secondary Category",
|
|
15
|
-
"FIRST_CATEGORY": "First Category",
|
|
16
|
-
"ALL_CATEGORY": "All Category",
|
|
17
|
-
"HOME": "Home",
|
|
18
|
-
"ADD_CLICKABLE_AREA": "Add Clickable Area",
|
|
19
|
-
"ADD_AREA": "Add Area",
|
|
20
|
-
"CLICKABLE_AREA": "Clickable Area",
|
|
21
2
|
"VOUCHER_SUCCESS": "Voucher received successfully!",
|
|
22
3
|
"NAVIGATION_NAME": "Navigation Name",
|
|
23
4
|
"ADD_NAVIGATION": "Add Navigation",
|
|
@@ -37,8 +18,8 @@
|
|
|
37
18
|
"BACKGROUND": "Background",
|
|
38
19
|
"PLACEHOLDER": "Placeholder",
|
|
39
20
|
"FONT_STYLE": "Font Style",
|
|
40
|
-
"FONT_FAMILY": "
|
|
41
|
-
"FONT_WEIGHT": "
|
|
21
|
+
"FONT_FAMILY": "font Family",
|
|
22
|
+
"FONT_WEIGHT": "font Weight",
|
|
42
23
|
"FONT_SIZE": "Font Size",
|
|
43
24
|
"LINE_SPACING": "Line Spacing",
|
|
44
25
|
"LINE_COLOR": "Line Color",
|
|
@@ -104,6 +85,7 @@
|
|
|
104
85
|
"INPUT_FIELD": "Input Field",
|
|
105
86
|
"CONFIRMATION": "Confirmation",
|
|
106
87
|
"IMAGE_TAG": "Image Tag",
|
|
88
|
+
"BUTTON_TAG": "Button Tag",
|
|
107
89
|
"SECONDARY_BUTTON_TAG": "Secondary Button Tag",
|
|
108
90
|
"TITLE": "Title",
|
|
109
91
|
"HOVER": "Hover",
|
|
@@ -11,7 +11,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _businessUtil = require("../../../utils/businessUtil");
|
|
15
15
|
|
|
16
16
|
var _coreUtil = require("../../../utils/coreUtil");
|
|
17
17
|
|
|
@@ -88,9 +88,19 @@ function (_super) {
|
|
|
88
88
|
_this.state = {
|
|
89
89
|
hover: false
|
|
90
90
|
};
|
|
91
|
+
/** 备份历史数据 比对不一致时渲染 */
|
|
92
|
+
|
|
93
|
+
_this.preData = '';
|
|
91
94
|
return _this;
|
|
92
95
|
}
|
|
93
96
|
|
|
97
|
+
Button.prototype.shouldComponentUpdate = function (nextProps) {
|
|
98
|
+
var should1 = JSON.stringify(nextProps.data) != this.preData;
|
|
99
|
+
var should2 = window.magicDesign.device != this.preDevice;
|
|
100
|
+
var result = should1 || should2;
|
|
101
|
+
return result;
|
|
102
|
+
};
|
|
103
|
+
|
|
94
104
|
Button.prototype.render = function () {
|
|
95
105
|
var _this = this;
|
|
96
106
|
|
|
@@ -98,7 +108,8 @@ function (_super) {
|
|
|
98
108
|
|
|
99
109
|
var _b = this.props,
|
|
100
110
|
data = _b.data,
|
|
101
|
-
className = _b.className
|
|
111
|
+
className = _b.className,
|
|
112
|
+
readonly = _b.readonly;
|
|
102
113
|
var hover = this.state.hover;
|
|
103
114
|
this.preData = JSON.stringify(data);
|
|
104
115
|
this.preDevice = window.magicDesign.device;
|
|
@@ -111,14 +122,6 @@ function (_super) {
|
|
|
111
122
|
fontSize: window.magicDesign.device == 'pc' ? data.buttonText.pcFontSize : data.buttonText.fontSize
|
|
112
123
|
});
|
|
113
124
|
|
|
114
|
-
if (data.spacing) {
|
|
115
|
-
if (window.magicDesign.device == 'pc') {
|
|
116
|
-
style = __assign(__assign({}, style), data.spacing.pc);
|
|
117
|
-
} else {
|
|
118
|
-
style = __assign(__assign({}, style), data.spacing.mobile);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
125
|
var iconUrl = data.buttonIcon.iconUrl;
|
|
123
126
|
var iconLayout = data.buttonIcon.layout;
|
|
124
127
|
|
|
@@ -134,6 +137,22 @@ function (_super) {
|
|
|
134
137
|
iconLayout = data.hover.buttonIcon.layout;
|
|
135
138
|
}
|
|
136
139
|
|
|
140
|
+
var btnText = /*#__PURE__*/_react["default"].createElement("span", {
|
|
141
|
+
className: "item",
|
|
142
|
+
contentEditable: (0, _coreUtil.isDesignMode)() && !readonly,
|
|
143
|
+
onInput: function onInput(e) {
|
|
144
|
+
var text = e.target.textContent;
|
|
145
|
+
data.text = text;
|
|
146
|
+
/** 主动更新历史数据避免render */
|
|
147
|
+
|
|
148
|
+
_this.preData = JSON.stringify(__assign(__assign({}, JSON.parse(_this.preData)), {
|
|
149
|
+
text: text
|
|
150
|
+
}));
|
|
151
|
+
},
|
|
152
|
+
suppressContentEditableWarning: true
|
|
153
|
+
}, data.text);
|
|
154
|
+
|
|
155
|
+
var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
|
|
137
156
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
157
|
className: (0, _classnames["default"])('m-meta-button', className),
|
|
139
158
|
onClick: function onClick() {
|
|
@@ -149,16 +168,16 @@ function (_super) {
|
|
|
149
168
|
hover: false
|
|
150
169
|
});
|
|
151
170
|
},
|
|
152
|
-
style: __assign({}, style)
|
|
171
|
+
style: __assign(__assign({}, style), wrapStyle)
|
|
153
172
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
173
|
className: (0, _classnames["default"])('btnContent', {
|
|
155
174
|
horizontal: iconLayout === 'left' || iconLayout === 'right'
|
|
156
175
|
})
|
|
157
|
-
}, (iconLayout === 'right' || iconLayout === 'bottom') &&
|
|
176
|
+
}, (iconLayout === 'right' || iconLayout === 'bottom') && btnText, iconUrl && /*#__PURE__*/_react["default"].createElement("img", {
|
|
158
177
|
alt: "",
|
|
159
|
-
className: "
|
|
178
|
+
className: "item",
|
|
160
179
|
src: iconUrl
|
|
161
|
-
}), (iconLayout === 'left' || iconLayout === 'top') &&
|
|
180
|
+
}), (iconLayout === 'left' || iconLayout === 'top') && btnText));
|
|
162
181
|
};
|
|
163
182
|
|
|
164
183
|
Button.defaultProps = {
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
transition: all 0.25s;
|
|
3
3
|
|
|
4
4
|
.btnContent {
|
|
5
|
-
width: 100%;
|
|
6
5
|
cursor: pointer;
|
|
7
|
-
display: flex;
|
|
6
|
+
display: inline-flex;
|
|
8
7
|
align-items: center;
|
|
9
8
|
justify-content: center;
|
|
10
9
|
flex-direction: column;
|
|
@@ -15,7 +14,7 @@
|
|
|
15
14
|
|
|
16
15
|
img {
|
|
17
16
|
height: 20px;
|
|
18
|
-
margin:
|
|
17
|
+
margin-right: 5px;
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
20
|
}
|
|
@@ -11,10 +11,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
-
var _h5DefImg = _interopRequireDefault(require("./image/h5DefImg.png"));
|
|
15
|
-
|
|
16
|
-
var _pcDefImg = _interopRequireDefault(require("./image/pcDefImg.png"));
|
|
17
|
-
|
|
18
14
|
var _coreUtil = require("../../../utils/coreUtil");
|
|
19
15
|
|
|
20
16
|
var _decorator = require("../../../decorator");
|
|
@@ -67,11 +63,9 @@ function (_super) {
|
|
|
67
63
|
function Image() {
|
|
68
64
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
69
65
|
|
|
70
|
-
_this.imgRef = /*#__PURE__*/_react["default"].createRef();
|
|
71
66
|
_this.state = {
|
|
72
67
|
// 当仅作为一个图片时,鼠标移上去,hover状态
|
|
73
|
-
hoverImgSrc: false
|
|
74
|
-
scale: 1
|
|
68
|
+
hoverImgSrc: false
|
|
75
69
|
};
|
|
76
70
|
|
|
77
71
|
_this.getStyle = function () {
|
|
@@ -80,7 +74,6 @@ function (_super) {
|
|
|
80
74
|
hoverState = _a.hoverState,
|
|
81
75
|
maxHeight = _a.maxHeight,
|
|
82
76
|
maxWidth = _a.maxWidth,
|
|
83
|
-
minHeight = _a.minHeight,
|
|
84
77
|
minWidth = _a.minWidth,
|
|
85
78
|
limitWidthHeight = _a.limitWidthHeight,
|
|
86
79
|
scale = _a.scale;
|
|
@@ -89,21 +82,17 @@ function (_super) {
|
|
|
89
82
|
|
|
90
83
|
if (data.hover.open && data.hover.backgroundType === 'enlarge' && (hoverState || hoverImgSrc)) {
|
|
91
84
|
// return { transform: `scale(${data.hover.magnification})` };
|
|
92
|
-
obj.transform = "scale(" + data.hover.magnification + ")";
|
|
85
|
+
obj.transform = "scale(" + data.hover.magnification / 2 + ")";
|
|
93
86
|
}
|
|
94
87
|
|
|
95
88
|
if (maxHeight) {
|
|
96
89
|
obj.maxHeight = maxHeight;
|
|
97
90
|
}
|
|
98
91
|
|
|
99
|
-
if (maxWidth
|
|
92
|
+
if (maxWidth) {
|
|
100
93
|
obj.maxWidth = maxWidth;
|
|
101
94
|
}
|
|
102
95
|
|
|
103
|
-
if (minHeight) {
|
|
104
|
-
obj.minHeight = minHeight;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
96
|
if (minWidth) {
|
|
108
97
|
obj.minWidth = minWidth;
|
|
109
98
|
}
|
|
@@ -155,8 +144,6 @@ function (_super) {
|
|
|
155
144
|
}
|
|
156
145
|
|
|
157
146
|
Image.prototype.render = function () {
|
|
158
|
-
var _this = this;
|
|
159
|
-
|
|
160
147
|
var _a, _b;
|
|
161
148
|
|
|
162
149
|
var _c = this.props,
|
|
@@ -174,13 +161,11 @@ function (_super) {
|
|
|
174
161
|
|
|
175
162
|
if (window.magicDesign.isShop && (srcImg === null || srcImg === void 0 ? void 0 : srcImg.includes('ecommerce/static'))) {
|
|
176
163
|
srcImg = srcImg.replace('ecommerce/static', 'static');
|
|
177
|
-
}
|
|
164
|
+
} // if (!srcImg) {
|
|
165
|
+
// srcImg = defaultImg;
|
|
166
|
+
// }
|
|
178
167
|
|
|
179
|
-
if (!srcImg) {
|
|
180
|
-
srcImg = (0, _coreUtil.isPc)() ? _pcDefImg["default"] : _h5DefImg["default"];
|
|
181
|
-
}
|
|
182
168
|
|
|
183
|
-
var areas = data.content.openHotArea && ((0, _coreUtil.isPc)() ? data.content.pcAreas : data.content.h5Areas);
|
|
184
169
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
185
170
|
className: (0, _classnames["default"])('m-meta-image', {
|
|
186
171
|
backgroundImg: isBackground
|
|
@@ -188,36 +173,12 @@ function (_super) {
|
|
|
188
173
|
onClick: function onClick() {
|
|
189
174
|
(0, _coreUtil.clickUrl)(data.content.clickUrl);
|
|
190
175
|
}
|
|
191
|
-
}, srcImg && /*#__PURE__*/_react["default"].createElement(
|
|
192
|
-
ref: this.imgRef,
|
|
193
|
-
onLoad: function onLoad() {
|
|
194
|
-
var scale = _this.imgRef.current.clientWidth / 600;
|
|
195
|
-
|
|
196
|
-
_this.setState({
|
|
197
|
-
scale: scale
|
|
198
|
-
});
|
|
199
|
-
},
|
|
176
|
+
}, srcImg && /*#__PURE__*/_react["default"].createElement("img", {
|
|
200
177
|
onMouseEnter: this.mouseEnterImg,
|
|
201
178
|
onMouseLeave: this.mouseLeaveImg,
|
|
202
179
|
src: srcImg,
|
|
203
180
|
style: this.getStyle()
|
|
204
|
-
})
|
|
205
|
-
var aStyle = {
|
|
206
|
-
position: 'absolute',
|
|
207
|
-
top: parseInt(v.y * _this.state.scale),
|
|
208
|
-
left: parseInt(v.x * _this.state.scale),
|
|
209
|
-
width: parseInt(v.width * _this.state.scale),
|
|
210
|
-
height: parseInt(v.height * _this.state.scale)
|
|
211
|
-
};
|
|
212
|
-
return /*#__PURE__*/_react["default"].createElement("a", {
|
|
213
|
-
key: i,
|
|
214
|
-
onClick: function onClick(e) {
|
|
215
|
-
e.stopPropagation();
|
|
216
|
-
(0, _coreUtil.clickUrl)(v.inputVal);
|
|
217
|
-
},
|
|
218
|
-
style: aStyle
|
|
219
|
-
});
|
|
220
|
-
})));
|
|
181
|
+
}));
|
|
221
182
|
};
|
|
222
183
|
|
|
223
184
|
Image.defaultProps = {
|
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
.m-meta-image {
|
|
2
|
-
position: relative;
|
|
3
2
|
width: 100%;
|
|
4
3
|
height: 100%;
|
|
5
4
|
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
6
|
justify-content: center;
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
&>img {
|
|
9
9
|
width: 100%;
|
|
10
10
|
height: 100%;
|
|
11
|
-
|
|
11
|
+
object-fit: contain;
|
|
12
12
|
transition: all .2s linear;
|
|
13
13
|
vertical-align: initial;
|
|
14
|
-
max-width: 100%;
|
|
15
|
-
object-fit: contain;
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
&.backgroundImg {
|
|
19
17
|
&>img {
|
|
20
18
|
object-fit: cover;
|
|
21
|
-
// width: auto;
|
|
22
|
-
max-width: none;
|
|
23
19
|
}
|
|
24
20
|
}
|
|
25
21
|
}
|
|
@@ -17,6 +17,8 @@ var _Iconfont = require("../../../common/Iconfont");
|
|
|
17
17
|
|
|
18
18
|
var _decorator = require("../../../decorator");
|
|
19
19
|
|
|
20
|
+
var _businessUtil = require("../../../utils/businessUtil");
|
|
21
|
+
|
|
20
22
|
var _coreUtil = require("../../../utils/coreUtil");
|
|
21
23
|
|
|
22
24
|
var _mobx = require("../../../mobx");
|
|
@@ -102,7 +104,7 @@ var contentStyle = function contentStyle(content) {
|
|
|
102
104
|
color: content.color,
|
|
103
105
|
backgroundColor: content.backgroundColor,
|
|
104
106
|
textAlign: content.textAlign,
|
|
105
|
-
width: '100%'
|
|
107
|
+
width: window.magicDesign.device == 'mobile' ? '100%' : content.width || 'fit-content'
|
|
106
108
|
};
|
|
107
109
|
};
|
|
108
110
|
/** 从父级数组中 分离出 片段数组 */
|
|
@@ -256,8 +258,7 @@ var initSelectionEvent = function initSelectionEvent() {
|
|
|
256
258
|
}
|
|
257
259
|
|
|
258
260
|
findSelectionTarget.refresh();
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
+
}
|
|
261
262
|
|
|
262
263
|
triggerTextConfigRender();
|
|
263
264
|
}, 500);
|
|
@@ -341,15 +342,6 @@ function (_super) {
|
|
|
341
342
|
var node = document.createElement('span');
|
|
342
343
|
node.style = (0, _commonUtil.styleStringify)(contentStyle(c.content));
|
|
343
344
|
node.innerText = (_a = data.text).slice.apply(_a, c.range);
|
|
344
|
-
|
|
345
|
-
node.onclick = function (e) {
|
|
346
|
-
if (c.content.clickUrl) {
|
|
347
|
-
e.stopPropagation();
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
(0, _coreUtil.clickUrl)(c.content.clickUrl);
|
|
351
|
-
};
|
|
352
|
-
|
|
353
345
|
_this.selectionRefMap[JSON.stringify(c.range)] = node;
|
|
354
346
|
|
|
355
347
|
_this.textRef.current.appendChild(node);
|
|
@@ -439,37 +431,18 @@ function (_super) {
|
|
|
439
431
|
className = _a.className,
|
|
440
432
|
readonly = _a.readonly,
|
|
441
433
|
onTextInput = _a.onTextInput;
|
|
442
|
-
var style = contentStyle(data.content);
|
|
443
|
-
|
|
444
|
-
if (data.underline) {
|
|
445
|
-
style = __assign(__assign({}, style), {
|
|
446
|
-
textDecorationLine: data.underline.open ? 'underline' : 'none',
|
|
447
|
-
textDecorationColor: data.underline.textDecorationColor,
|
|
448
|
-
textDecorationStyle: data.underline.textDecorationStyle
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
if (data === null || data === void 0 ? void 0 : data.spacing) {
|
|
453
|
-
if ((0, _coreUtil.isPc)()) {
|
|
454
|
-
style = __assign(__assign({}, style), data.spacing.pc);
|
|
455
|
-
} else {
|
|
456
|
-
style = __assign(__assign({}, style), data.spacing.mobile);
|
|
457
|
-
}
|
|
458
|
-
} // const style: React.CSSProperties = {
|
|
459
|
-
// ...contentStyle(data.content),
|
|
460
|
-
// textDecorationLine: data?.underline.open ? 'underline' : 'none',
|
|
461
|
-
// textDecorationColor: data?.underline.textDecorationColor,
|
|
462
|
-
// textDecorationStyle: data?.underline.textDecorationStyle,
|
|
463
|
-
// };
|
|
464
434
|
|
|
435
|
+
var style = __assign(__assign({}, contentStyle(data.content)), {
|
|
436
|
+
textDecorationLine: data.underline.open ? 'underline' : 'none',
|
|
437
|
+
textDecorationColor: data.underline.textDecorationColor,
|
|
438
|
+
textDecorationStyle: data.underline.textDecorationStyle
|
|
439
|
+
});
|
|
465
440
|
|
|
441
|
+
var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
|
|
466
442
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
467
443
|
ref: this.textRef,
|
|
468
444
|
className: (0, _classnames["default"])('m-meta-text', className),
|
|
469
445
|
contentEditable: (0, _coreUtil.isDesignMode)() && !readonly,
|
|
470
|
-
onClick: function onClick() {
|
|
471
|
-
(0, _coreUtil.clickUrl)(data.content.clickUrl);
|
|
472
|
-
},
|
|
473
446
|
onInput: function onInput(e) {
|
|
474
447
|
var text = e.target.textContent;
|
|
475
448
|
data.text = text;
|
|
@@ -488,7 +461,7 @@ function (_super) {
|
|
|
488
461
|
onKeyDown: function onKeyDown(e) {
|
|
489
462
|
e.stopPropagation();
|
|
490
463
|
},
|
|
491
|
-
style: __assign({}, style),
|
|
464
|
+
style: __assign(__assign({}, style), wrapStyle),
|
|
492
465
|
suppressContentEditableWarning: true
|
|
493
466
|
});
|
|
494
467
|
};
|
|
@@ -48,6 +48,14 @@ function (_super) {
|
|
|
48
48
|
|
|
49
49
|
function BaseConfig() {
|
|
50
50
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
51
|
+
/**
|
|
52
|
+
*重新渲染展示区域
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
_this.reRenderViewArea = function () {
|
|
57
|
+
(0, _coreUtil.renderPreview)();
|
|
58
|
+
};
|
|
51
59
|
/**
|
|
52
60
|
* 重新渲染一级配置面板
|
|
53
61
|
*/
|
|
@@ -59,16 +67,10 @@ function (_super) {
|
|
|
59
67
|
*/
|
|
60
68
|
|
|
61
69
|
|
|
62
|
-
_this.selfRender = function (
|
|
63
|
-
var changeHistory = true;
|
|
64
|
-
|
|
65
|
-
if (data && data.type === 'text-render') {
|
|
66
|
-
changeHistory = false;
|
|
67
|
-
}
|
|
68
|
-
|
|
70
|
+
_this.selfRender = function () {
|
|
69
71
|
_this.setState({});
|
|
70
72
|
|
|
71
|
-
|
|
73
|
+
_this.reRenderViewArea();
|
|
72
74
|
};
|
|
73
75
|
|
|
74
76
|
return _this;
|
|
@@ -157,7 +157,7 @@ function (_super) {
|
|
|
157
157
|
return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
158
158
|
value: sizeType.key
|
|
159
159
|
}, sizeType.key);
|
|
160
|
-
}))),
|
|
160
|
+
}))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
161
161
|
title: (0, _locale.i18n)('FONT_FAMILY')
|
|
162
162
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
163
163
|
onChange: function onChange(v) {
|
|
@@ -191,7 +191,7 @@ function (_super) {
|
|
|
191
191
|
value: {
|
|
192
192
|
count: data[fontSizeKey]
|
|
193
193
|
}
|
|
194
|
-
}))
|
|
194
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
195
195
|
title: ""
|
|
196
196
|
}, /*#__PURE__*/_react["default"].createElement(_common.FontStyles, {
|
|
197
197
|
onChange: function onChange(value) {
|
|
@@ -301,6 +301,7 @@ function (_super) {
|
|
|
301
301
|
name: (0, _locale.i18n)('SPACING'),
|
|
302
302
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
303
303
|
configCompSpace: false,
|
|
304
|
+
configPaddingLR: true,
|
|
304
305
|
data: data.spacing
|
|
305
306
|
})
|
|
306
307
|
}];
|