@fonixtree/magic-design 0.0.110 → 0.0.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/fonts/magic-box-iconfont.css +28 -12
- package/es/assets/fonts/magic-box-iconfont.css.bak +28 -12
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/es/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/es/assets/images/layout-icon/layout-video-h5-1.png +0 -0
- package/es/assets/images/layout-icon/layout-video-h5-2.png +0 -0
- package/es/assets/images/layout-icon/layout-video-h5-3.png +0 -0
- package/es/assets/images/layout-icon/layout-video-pc-1.png +0 -0
- package/es/assets/images/layout-icon/layout-video-pc-2.png +0 -0
- package/es/assets/images/layout-icon/layout-video-pc-3.png +0 -0
- package/es/assets/images/layout-icon/layout-video-pc-4.png +0 -0
- package/es/assets/images/layout-icon/layout-video-pc-5.png +0 -0
- package/es/assets/images/layout-icon/walletLayout1.png +0 -0
- package/es/assets/less/button.less +23 -0
- package/es/assets/less/common.less +2 -2
- package/es/assets/less/datepicker.less +11 -0
- package/es/assets/less/index.less +2 -1
- package/es/assets/less/modal.less +7 -2
- package/es/common/Button/index.js +2 -1
- package/es/common/Button/index.less +5 -0
- package/es/common/ButtonIconLayout/index.less +4 -2
- package/es/common/Carousel/index.js +71 -0
- package/es/common/Carousel/index.less +0 -0
- package/es/common/Collapse/index.js +14 -4
- package/es/common/Field/index.less +1 -1
- package/es/common/FontStyles/index.less +1 -1
- package/es/common/GroupList/index.js +4 -3
- package/es/common/ImageModal/index.js +34 -29
- package/es/common/ImageModal/index.less +6 -1
- package/es/common/ImgArea/components/Crop.js +267 -0
- package/es/common/ImgArea/components/Icons.js +44 -0
- package/es/common/ImgArea/components/MultiCrops.js +210 -0
- package/es/common/ImgArea/index.js +11 -0
- package/es/common/LinkModal/BundleCampaign/index.js +17 -17
- package/es/common/LinkModal/CustomTable/index.js +3 -2
- package/es/common/LinkModal/FilteredProductModal/index.js +7 -8
- package/es/common/LinkModal/FilteredProductModal/index.less +2 -3
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.less +1 -1
- package/es/common/MagicLink/index.js +89 -0
- package/es/common/MagicLink/index.less +0 -0
- package/es/common/ProductModal/index.js +1 -1
- package/es/common/ProductModal/index.less +12 -7
- package/es/common/SwiperBan/index.js +94 -0
- package/es/common/SwiperBan/index.less +25 -0
- package/es/common/SystemNotification/Confirm/index.js +263 -0
- package/es/common/SystemNotification/Confirm/index.less +33 -0
- package/es/common/SystemNotification/index.js +115 -0
- package/es/common/UrlPicker/index.js +6 -2
- package/es/common/UrlPicker/index.less +12 -1
- package/es/common/Video/background.png +0 -0
- package/es/common/Video/cover.png +0 -0
- package/es/common/Video/index.js +398 -0
- package/es/common/Video/index.less +46 -0
- package/es/common/VideoUpload/index.js +157 -0
- package/es/common/VideoUpload/index.less +113 -0
- package/es/common/VideoUpload/video-upload-icon.png +0 -0
- package/es/common/index.js +48 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/es/composite-comp/bol/components/Banner/mobile/index.js +48 -11
- package/es/composite-comp/bol/components/Banner/pc/index.js +50 -20
- package/es/composite-comp/bol/components/Button/defaultJSON.js +40 -70
- package/es/composite-comp/bol/components/Button/index.js +8 -14
- package/es/composite-comp/bol/components/Button/index.less +9 -9
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +16 -20
- package/es/composite-comp/bol/components/Carousel/imgs/pcDefImg1.png +0 -0
- package/es/composite-comp/bol/components/Carousel/index.js +1 -6
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +58 -38
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +25 -9
- package/es/composite-comp/bol/components/Carousel/pc/index.js +67 -34
- package/es/composite-comp/bol/components/Carousel/pc/index.less +36 -16
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +19 -10
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg1.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg2.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg3.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg4.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg5.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg1.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg2.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg3.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg4.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg5.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg6.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/index.js +5 -1
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +77 -15
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -66
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +166 -0
- package/es/composite-comp/bol/components/ImageGallery/pc/index.less +23 -0
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +57 -179
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +3 -5
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
- package/es/composite-comp/bol/components/ImageText/pc/index.js +46 -18
- package/es/composite-comp/bol/components/ImageText/pc/index.less +2 -0
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +3 -3
- package/es/composite-comp/bol/components/Newsletter/index.js +16 -8
- package/es/composite-comp/bol/components/Newsletter/index.less +1 -1
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
- package/es/composite-comp/bol/components/Tag/index.js +8 -14
- package/es/composite-comp/bol/components/Tag/index.less +1 -0
- package/es/composite-comp/bol/components/Text/defaultJSON.js +5 -7
- package/es/composite-comp/bol/components/Text/index.js +4 -8
- package/es/composite-comp/bol/components/Text/index.less +3 -3
- package/es/composite-comp/bol/components/Video/components/ShareBtn/imgs/arrow-right.png +0 -0
- package/es/composite-comp/bol/components/Video/components/ShareBtn/imgs/facebook-icon.png +0 -0
- package/es/composite-comp/bol/components/Video/components/ShareBtn/imgs/link-icon.png +0 -0
- package/es/composite-comp/bol/components/Video/components/ShareBtn/imgs/linked-in-icon.png +0 -0
- package/es/composite-comp/bol/components/Video/components/ShareBtn/imgs/twitter-icon.png +0 -0
- package/es/composite-comp/bol/components/Video/components/ShareBtn/imgs/video-share.png +0 -0
- package/es/composite-comp/bol/components/Video/components/ShareBtn/index.js +126 -0
- package/es/composite-comp/bol/components/Video/components/ShareBtn/index.less +47 -0
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +116 -0
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +76 -0
- package/es/composite-comp/bol/components/Video/defaultJSON.js +209 -0
- package/es/composite-comp/bol/components/Video/imgs/banner.png +0 -0
- package/es/composite-comp/bol/components/Video/imgs/play-circle.png +0 -0
- package/es/composite-comp/bol/components/Video/index.js +89 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +154 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +29 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +197 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +48 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +157 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +39 -0
- package/es/composite-comp/bol/components/Video/mobile/index.js +121 -0
- package/es/composite-comp/bol/components/Video/mobile/index.less +4 -0
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +161 -0
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +37 -0
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +207 -0
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +64 -0
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +157 -0
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +38 -0
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +159 -0
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +45 -0
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +159 -0
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +42 -0
- package/es/composite-comp/bol/components/Video/pc/index.js +130 -0
- package/es/composite-comp/bol/components/Video/pc/index.less +4 -0
- package/es/composite-comp/bol/components/Wallet/defaultJSON.js +224 -0
- package/es/composite-comp/bol/components/Wallet/index.js +88 -0
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +346 -0
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -0
- package/es/composite-comp/bol/components/Wallet/pc/index.js +342 -0
- package/es/composite-comp/bol/components/Wallet/pc/index.less +40 -0
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +143 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
- package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -1
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +4 -2
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +20 -4
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
- package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +143 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoConfigGroup/index.js +128 -0
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoConfigGroup/index.less +16 -0
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +122 -0
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.less +9 -0
- package/es/composite-comp/bol/config-panels/VideoConfig/index.js +166 -0
- package/es/composite-comp/bol/config-panels/{ButtonCompConfig/ButtonConfigContent → WalletConfig/WalletConfigContent}/index.js +6 -14
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigContent/index.less +0 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +150 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.less +0 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/index.js +68 -0
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
- package/es/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
- package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +6 -17
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
- package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.js +103 -0
- package/es/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +315 -0
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.less +79 -0
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +212 -0
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +7 -0
- package/es/composite-comp/common/components/ImageLabel/index.less +1 -0
- package/es/composite-comp/common/components/ProductItem/index.js +26 -6
- package/es/composite-comp/common/components/ProductItem/index.less +11 -10
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +52 -25
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +40 -29
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +67 -8
- package/es/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/es/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +24 -38
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -1
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +567 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +122 -0
- package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +136 -0
- package/es/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
- package/es/composite-comp/dito/components/PcNavigation/index.js +85 -0
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +482 -0
- package/es/composite-comp/dito/components/PcNavigation/pc/index.less +107 -0
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +33 -15
- package/es/composite-comp/dito/components/Recommend/index.js +5 -6
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +93 -72
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +11 -2
- package/es/composite-comp/dito/components/Recommend/pc/index.js +184 -53
- package/es/composite-comp/dito/components/Recommend/pc/index.less +56 -12
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +49 -20
- package/es/composite-comp/dito/components/SearchBar/imgs/xt-logo.png +0 -0
- package/es/composite-comp/dito/components/SearchBar/index.js +7 -2
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +31 -26
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +15 -3
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +149 -0
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +60 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +11 -2
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +18 -3
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +16 -51
- package/es/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
- package/es/constants/component-types.js +27 -3
- package/es/constants/index.js +54 -2
- package/es/constants/layout.js +93 -13
- package/es/core/Designer/AppointmentModal/index.js +87 -0
- package/es/core/Designer/AppointmentModal/index.less +23 -0
- package/es/core/Designer/CompListPanel/CompCard/index.js +5 -1
- package/es/core/Designer/CompListPanel/index.js +11 -36
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
- package/es/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
- package/es/core/Designer/ConfigPanel/index.js +74 -23
- package/es/core/Designer/ConfigPanel/index.less +4 -0
- package/es/core/Designer/History/index.js +34 -28
- package/es/core/Designer/PageCompList/index.js +42 -4
- package/es/core/Designer/PageCompList/index.less +10 -10
- package/es/core/Designer/QuickMenuBar/index.js +38 -4
- package/es/core/Designer/QuickMenuBar/index.less +34 -0
- package/es/core/Designer/ViewArea/index.js +48 -8
- package/es/core/Designer/ViewArea/index.less +40 -4
- package/es/core/Designer/index.js +93 -41
- package/es/core/Renderer/index.js +23 -5
- package/es/decorator/compositeDecorator.js +149 -17
- package/es/decorator/index.js +8 -0
- package/es/decorator/metaDecorator.js +41 -8
- package/es/decorator/updateConfigDecorator.js +76 -0
- package/es/locale/en/en.json +33 -4
- package/es/locale/es/es.json +31 -2
- package/es/locale/id/id.json +33 -4
- package/es/meta-comp/components/Button/editable.js +114 -0
- package/es/meta-comp/components/Button/editable.less +6 -0
- package/es/meta-comp/components/Button/index.js +14 -33
- package/es/meta-comp/components/Button/index.less +3 -2
- package/es/meta-comp/components/Image/image/h5DefImg.png +0 -0
- package/es/meta-comp/components/Image/image/h5Img.png +0 -0
- package/es/meta-comp/components/Image/image/pcDefImg.png +0 -0
- package/es/meta-comp/components/Image/image/pcImg.png +0 -0
- package/es/meta-comp/components/Image/index.js +47 -8
- package/es/meta-comp/components/Image/index.less +7 -3
- package/es/meta-comp/components/Text/index.js +38 -11
- package/es/meta-comp/config-panels/BaseConfig.js +8 -10
- package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -3
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +23 -6
- package/es/meta-comp/config-panels/TextConfig/index.js +16 -7
- package/es/mobx/Frame.js +64 -0
- package/es/mobx/Store.js +9 -10
- package/es/mobx/index.js +9 -3
- package/es/utils/businessUtil.js +3 -3
- package/es/utils/commonUtil.js +26 -2
- package/es/utils/coreUtil.js +15 -2
- package/lib/assets/fonts/magic-box-iconfont.css +28 -12
- package/lib/assets/fonts/magic-box-iconfont.css.bak +28 -12
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/lib/assets/images/layout-icon/layout-navigation-normal.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-h5-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-h5-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-h5-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-pc-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-pc-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-pc-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-pc-4.png +0 -0
- package/lib/assets/images/layout-icon/layout-video-pc-5.png +0 -0
- package/lib/assets/images/layout-icon/walletLayout1.png +0 -0
- package/lib/assets/less/button.less +23 -0
- package/lib/assets/less/common.less +2 -2
- package/lib/assets/less/datepicker.less +11 -0
- package/lib/assets/less/index.less +2 -1
- package/lib/assets/less/modal.less +7 -2
- package/lib/common/Button/index.js +2 -1
- package/lib/common/Button/index.less +5 -0
- package/lib/common/ButtonIconLayout/index.less +4 -2
- package/lib/common/Carousel/index.js +71 -0
- package/lib/common/Carousel/index.less +0 -0
- package/lib/common/Collapse/index.js +14 -4
- package/lib/common/Field/index.less +1 -1
- package/lib/common/FontStyles/index.less +1 -1
- package/lib/common/GroupList/index.js +4 -3
- package/lib/common/ImageModal/index.js +34 -29
- package/lib/common/ImageModal/index.less +6 -1
- package/lib/common/ImgArea/components/Crop.js +267 -0
- package/lib/common/ImgArea/components/Icons.js +44 -0
- package/lib/common/ImgArea/components/MultiCrops.js +210 -0
- package/lib/common/ImgArea/index.js +11 -0
- package/lib/common/LinkModal/BundleCampaign/index.js +17 -17
- package/lib/common/LinkModal/CustomTable/index.js +3 -2
- package/lib/common/LinkModal/FilteredProductModal/index.js +7 -8
- package/lib/common/LinkModal/FilteredProductModal/index.less +2 -3
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.less +1 -1
- package/lib/common/MagicLink/index.js +89 -0
- package/lib/common/MagicLink/index.less +0 -0
- package/lib/common/ProductModal/index.js +1 -1
- package/lib/common/ProductModal/index.less +12 -7
- package/lib/common/SwiperBan/index.js +94 -0
- package/lib/common/SwiperBan/index.less +25 -0
- package/lib/common/SystemNotification/Confirm/index.js +263 -0
- package/lib/common/SystemNotification/Confirm/index.less +33 -0
- package/lib/common/SystemNotification/index.js +115 -0
- package/lib/common/UrlPicker/index.js +6 -2
- package/lib/common/UrlPicker/index.less +12 -1
- package/lib/common/Video/background.png +0 -0
- package/lib/common/Video/cover.png +0 -0
- package/lib/common/Video/index.js +398 -0
- package/lib/common/Video/index.less +46 -0
- package/lib/common/VideoUpload/index.js +157 -0
- package/lib/common/VideoUpload/index.less +113 -0
- package/lib/common/VideoUpload/video-upload-icon.png +0 -0
- package/lib/common/index.js +48 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +10 -10
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +48 -11
- package/lib/composite-comp/bol/components/Banner/pc/index.js +50 -20
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +40 -70
- package/lib/composite-comp/bol/components/Button/index.js +8 -14
- package/lib/composite-comp/bol/components/Button/index.less +9 -9
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +16 -20
- package/lib/composite-comp/bol/components/Carousel/imgs/pcDefImg1.png +0 -0
- package/lib/composite-comp/bol/components/Carousel/index.js +1 -6
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +58 -38
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +25 -9
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +67 -34
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +36 -16
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +19 -10
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg1.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg2.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg3.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg4.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg5.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg1.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg2.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg3.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg4.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg5.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg6.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/index.js +5 -1
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +77 -15
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -66
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +166 -0
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.less +23 -0
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +57 -179
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +3 -5
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +8 -8
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +46 -18
- package/lib/composite-comp/bol/components/ImageText/pc/index.less +2 -0
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +3 -3
- package/lib/composite-comp/bol/components/Newsletter/index.js +16 -8
- package/lib/composite-comp/bol/components/Newsletter/index.less +1 -1
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +38 -48
- package/lib/composite-comp/bol/components/Tag/index.js +8 -14
- package/lib/composite-comp/bol/components/Tag/index.less +1 -0
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +5 -7
- package/lib/composite-comp/bol/components/Text/index.js +4 -8
- package/lib/composite-comp/bol/components/Text/index.less +3 -3
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/imgs/arrow-right.png +0 -0
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/imgs/facebook-icon.png +0 -0
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/imgs/link-icon.png +0 -0
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/imgs/linked-in-icon.png +0 -0
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/imgs/twitter-icon.png +0 -0
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/imgs/video-share.png +0 -0
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/index.js +126 -0
- package/lib/composite-comp/bol/components/Video/components/ShareBtn/index.less +47 -0
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +116 -0
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +76 -0
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +209 -0
- package/lib/composite-comp/bol/components/Video/imgs/banner.png +0 -0
- package/lib/composite-comp/bol/components/Video/imgs/play-circle.png +0 -0
- package/lib/composite-comp/bol/components/Video/index.js +89 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +154 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +29 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +197 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +48 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +157 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +39 -0
- package/lib/composite-comp/bol/components/Video/mobile/index.js +121 -0
- package/lib/composite-comp/bol/components/Video/mobile/index.less +4 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +161 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +37 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +207 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +64 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +157 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +38 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +159 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +45 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +159 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +42 -0
- package/lib/composite-comp/bol/components/Video/pc/index.js +130 -0
- package/lib/composite-comp/bol/components/Video/pc/index.less +4 -0
- package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +224 -0
- package/lib/composite-comp/bol/components/Wallet/index.js +88 -0
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +346 -0
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -0
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +342 -0
- package/lib/composite-comp/bol/components/Wallet/pc/index.less +40 -0
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +143 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -3
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +4 -2
- package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +4 -2
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +20 -4
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +2 -1
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +9 -17
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +143 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +7 -4
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoConfigGroup/index.js +128 -0
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoConfigGroup/index.less +16 -0
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +122 -0
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.less +9 -0
- package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +166 -0
- package/lib/composite-comp/bol/config-panels/{ButtonCompConfig/ButtonConfigContent → WalletConfig/WalletConfigContent}/index.js +6 -14
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigContent/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +150 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +68 -0
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.js +103 -0
- package/lib/composite-comp/bol/second-config-panels/ButtonSecondConfig/index.less +3 -0
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +8 -13
- package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +6 -17
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +10 -5
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.less +8 -0
- package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.js +103 -0
- package/lib/composite-comp/bol/second-config-panels/TagSecondConfig/index.less +3 -0
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +315 -0
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.less +79 -0
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +212 -0
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +7 -0
- package/lib/composite-comp/common/components/ImageLabel/index.less +1 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +26 -6
- package/lib/composite-comp/common/components/ProductItem/index.less +11 -10
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +52 -25
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +40 -29
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +67 -8
- package/lib/composite-comp/dito/components/FlashDeal/index.js +5 -1
- package/lib/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +24 -38
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +1 -1
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +567 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +122 -0
- package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +5 -4
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +136 -0
- package/lib/composite-comp/dito/components/PcNavigation/images/menu-icon.svg +6 -0
- package/lib/composite-comp/dito/components/PcNavigation/index.js +85 -0
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +482 -0
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +107 -0
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +33 -15
- package/lib/composite-comp/dito/components/Recommend/index.js +5 -6
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +93 -72
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +11 -2
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +184 -53
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +56 -12
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +49 -20
- package/lib/composite-comp/dito/components/SearchBar/imgs/xt-logo.png +0 -0
- package/lib/composite-comp/dito/components/SearchBar/index.js +7 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +31 -26
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +15 -3
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +149 -0
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +60 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +16 -6
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +20 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +11 -2
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +129 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +128 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +222 -0
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +194 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +18 -3
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +140 -0
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +16 -51
- package/lib/composite-comp/dito/second-config-panels/PcNavigationSecondConfig/index.js +102 -0
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +80 -49
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +13 -1
- package/lib/constants/component-types.js +27 -3
- package/lib/constants/index.js +54 -2
- package/lib/constants/layout.js +93 -13
- package/lib/core/Designer/AppointmentModal/index.js +87 -0
- package/lib/core/Designer/AppointmentModal/index.less +23 -0
- package/lib/core/Designer/CompListPanel/CompCard/index.js +5 -1
- package/lib/core/Designer/CompListPanel/index.js +11 -36
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +73 -0
- package/lib/core/Designer/ConfigPanel/TerminalSelect/index.less +29 -0
- package/lib/core/Designer/ConfigPanel/index.js +74 -23
- package/lib/core/Designer/ConfigPanel/index.less +4 -0
- package/lib/core/Designer/History/index.js +34 -28
- package/lib/core/Designer/PageCompList/index.js +42 -4
- package/lib/core/Designer/PageCompList/index.less +10 -10
- package/lib/core/Designer/QuickMenuBar/index.js +38 -4
- package/lib/core/Designer/QuickMenuBar/index.less +34 -0
- package/lib/core/Designer/ViewArea/index.js +48 -8
- package/lib/core/Designer/ViewArea/index.less +40 -4
- package/lib/core/Designer/index.js +93 -41
- package/lib/core/Renderer/index.js +23 -5
- package/lib/decorator/compositeDecorator.js +149 -17
- package/lib/decorator/index.js +8 -0
- package/lib/decorator/metaDecorator.js +41 -8
- package/lib/decorator/updateConfigDecorator.js +76 -0
- package/lib/locale/en/en.json +33 -4
- package/lib/locale/es/es.json +31 -2
- package/lib/locale/id/id.json +33 -4
- package/lib/meta-comp/components/Button/editable.js +114 -0
- package/lib/meta-comp/components/Button/editable.less +6 -0
- package/lib/meta-comp/components/Button/index.js +14 -33
- package/lib/meta-comp/components/Button/index.less +3 -2
- package/lib/meta-comp/components/Image/image/h5DefImg.png +0 -0
- package/lib/meta-comp/components/Image/image/h5Img.png +0 -0
- package/lib/meta-comp/components/Image/image/pcDefImg.png +0 -0
- package/lib/meta-comp/components/Image/image/pcImg.png +0 -0
- package/lib/meta-comp/components/Image/index.js +47 -8
- package/lib/meta-comp/components/Image/index.less +7 -3
- package/lib/meta-comp/components/Text/index.js +38 -11
- package/lib/meta-comp/config-panels/BaseConfig.js +8 -10
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -3
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +133 -0
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +23 -6
- package/lib/meta-comp/config-panels/TextConfig/index.js +16 -7
- package/lib/mobx/Frame.js +64 -0
- package/lib/mobx/Store.js +9 -10
- package/lib/mobx/index.js +9 -3
- package/lib/utils/businessUtil.js +3 -3
- package/lib/utils/commonUtil.js +26 -2
- package/lib/utils/coreUtil.js +15 -2
- package/package.json +5 -3
|
@@ -23,6 +23,10 @@ var _Button = _interopRequireDefault(require("../composite-comp/bol/components/B
|
|
|
23
23
|
|
|
24
24
|
var _Tag = _interopRequireDefault(require("../composite-comp/bol/components/Tag"));
|
|
25
25
|
|
|
26
|
+
var _Video = _interopRequireDefault(require("../composite-comp/bol/components/Video"));
|
|
27
|
+
|
|
28
|
+
var _Wallet = _interopRequireDefault(require("../composite-comp/bol/components/Wallet"));
|
|
29
|
+
|
|
26
30
|
var _FlashDeal = _interopRequireDefault(require("../composite-comp/dito/components/FlashDeal"));
|
|
27
31
|
|
|
28
32
|
var _SearchBar = _interopRequireDefault(require("../composite-comp/dito/components/SearchBar"));
|
|
@@ -31,6 +35,8 @@ var _Recommend = _interopRequireDefault(require("../composite-comp/dito/componen
|
|
|
31
35
|
|
|
32
36
|
var _MobileNavigation = _interopRequireDefault(require("../composite-comp/dito/components/MobileNavigation"));
|
|
33
37
|
|
|
38
|
+
var _PcNavigation = _interopRequireDefault(require("../composite-comp/dito/components/PcNavigation"));
|
|
39
|
+
|
|
34
40
|
var _BannerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/BannerConfig"));
|
|
35
41
|
|
|
36
42
|
var _DividerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/DividerConfig"));
|
|
@@ -49,6 +55,10 @@ var _ButtonCompConfig = _interopRequireDefault(require("../composite-comp/bol/co
|
|
|
49
55
|
|
|
50
56
|
var _TagCompConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/TagCompConfig"));
|
|
51
57
|
|
|
58
|
+
var _VideoConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/VideoConfig"));
|
|
59
|
+
|
|
60
|
+
var _WalletConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/WalletConfig"));
|
|
61
|
+
|
|
52
62
|
var _FlashDealConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/FlashDealConfig"));
|
|
53
63
|
|
|
54
64
|
var _SearchBarConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/SearchBarConfig"));
|
|
@@ -57,6 +67,8 @@ var _RecommendConfig = _interopRequireDefault(require("../composite-comp/dito/co
|
|
|
57
67
|
|
|
58
68
|
var _MobileNavigationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/MobileNavigationConfig"));
|
|
59
69
|
|
|
70
|
+
var _PcNavigationConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/PcNavigationConfig"));
|
|
71
|
+
|
|
60
72
|
var _BannerSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/BannerSecondConfig"));
|
|
61
73
|
|
|
62
74
|
var _TextSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TextSecondConfig"));
|
|
@@ -65,10 +77,22 @@ var _ImageTextSecondConfig = _interopRequireDefault(require("../composite-comp/b
|
|
|
65
77
|
|
|
66
78
|
var _CarouselSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/CarouselSecondConfig"));
|
|
67
79
|
|
|
80
|
+
var _ImageGallerySecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/ImageGallerySecondConfig"));
|
|
81
|
+
|
|
82
|
+
var _TagSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TagSecondConfig"));
|
|
83
|
+
|
|
84
|
+
var _ButtonSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/ButtonSecondConfig"));
|
|
85
|
+
|
|
86
|
+
var _VideoSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/VideoSecondConfig"));
|
|
87
|
+
|
|
88
|
+
var _WalletSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/WalletSecondConfig"));
|
|
89
|
+
|
|
68
90
|
var _RecommendSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/RecommendSecondConfig"));
|
|
69
91
|
|
|
70
92
|
var _MobileNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/MobileNavigationSecondConfig"));
|
|
71
93
|
|
|
94
|
+
var _PcNavigationSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/PcNavigationSecondConfig"));
|
|
95
|
+
|
|
72
96
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
73
97
|
|
|
74
98
|
var _a, _b, _c; // 组件
|
|
@@ -77,17 +101,17 @@ var _a, _b, _c; // 组件
|
|
|
77
101
|
/**
|
|
78
102
|
* 渲染组件索引
|
|
79
103
|
*/
|
|
80
|
-
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a);
|
|
104
|
+
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a);
|
|
81
105
|
/**
|
|
82
106
|
* 一级配置面板索引
|
|
83
107
|
*/
|
|
84
108
|
|
|
85
109
|
exports.componentMap = componentMap;
|
|
86
|
-
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b);
|
|
110
|
+
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b);
|
|
87
111
|
/**
|
|
88
112
|
* 二级配置面板索引
|
|
89
113
|
*/
|
|
90
114
|
|
|
91
115
|
exports.configPanelMap = configPanelMap;
|
|
92
|
-
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c);
|
|
116
|
+
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c);
|
|
93
117
|
exports.secondConfigPanelMap = secondConfigPanelMap;
|
package/lib/constants/index.js
CHANGED
|
@@ -3,11 +3,36 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.urlType = exports.respCodeMap = exports.quickMenuCode = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.deviceTypeMap = exports.compInfoMap = exports.STORAGE_KEY = void 0;
|
|
6
|
+
exports.urlType = exports.respCodeMap = exports.quickMenuCode = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.eventType = exports.deviceTypeWidthMap = exports.deviceTypeMap = exports.compInfoMap = exports.STORAGE_KEY = exports.CREDIT_STATE = void 0;
|
|
7
7
|
var STORAGE_KEY = {
|
|
8
8
|
LOCALE: 'magicLocale'
|
|
9
9
|
};
|
|
10
|
+
/** 授信状态 */
|
|
11
|
+
|
|
10
12
|
exports.STORAGE_KEY = STORAGE_KEY;
|
|
13
|
+
var CREDIT_STATE = {
|
|
14
|
+
INITIAL: {
|
|
15
|
+
KEY: 'Initial',
|
|
16
|
+
VALUE: '初始化'
|
|
17
|
+
},
|
|
18
|
+
REVIEWING: {
|
|
19
|
+
KEY: 'Reviewing',
|
|
20
|
+
VALUE: '审核中'
|
|
21
|
+
},
|
|
22
|
+
APPROVED: {
|
|
23
|
+
KEY: 'Pass',
|
|
24
|
+
VALUE: '成功'
|
|
25
|
+
},
|
|
26
|
+
REJECTED: {
|
|
27
|
+
KEY: 'Rejected',
|
|
28
|
+
VALUE: '拒绝'
|
|
29
|
+
},
|
|
30
|
+
LOCKED: {
|
|
31
|
+
KEY: 'Locked',
|
|
32
|
+
VALUE: '锁定'
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.CREDIT_STATE = CREDIT_STATE;
|
|
11
36
|
var urlType = {
|
|
12
37
|
PRODUCT_DETAIL: 'proDetail',
|
|
13
38
|
CATG_PROD_LIST: 'catg',
|
|
@@ -27,6 +52,11 @@ var deviceTypeMap = {
|
|
|
27
52
|
PHONE: 'mobile'
|
|
28
53
|
};
|
|
29
54
|
exports.deviceTypeMap = deviceTypeMap;
|
|
55
|
+
var deviceTypeWidthMap = {
|
|
56
|
+
pc: 1240,
|
|
57
|
+
mobile: 375
|
|
58
|
+
};
|
|
59
|
+
exports.deviceTypeWidthMap = deviceTypeWidthMap;
|
|
30
60
|
var magicMode = {
|
|
31
61
|
DESIGNER: 'designer',
|
|
32
62
|
RENDERER: 'renderer'
|
|
@@ -38,6 +68,7 @@ var quickMenuCode = {
|
|
|
38
68
|
PREVIEW: 'PREVIEW',
|
|
39
69
|
SAVE: 'SAVE',
|
|
40
70
|
PUBLISH: 'PUBLISH',
|
|
71
|
+
PUBLISH_LATER: 'PUBLISH_LATER',
|
|
41
72
|
MODE_PC: 'MODE_PC',
|
|
42
73
|
MODE_PHONE: 'MODE_PHONE'
|
|
43
74
|
};
|
|
@@ -94,6 +125,18 @@ var compInfoMap = {
|
|
|
94
125
|
MOBILE_NAVIGATION: {
|
|
95
126
|
name: 'Mobile Navigation',
|
|
96
127
|
icon: 'icon-navigation'
|
|
128
|
+
},
|
|
129
|
+
PC_NAVIGATION: {
|
|
130
|
+
name: 'PC Navigation',
|
|
131
|
+
icon: 'icon-navigation'
|
|
132
|
+
},
|
|
133
|
+
VIDEO: {
|
|
134
|
+
name: 'Video',
|
|
135
|
+
icon: 'icon-video'
|
|
136
|
+
},
|
|
137
|
+
WALLET: {
|
|
138
|
+
name: 'Wallet',
|
|
139
|
+
icon: 'icon-image-gallery'
|
|
97
140
|
}
|
|
98
141
|
};
|
|
99
142
|
/**
|
|
@@ -149,4 +192,13 @@ var metaInst = {
|
|
|
149
192
|
type: metaType.BUTTON
|
|
150
193
|
}
|
|
151
194
|
};
|
|
152
|
-
|
|
195
|
+
/**
|
|
196
|
+
* 全局事件类型
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
exports.metaInst = metaInst;
|
|
200
|
+
var eventType = {
|
|
201
|
+
// 二级配置面板返回时,更新一级面板事件
|
|
202
|
+
UPDATE_FIRST_CONFIG: 'update-first-config'
|
|
203
|
+
};
|
|
204
|
+
exports.eventType = eventType;
|
package/lib/constants/layout.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.newsletterLayout = exports.mobileNavigationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = void 0;
|
|
6
|
+
exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.mobileNavigationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.WalletLayout = void 0;
|
|
7
7
|
|
|
8
8
|
var _dividerLayout = _interopRequireDefault(require("../assets/images/layout-icon/dividerLayout.svg"));
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ var _imageGalleryLayout = _interopRequireDefault(require("../assets/images/layou
|
|
|
13
13
|
|
|
14
14
|
var _imageGalleryLayout2 = _interopRequireDefault(require("../assets/images/layout-icon/imageGalleryLayout2.png"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _walletLayout = _interopRequireDefault(require("../assets/images/layout-icon/walletLayout1.png"));
|
|
17
17
|
|
|
18
18
|
var _layoutImagetextM = _interopRequireDefault(require("../assets/images/layout-icon/layout-imagetext-m1-1.png"));
|
|
19
19
|
|
|
@@ -39,16 +39,36 @@ var _newsletter = _interopRequireDefault(require("../assets/images/layout-icon/n
|
|
|
39
39
|
|
|
40
40
|
var _layoutRecommend = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-1.png"));
|
|
41
41
|
|
|
42
|
-
var _layoutRecommend2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-
|
|
42
|
+
var _layoutRecommend2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-2.png"));
|
|
43
43
|
|
|
44
|
-
var _layoutRecommend3 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-
|
|
44
|
+
var _layoutRecommend3 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-3.png"));
|
|
45
45
|
|
|
46
|
-
var _layoutRecommend4 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-
|
|
46
|
+
var _layoutRecommend4 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-4.png"));
|
|
47
|
+
|
|
48
|
+
var _layoutRecommend5 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-5.png"));
|
|
49
|
+
|
|
50
|
+
var _layoutVideoH = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-h5-1.png"));
|
|
51
|
+
|
|
52
|
+
var _layoutVideoH2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-h5-2.png"));
|
|
53
|
+
|
|
54
|
+
var _layoutVideoH3 = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-h5-3.png"));
|
|
55
|
+
|
|
56
|
+
var _layoutVideoPc = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-pc-1.png"));
|
|
57
|
+
|
|
58
|
+
var _layoutVideoPc2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-pc-2.png"));
|
|
59
|
+
|
|
60
|
+
var _layoutVideoPc3 = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-pc-3.png"));
|
|
61
|
+
|
|
62
|
+
var _layoutVideoPc4 = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-pc-4.png"));
|
|
63
|
+
|
|
64
|
+
var _layoutVideoPc5 = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-pc-5.png"));
|
|
47
65
|
|
|
48
66
|
var _layoutNavigationNewline = _interopRequireDefault(require("../assets/images/layout-icon/layout-navigation-newline.png"));
|
|
49
67
|
|
|
50
68
|
var _layoutNavigationTile = _interopRequireDefault(require("../assets/images/layout-icon/layout-navigation-tile.png"));
|
|
51
69
|
|
|
70
|
+
var _layoutNavigationNormal = _interopRequireDefault(require("../assets/images/layout-icon/layout-navigation-normal.png"));
|
|
71
|
+
|
|
52
72
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
53
73
|
|
|
54
74
|
// import p3 from '../assets/images/layout-icon/layout-imagetext-p3.png';
|
|
@@ -72,12 +92,14 @@ var imageGalleryLayout = [{
|
|
|
72
92
|
id: 'layout2',
|
|
73
93
|
name: 'layout2',
|
|
74
94
|
image: _imageGalleryLayout2["default"]
|
|
75
|
-
}, {
|
|
76
|
-
id: 'layout3',
|
|
77
|
-
name: 'layout3',
|
|
78
|
-
image: _imageGalleryLayout3["default"]
|
|
79
95
|
}];
|
|
80
96
|
exports.imageGalleryLayout = imageGalleryLayout;
|
|
97
|
+
var WalletLayout = [{
|
|
98
|
+
id: 'layout1',
|
|
99
|
+
name: 'layout1',
|
|
100
|
+
image: _walletLayout["default"]
|
|
101
|
+
}];
|
|
102
|
+
exports.WalletLayout = WalletLayout;
|
|
81
103
|
var carouselLayout = [{
|
|
82
104
|
id: 'layout1',
|
|
83
105
|
name: 'layout1',
|
|
@@ -134,22 +156,74 @@ var recommendLayoutMobile = [{
|
|
|
134
156
|
id: 'layout1',
|
|
135
157
|
name: 'layout1',
|
|
136
158
|
image: _layoutRecommend["default"]
|
|
159
|
+
}, {
|
|
160
|
+
id: 'layout2',
|
|
161
|
+
name: 'layout2',
|
|
162
|
+
image: _layoutRecommend2["default"]
|
|
163
|
+
}, {
|
|
164
|
+
id: 'layout3',
|
|
165
|
+
name: 'layout3',
|
|
166
|
+
image: _layoutRecommend3["default"]
|
|
167
|
+
}, {
|
|
168
|
+
id: 'layout4',
|
|
169
|
+
name: 'layout4',
|
|
170
|
+
image: _layoutRecommend4["default"]
|
|
171
|
+
}, {
|
|
172
|
+
id: 'layout5',
|
|
173
|
+
name: 'layout5',
|
|
174
|
+
image: _layoutRecommend5["default"]
|
|
137
175
|
}];
|
|
138
176
|
exports.recommendLayoutMobile = recommendLayoutMobile;
|
|
139
177
|
var recommendLayoutPc = [{
|
|
140
178
|
id: 'layout1',
|
|
141
179
|
name: 'layout1',
|
|
142
|
-
image:
|
|
180
|
+
image: _layoutRecommend3["default"]
|
|
143
181
|
}, {
|
|
144
182
|
id: 'layout2',
|
|
145
183
|
name: 'layout2',
|
|
146
|
-
image:
|
|
184
|
+
image: _layoutRecommend4["default"]
|
|
147
185
|
}, {
|
|
148
186
|
id: 'layout3',
|
|
149
187
|
name: 'layout3',
|
|
150
|
-
image:
|
|
188
|
+
image: _layoutRecommend5["default"]
|
|
151
189
|
}];
|
|
152
190
|
exports.recommendLayoutPc = recommendLayoutPc;
|
|
191
|
+
var videoPCLayout = [{
|
|
192
|
+
id: 'layout1',
|
|
193
|
+
name: 'layout1',
|
|
194
|
+
image: _layoutVideoPc["default"]
|
|
195
|
+
}, {
|
|
196
|
+
id: 'layout2',
|
|
197
|
+
name: 'layout2',
|
|
198
|
+
image: _layoutVideoPc2["default"]
|
|
199
|
+
}, {
|
|
200
|
+
id: 'layout3',
|
|
201
|
+
name: 'layout3',
|
|
202
|
+
image: _layoutVideoPc3["default"]
|
|
203
|
+
}, {
|
|
204
|
+
id: 'layout4',
|
|
205
|
+
name: 'layout4',
|
|
206
|
+
image: _layoutVideoPc4["default"]
|
|
207
|
+
}, {
|
|
208
|
+
id: 'layout5',
|
|
209
|
+
name: 'layout5',
|
|
210
|
+
image: _layoutVideoPc5["default"]
|
|
211
|
+
}];
|
|
212
|
+
exports.videoPCLayout = videoPCLayout;
|
|
213
|
+
var videoH5Layout = [{
|
|
214
|
+
id: 'layout1',
|
|
215
|
+
name: 'layout1',
|
|
216
|
+
image: _layoutVideoH["default"]
|
|
217
|
+
}, {
|
|
218
|
+
id: 'layout2',
|
|
219
|
+
name: 'layout2',
|
|
220
|
+
image: _layoutVideoH2["default"]
|
|
221
|
+
}, {
|
|
222
|
+
id: 'layout3',
|
|
223
|
+
name: 'layout3',
|
|
224
|
+
image: _layoutVideoH3["default"]
|
|
225
|
+
}];
|
|
226
|
+
exports.videoH5Layout = videoH5Layout;
|
|
153
227
|
var mobileNavigationLayout = [{
|
|
154
228
|
id: 'newline',
|
|
155
229
|
name: 'newline',
|
|
@@ -159,4 +233,10 @@ var mobileNavigationLayout = [{
|
|
|
159
233
|
name: 'tile',
|
|
160
234
|
image: _layoutNavigationTile["default"]
|
|
161
235
|
}];
|
|
162
|
-
exports.mobileNavigationLayout = mobileNavigationLayout;
|
|
236
|
+
exports.mobileNavigationLayout = mobileNavigationLayout;
|
|
237
|
+
var pcNavigationLayout = [{
|
|
238
|
+
id: 'normal',
|
|
239
|
+
name: 'normal',
|
|
240
|
+
image: _layoutNavigationNormal["default"]
|
|
241
|
+
}];
|
|
242
|
+
exports.pcNavigationLayout = pcNavigationLayout;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = AppointmentModal;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _antd = require("antd");
|
|
11
|
+
|
|
12
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
13
|
+
|
|
14
|
+
var _locale = require("../../../locale");
|
|
15
|
+
|
|
16
|
+
require("./index.less");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
// import { Button } from '../../../common';
|
|
21
|
+
function AppointmentModal(props) {
|
|
22
|
+
var visible = props.visible,
|
|
23
|
+
onClose = props.onClose,
|
|
24
|
+
onConfirm = props.onConfirm;
|
|
25
|
+
|
|
26
|
+
var form = _antd.Form.useForm()[0];
|
|
27
|
+
|
|
28
|
+
var onConfirmPublish = function onConfirmPublish() {
|
|
29
|
+
form.submit();
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var onFinish = function onFinish(values) {
|
|
33
|
+
console.log(values);
|
|
34
|
+
var dateString = values.date.format('YYYY-MM-DD HH:mm:ss');
|
|
35
|
+
onConfirm(dateString);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var disabledDate = function disabledDate(current) {
|
|
39
|
+
return current && (current < (0, _moment["default"])().add(30, 'minutes') || current > (0, _moment["default"])().add(30, 'days'));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Modal, {
|
|
43
|
+
footer: /*#__PURE__*/_react["default"].createElement("div", {
|
|
44
|
+
className: "footer"
|
|
45
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
46
|
+
onClick: function onClick() {
|
|
47
|
+
return onClose && onClose();
|
|
48
|
+
},
|
|
49
|
+
size: "small",
|
|
50
|
+
type: "light"
|
|
51
|
+
}, (0, _locale.i18n)('CANCEL')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
52
|
+
onClick: onConfirmPublish,
|
|
53
|
+
size: "small",
|
|
54
|
+
type: "primary"
|
|
55
|
+
}, (0, _locale.i18n)('CONFIRM'))),
|
|
56
|
+
maskClosable: false,
|
|
57
|
+
onCancel: onClose,
|
|
58
|
+
title: (0, _locale.i18n)('PUBLISH_LATER'),
|
|
59
|
+
visible: visible,
|
|
60
|
+
width: 500,
|
|
61
|
+
wrapClassName: "m-appointment-modal"
|
|
62
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
63
|
+
autoComplete: "off",
|
|
64
|
+
form: form,
|
|
65
|
+
initialValues: {
|
|
66
|
+
date: (0, _moment["default"])().add(31, 'minutes')
|
|
67
|
+
},
|
|
68
|
+
layout: "vertical",
|
|
69
|
+
onFinish: onFinish
|
|
70
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
71
|
+
label: (0, _locale.i18n)('PUBLISH_TIME'),
|
|
72
|
+
name: "date",
|
|
73
|
+
rules: [{
|
|
74
|
+
required: true
|
|
75
|
+
}]
|
|
76
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.DatePicker, {
|
|
77
|
+
disabledDate: disabledDate,
|
|
78
|
+
placeholder: "Select Time",
|
|
79
|
+
showNow: false,
|
|
80
|
+
showTime: true,
|
|
81
|
+
style: {
|
|
82
|
+
width: '100%'
|
|
83
|
+
}
|
|
84
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
|
+
className: "tips"
|
|
86
|
+
}, "Please select a time after 30 minutes and within 30 days")));
|
|
87
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[magic_design] .m-appointment-modal {
|
|
2
|
+
|
|
3
|
+
.footer {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: flex-end;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.tips {
|
|
9
|
+
font-size: 13px;
|
|
10
|
+
line-height: 18px;
|
|
11
|
+
color: #A3AEC3;
|
|
12
|
+
margin-bottom: 40px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ant-modal-body {
|
|
16
|
+
overflow: unset;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ant-picker-ok button {
|
|
20
|
+
color: #fff;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
}
|
|
@@ -9,11 +9,15 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _Iconfont = _interopRequireDefault(require("../../../../common/Iconfont"));
|
|
11
11
|
|
|
12
|
+
var _constants = require("../../../../constants");
|
|
13
|
+
|
|
12
14
|
require("./index.less");
|
|
13
15
|
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
17
|
|
|
16
18
|
function CompCard(_a) {
|
|
19
|
+
var _b;
|
|
20
|
+
|
|
17
21
|
var label = _a.label,
|
|
18
22
|
onAdd = _a.onAdd,
|
|
19
23
|
type = _a.type,
|
|
@@ -24,7 +28,7 @@ function CompCard(_a) {
|
|
|
24
28
|
className: "comp-info"
|
|
25
29
|
}, /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
26
30
|
className: "comp-icon",
|
|
27
|
-
type: icon
|
|
31
|
+
type: icon || ((_b = _constants.compInfoMap[type]) === null || _b === void 0 ? void 0 : _b.icon)
|
|
28
32
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
29
33
|
className: "comp-name"
|
|
30
34
|
}, label)), /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
@@ -19,6 +19,8 @@ require("./index.less");
|
|
|
19
19
|
|
|
20
20
|
var _locale = require("../../../locale");
|
|
21
21
|
|
|
22
|
+
var _coreUtil = require("../../../utils/coreUtil");
|
|
23
|
+
|
|
22
24
|
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); }
|
|
23
25
|
|
|
24
26
|
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; }
|
|
@@ -107,17 +109,19 @@ function (_super) {
|
|
|
107
109
|
className: "title"
|
|
108
110
|
}, (0, _locale.i18n)('ADD_COMPONENT')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
109
111
|
className: "component-list"
|
|
110
|
-
},
|
|
112
|
+
}, compSource.map(function (compCat) {
|
|
111
113
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
|
-
key: compCat,
|
|
114
|
+
key: compCat.moduleCatgId,
|
|
113
115
|
className: "cat-list"
|
|
114
116
|
}, /*#__PURE__*/_react["default"].createElement("h5", {
|
|
115
117
|
className: "cat-name"
|
|
116
|
-
}, compCat, "(", "" +
|
|
117
|
-
return /*#__PURE__*/_react["default"].createElement(_CompCard["default"], _extends({}, comp, {
|
|
118
|
+
}, compCat.category, "(", "" + (compCat.modules ? compCat.modules.length : '0'), ")"), compCat.modules && compCat.modules.map(function (comp) {
|
|
119
|
+
return (0, _coreUtil.isActiveFloor)(comp.terminalType) ? /*#__PURE__*/_react["default"].createElement(_CompCard["default"], _extends({}, comp, {
|
|
118
120
|
key: comp.moduleId,
|
|
119
|
-
onAdd:
|
|
120
|
-
|
|
121
|
+
onAdd: function onAdd() {
|
|
122
|
+
return _this.onAddClick(comp);
|
|
123
|
+
}
|
|
124
|
+
})) : null;
|
|
121
125
|
}));
|
|
122
126
|
})));
|
|
123
127
|
};
|
|
@@ -125,34 +129,5 @@ function (_super) {
|
|
|
125
129
|
return CompListPanel;
|
|
126
130
|
}(_react.Component);
|
|
127
131
|
|
|
128
|
-
var _default = CompListPanel;
|
|
129
|
-
// useEffect(() => {
|
|
130
|
-
// if (visible) {
|
|
131
|
-
// document.getElementsByClassName('component-list')[0].scrollTop = 0;
|
|
132
|
-
// }
|
|
133
|
-
// }, [visible]);
|
|
134
|
-
// return (
|
|
135
|
-
// <div className={classNames('compListPanel', { visible })}>
|
|
136
|
-
// <header className="header">
|
|
137
|
-
// <Button icon="icon-close" onClick={onClose} type="icon" />
|
|
138
|
-
// </header>
|
|
139
|
-
// <h2 className="title">{i18n('ADD_COMPONENT')}</h2>
|
|
140
|
-
// <div className="component-list">
|
|
141
|
-
// {
|
|
142
|
-
// Object.keys(compSource).map(compCat => (
|
|
143
|
-
// <div key={compCat} className="cat-list">
|
|
144
|
-
// <h5 className="cat-name">{compCat}({`${compSource[compCat].length}`})</h5>
|
|
145
|
-
// {
|
|
146
|
-
// compSource[compCat].map(comp => (
|
|
147
|
-
// <CompCard {...comp} key={comp.moduleId} onAdd={onAdd} />
|
|
148
|
-
// ))
|
|
149
|
-
// }
|
|
150
|
-
// </div>
|
|
151
|
-
// ))
|
|
152
|
-
// }
|
|
153
|
-
// </div>
|
|
154
|
-
// </div>
|
|
155
|
-
// );
|
|
156
|
-
// }
|
|
157
|
-
|
|
132
|
+
var _default = CompListPanel;
|
|
158
133
|
exports["default"] = _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = TerminalSelect;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _common = require("../../../../common");
|
|
11
|
+
|
|
12
|
+
require("./index.less");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function TerminalSelect(_a) {
|
|
17
|
+
var value = _a.value,
|
|
18
|
+
onChange = _a.onChange,
|
|
19
|
+
terminalType = _a.terminalType;
|
|
20
|
+
var isActiveMobile = !value || ['MOBILE', 'ALL'].includes(value);
|
|
21
|
+
var isActivePc = !value || ['PC', 'ALL'].includes(value);
|
|
22
|
+
|
|
23
|
+
var onTerminalClick = function onTerminalClick(terminal) {
|
|
24
|
+
// 至少选中一种终端
|
|
25
|
+
if (value === terminal) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (!value || value === 'ALL') {
|
|
30
|
+
if (terminal === 'PC') {
|
|
31
|
+
onChange('MOBILE');
|
|
32
|
+
} else {
|
|
33
|
+
onChange('PC');
|
|
34
|
+
}
|
|
35
|
+
} else {
|
|
36
|
+
onChange('ALL');
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
|
+
className: "terminal_wrap"
|
|
42
|
+
}, ['MOBILE', 'ALL', undefined, null].includes(terminalType) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
43
|
+
className: "terminal_item",
|
|
44
|
+
onClick: function onClick() {
|
|
45
|
+
return onTerminalClick('MOBILE');
|
|
46
|
+
}
|
|
47
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
48
|
+
color: isActiveMobile ? '#2F54EB' : '#C4C4C4',
|
|
49
|
+
size: 20,
|
|
50
|
+
type: "icon-mobile"
|
|
51
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
52
|
+
className: "select"
|
|
53
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
54
|
+
color: isActiveMobile ? '#00AC5A' : '#A3AEC3',
|
|
55
|
+
size: 9,
|
|
56
|
+
type: "icon-select"
|
|
57
|
+
}))), ['PC', 'ALL', undefined, null].includes(terminalType) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
58
|
+
className: "terminal_item",
|
|
59
|
+
onClick: function onClick() {
|
|
60
|
+
return onTerminalClick('PC');
|
|
61
|
+
}
|
|
62
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
63
|
+
color: isActivePc ? '#2F54EB' : '#C4C4C4',
|
|
64
|
+
size: 20,
|
|
65
|
+
type: "icon-pc"
|
|
66
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
|
+
className: "select"
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
69
|
+
color: isActivePc ? '#00AC5A' : '#A3AEC3',
|
|
70
|
+
size: 9,
|
|
71
|
+
type: "icon-select"
|
|
72
|
+
}))));
|
|
73
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.terminal_wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
.terminal_item {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
width: 24px;
|
|
9
|
+
height: 24px;
|
|
10
|
+
background-color: #EDF0F4;
|
|
11
|
+
border-radius: 2px;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
.select {
|
|
14
|
+
position: absolute;
|
|
15
|
+
right: -4px;
|
|
16
|
+
top: -4px;
|
|
17
|
+
line-height: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
.terminal_item + .terminal_item {
|
|
21
|
+
margin-left: 16px;
|
|
22
|
+
}
|
|
23
|
+
.active {
|
|
24
|
+
background-color: #2F54EB;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
.terminal_wrap+ span {
|
|
28
|
+
margin-left: 14px;
|
|
29
|
+
}
|