@fonixtree/magic-design 2.0.202 → 2.0.203
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/AvenirNext-Bold.ttf +0 -0
- package/es/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
- package/es/assets/fonts/AvenirNext-Medium.ttf +0 -0
- package/es/assets/fonts/AvenirNext-Regular.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +27 -3
- package/es/assets/fonts/magic-box-iconfont.js +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/banner-slide-layout3.png +0 -0
- package/es/assets/images/layout-icon/grouped-carousel-layout1.png +0 -0
- package/es/assets/images/layout-icon/news-layout1.png +0 -0
- package/es/assets/images/layout-icon/search-dito-layout1.png +0 -0
- package/es/assets/images/layout-icon/slide-image-layout1.png +0 -0
- package/es/assets/less/font.less +30 -0
- package/es/assets/less/global.less +5 -0
- package/es/common/CountDown/index.js +29 -2
- package/es/common/CountDown/index.less +38 -5
- package/es/common/LinkModal/ProductList/index.js +484 -0
- package/es/common/LinkModal/ProductList/index.less +130 -0
- package/es/common/LinkModal/index.js +8 -1
- package/es/common/ProductCardModal/imgs/dot-icon.png +0 -0
- package/es/common/ProductCardModal/index.js +255 -0
- package/es/common/ProductCardModal/index.less +131 -0
- package/es/common/Toast/index.js +30 -0
- package/es/common/Toast/index.less +29 -0
- package/es/common/UrlPicker/index.js +1 -1
- package/es/common/Video/index.js +5 -3
- package/es/common/VideoPC/background.png +0 -0
- package/es/common/VideoPC/closeImg.png +0 -0
- package/es/common/VideoPC/components/index.js +100 -0
- package/es/common/VideoPC/components/index.less +62 -0
- package/es/common/VideoPC/cover.png +0 -0
- package/es/common/VideoPC/index.js +750 -0
- package/es/common/VideoPC/index.less +79 -0
- package/es/common/index.js +24 -0
- package/es/composite-comp/common/components/ProductItem/index.js +15 -8
- package/es/composite-comp/common/components/ProductItem/index.less +7 -0
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
- package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +26 -12
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
- package/es/composite-comp/dito/components/GroupBuy/mobile/index.less +5 -2
- package/es/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +312 -0
- package/es/composite-comp/dito/components/GroupedCarousel/index.js +86 -0
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.js +189 -0
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.less +65 -0
- package/es/composite-comp/dito/components/News/defaultJSON.js +172 -0
- package/{lib/composite-comp/dito/components/Orders → es/composite-comp/dito/components/News}/index.js +13 -13
- package/es/composite-comp/dito/components/News/pc/index.js +113 -0
- package/es/composite-comp/dito/components/News/pc/index.less +46 -0
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +56 -2
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +147 -15
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +100 -8
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +130 -14
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +3 -11
- package/es/composite-comp/dito/components/SearchDITO/defaultJSON.js +221 -0
- package/es/composite-comp/dito/components/SearchDITO/index.js +86 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +153 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.less +25 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/imgs/avatar.png +0 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.js +176 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.less +57 -0
- package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +138 -0
- package/es/composite-comp/dito/components/SlideImage/index.js +86 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +105 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +5 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +170 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.less +23 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/cursor.png +0 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/d.png +0 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +176 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +61 -0
- package/es/composite-comp/dito/components/SlideImage/pc/index.js +76 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.js +149 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.js +93 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/index.js +114 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.js +148 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.js +101 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/imgs/defaultImg.png +0 -0
- package/{lib/composite-comp/dito/config-panels/OrdersConfig → es/composite-comp/dito/config-panels/NewsConfig}/index.js +40 -40
- package/es/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +165 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +7 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.js +179 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.less +0 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.js +181 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.less +9 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/index.js +69 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.js +150 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +134 -0
- package/es/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.js +196 -0
- package/es/composite-comp/dito/second-config-panels/NewsSecondConfig/index.js +133 -0
- package/es/composite-comp/dito/second-config-panels/NewsSecondConfig/index.less +8 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
- package/es/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.js +366 -0
- package/es/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.less +79 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +243 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +71 -0
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +4 -3
- package/es/constants/component-types.js +27 -9
- package/es/constants/index.js +40 -20
- package/es/constants/layout.js +46 -2
- package/es/core/Designer/ConfigPanel/index.js +17 -1
- package/es/core/Renderer/index.js +37 -2
- package/es/decorator/compositeDecorator.js +5 -1
- package/es/decorator/metaDecorator.js +1 -2
- package/es/locale/ar/ar.json +11 -1
- package/es/locale/en/en.json +11 -1
- package/es/locale/es/es.json +11 -1
- package/es/meta-comp/components/Button/editable.js +3 -1
- package/es/meta-comp/components/Button/index.js +13 -4
- package/es/meta-comp/components/Button/index.less +8 -1
- package/es/meta-comp/components/Image/index.js +7 -2
- package/es/meta-comp/components/Image/index.less +7 -0
- package/es/meta-comp/components/Text/index.js +6 -2
- package/es/meta-comp/components/Text/index.less +3 -0
- package/es/mobx/Frame.js +12 -1
- package/es/mobx/Store.js +12 -0
- package/es/utils/androidUtil.js +10 -2
- package/es/utils/businessUtil.js +218 -3
- package/es/utils/commonUtil.js +155 -4
- package/es/utils/coreUtil.js +59 -4
- package/es/utils/messageUtil.js +40 -0
- package/es/utils/pluginsUtil.js +1 -0
- package/lib/assets/fonts/AvenirNext-Bold.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-Medium.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-Regular.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +27 -3
- package/lib/assets/fonts/magic-box-iconfont.js +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/banner-slide-layout3.png +0 -0
- package/lib/assets/images/layout-icon/grouped-carousel-layout1.png +0 -0
- package/lib/assets/images/layout-icon/news-layout1.png +0 -0
- package/lib/assets/images/layout-icon/search-dito-layout1.png +0 -0
- package/lib/assets/images/layout-icon/slide-image-layout1.png +0 -0
- package/lib/assets/less/font.less +30 -0
- package/lib/assets/less/global.less +5 -0
- package/lib/common/CountDown/index.js +29 -2
- package/lib/common/CountDown/index.less +38 -5
- package/lib/common/LinkModal/ProductList/index.js +484 -0
- package/lib/common/LinkModal/ProductList/index.less +130 -0
- package/lib/common/LinkModal/index.js +8 -1
- package/lib/common/ProductCardModal/imgs/dot-icon.png +0 -0
- package/lib/common/ProductCardModal/index.js +255 -0
- package/lib/common/ProductCardModal/index.less +131 -0
- package/lib/common/Toast/index.js +30 -0
- package/lib/common/Toast/index.less +29 -0
- package/lib/common/UrlPicker/index.js +1 -1
- package/lib/common/Video/index.js +5 -3
- package/lib/common/VideoPC/background.png +0 -0
- package/lib/common/VideoPC/closeImg.png +0 -0
- package/lib/common/VideoPC/components/index.js +100 -0
- package/lib/common/VideoPC/components/index.less +62 -0
- package/lib/common/VideoPC/cover.png +0 -0
- package/lib/common/VideoPC/index.js +750 -0
- package/lib/common/VideoPC/index.less +79 -0
- package/lib/common/index.js +24 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +15 -8
- package/lib/composite-comp/common/components/ProductItem/index.less +7 -0
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
- package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +26 -12
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
- package/lib/composite-comp/dito/components/GroupBuy/mobile/index.less +5 -2
- package/lib/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +312 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/index.js +86 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.js +189 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.less +65 -0
- package/lib/composite-comp/dito/components/News/defaultJSON.js +172 -0
- package/{es/composite-comp/dito/components/Orders → lib/composite-comp/dito/components/News}/index.js +13 -13
- package/lib/composite-comp/dito/components/News/pc/index.js +113 -0
- package/lib/composite-comp/dito/components/News/pc/index.less +46 -0
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +56 -2
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +147 -15
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +100 -8
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +130 -14
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +3 -11
- package/lib/composite-comp/dito/components/SearchDITO/defaultJSON.js +221 -0
- package/lib/composite-comp/dito/components/SearchDITO/index.js +86 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +153 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.less +25 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/imgs/avatar.png +0 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +176 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.less +57 -0
- package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +138 -0
- package/lib/composite-comp/dito/components/SlideImage/index.js +86 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +105 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +5 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +170 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.less +23 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/cursor.png +0 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/imgs/d.png +0 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +176 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +61 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/index.js +76 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.js +149 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.js +93 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/index.js +114 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.js +148 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.js +101 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/imgs/defaultImg.png +0 -0
- package/{es/composite-comp/dito/config-panels/OrdersConfig → lib/composite-comp/dito/config-panels/NewsConfig}/index.js +40 -40
- package/lib/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +165 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +7 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.js +179 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.js +181 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.less +9 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/index.js +69 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.js +150 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +134 -0
- package/lib/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.js +196 -0
- package/lib/composite-comp/dito/second-config-panels/NewsSecondConfig/index.js +133 -0
- package/lib/composite-comp/dito/second-config-panels/NewsSecondConfig/index.less +8 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
- package/lib/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.js +366 -0
- package/lib/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.less +79 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +243 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +71 -0
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +4 -3
- package/lib/constants/component-types.js +27 -9
- package/lib/constants/index.js +40 -20
- package/lib/constants/layout.js +46 -2
- package/lib/core/Designer/ConfigPanel/index.js +17 -1
- package/lib/core/Renderer/index.js +37 -2
- package/lib/decorator/compositeDecorator.js +5 -1
- package/lib/decorator/metaDecorator.js +1 -2
- package/lib/locale/ar/ar.json +11 -1
- package/lib/locale/en/en.json +11 -1
- package/lib/locale/es/es.json +11 -1
- package/lib/meta-comp/components/Button/editable.js +3 -1
- package/lib/meta-comp/components/Button/index.js +13 -4
- package/lib/meta-comp/components/Button/index.less +8 -1
- package/lib/meta-comp/components/Image/index.js +7 -2
- package/lib/meta-comp/components/Image/index.less +7 -0
- package/lib/meta-comp/components/Text/index.js +6 -2
- package/lib/meta-comp/components/Text/index.less +3 -0
- package/lib/mobx/Frame.js +12 -1
- package/lib/mobx/Store.js +12 -0
- package/lib/utils/androidUtil.js +10 -2
- package/lib/utils/businessUtil.js +218 -3
- package/lib/utils/commonUtil.js +155 -4
- package/lib/utils/coreUtil.js +59 -4
- package/lib/utils/messageUtil.js +40 -0
- package/lib/utils/pluginsUtil.js +1 -0
- package/package.json +5 -2
- 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/Orders/mobile/index.js +0 -352
- package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- 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/Orders/mobile/index.js +0 -352
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- /package/es/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
- /package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js
CHANGED
|
@@ -11,6 +11,8 @@ var _antd = require("antd4");
|
|
|
11
11
|
|
|
12
12
|
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
13
13
|
|
|
14
|
+
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
15
|
+
|
|
14
16
|
var _common = require("../../../../common");
|
|
15
17
|
|
|
16
18
|
var _coreUtil = require("../../../../utils/coreUtil");
|
|
@@ -115,6 +117,59 @@ function (_super) {
|
|
|
115
117
|
}, (0, _locale.i18n)('RECENTLY_VIEWED'))))));
|
|
116
118
|
};
|
|
117
119
|
|
|
120
|
+
_this.getOrdersPanel = function (data) {
|
|
121
|
+
var source = [{
|
|
122
|
+
key: 'secondContent3',
|
|
123
|
+
name: (0, _locale.i18n)('Icon'),
|
|
124
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
125
|
+
data: data.image
|
|
126
|
+
}),
|
|
127
|
+
metaOption: data.image
|
|
128
|
+
}, {
|
|
129
|
+
key: 'secondContent4',
|
|
130
|
+
name: /*#__PURE__*/_react["default"].createElement("span", {
|
|
131
|
+
dangerouslySetInnerHTML: {
|
|
132
|
+
__html: data.title.text
|
|
133
|
+
}
|
|
134
|
+
}),
|
|
135
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
136
|
+
data: data.title
|
|
137
|
+
}),
|
|
138
|
+
metaOption: data.title
|
|
139
|
+
}];
|
|
140
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
141
|
+
headerSize: "middle",
|
|
142
|
+
onRefresh: function onRefresh() {
|
|
143
|
+
return (0, _coreUtil.renderPreview)();
|
|
144
|
+
},
|
|
145
|
+
showActiveColor: true,
|
|
146
|
+
source: source,
|
|
147
|
+
type: "switch"
|
|
148
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
|
+
className: "sourceOfAmount"
|
|
150
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
151
|
+
title: (0, _locale.i18n)('SOURCE_OF_AMOUNT')
|
|
152
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
153
|
+
onChange: function onChange(v) {
|
|
154
|
+
data.sourceType = v;
|
|
155
|
+
data.title.text = v;
|
|
156
|
+
|
|
157
|
+
_this.selfRender();
|
|
158
|
+
},
|
|
159
|
+
value: data.sourceType
|
|
160
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
161
|
+
value: _index.orderStatusType.PAY
|
|
162
|
+
}, (0, _locale.i18n)('TO_PAY')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
163
|
+
value: _index.orderStatusType.SHIP
|
|
164
|
+
}, (0, _locale.i18n)('TO_SHIP')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
165
|
+
value: _index.orderStatusType.RECEIVE
|
|
166
|
+
}, (0, _locale.i18n)('TO_RECEIVE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
167
|
+
value: _index.orderStatusType.DONE
|
|
168
|
+
}, (0, _locale.i18n)('DONE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
169
|
+
value: _index.orderStatusType.CANCELLED
|
|
170
|
+
}, (0, _locale.i18n)('CANCELLED'))))));
|
|
171
|
+
};
|
|
172
|
+
|
|
118
173
|
return _this;
|
|
119
174
|
}
|
|
120
175
|
|
|
@@ -122,7 +177,15 @@ function (_super) {
|
|
|
122
177
|
var panelProps = this.props.panelProps;
|
|
123
178
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
179
|
className: "personal_info_second_conf_wrap"
|
|
125
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
180
|
+
}, panelProps.image ? /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
181
|
+
divider: "bold",
|
|
182
|
+
headerSize: "large",
|
|
183
|
+
source: [{
|
|
184
|
+
key: 'secondConfig2',
|
|
185
|
+
name: (0, _locale.i18n)('ORDERS'),
|
|
186
|
+
value: this.getOrdersPanel(panelProps, true)
|
|
187
|
+
}]
|
|
188
|
+
}) : /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
126
189
|
divider: "bold",
|
|
127
190
|
headerSize: "large",
|
|
128
191
|
source: [{
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _antd = require("antd4");
|
|
11
|
+
|
|
12
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
13
|
+
|
|
14
|
+
var _common = require("../../../../common");
|
|
15
|
+
|
|
16
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
17
|
+
|
|
18
|
+
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
19
|
+
|
|
20
|
+
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
21
|
+
|
|
22
|
+
var _PlayIconConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/PlayIconConfig"));
|
|
23
|
+
|
|
24
|
+
var _locale = require("../../../../locale");
|
|
25
|
+
|
|
26
|
+
require("./index.less");
|
|
27
|
+
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
|
+
|
|
30
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
31
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
32
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
33
|
+
__proto__: []
|
|
34
|
+
} instanceof Array && function (d, b) {
|
|
35
|
+
d.__proto__ = b;
|
|
36
|
+
} || function (d, b) {
|
|
37
|
+
for (var p in b) {
|
|
38
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return _extendStatics(d, b);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
return function (d, b) {
|
|
46
|
+
_extendStatics(d, b);
|
|
47
|
+
|
|
48
|
+
function __() {
|
|
49
|
+
this.constructor = d;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
53
|
+
};
|
|
54
|
+
}();
|
|
55
|
+
|
|
56
|
+
var SearchDitoSecondConfig =
|
|
57
|
+
/** @class */
|
|
58
|
+
function (_super) {
|
|
59
|
+
__extends(SearchDitoSecondConfig, _super);
|
|
60
|
+
|
|
61
|
+
function SearchDitoSecondConfig() {
|
|
62
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
63
|
+
|
|
64
|
+
_this.state = {};
|
|
65
|
+
|
|
66
|
+
_this.reRender = function () {
|
|
67
|
+
(0, _coreUtil.renderPreview)();
|
|
68
|
+
|
|
69
|
+
_this.setState({});
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
_this.getImageRecommendSize = function (customize) {
|
|
73
|
+
var _a;
|
|
74
|
+
|
|
75
|
+
var obj = null;
|
|
76
|
+
|
|
77
|
+
if ((0, _coreUtil.isPc)()) {
|
|
78
|
+
switch ((_a = customize === null || customize === void 0 ? void 0 : customize.layout) === null || _a === void 0 ? void 0 : _a.pcLayout) {
|
|
79
|
+
case 'layout1':
|
|
80
|
+
obj = {
|
|
81
|
+
width: 1280,
|
|
82
|
+
height: 600
|
|
83
|
+
};
|
|
84
|
+
break;
|
|
85
|
+
|
|
86
|
+
case 'layout2':
|
|
87
|
+
obj = {
|
|
88
|
+
width: 640,
|
|
89
|
+
height: 600
|
|
90
|
+
};
|
|
91
|
+
break;
|
|
92
|
+
|
|
93
|
+
case 'layout3':
|
|
94
|
+
obj = {
|
|
95
|
+
width: 410,
|
|
96
|
+
height: 300
|
|
97
|
+
};
|
|
98
|
+
break;
|
|
99
|
+
|
|
100
|
+
default:
|
|
101
|
+
obj = {
|
|
102
|
+
width: 440,
|
|
103
|
+
height: 272
|
|
104
|
+
};
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
} else {
|
|
108
|
+
obj = {
|
|
109
|
+
width: 343,
|
|
110
|
+
height: 212
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return obj;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
_this.getVideoContent = function () {
|
|
118
|
+
var _a = _this.props,
|
|
119
|
+
panelProps = _a.panelProps,
|
|
120
|
+
parentNode = _a.parentNode;
|
|
121
|
+
|
|
122
|
+
var size = _this.getImageRecommendSize(parentNode.customize);
|
|
123
|
+
|
|
124
|
+
var source = [{
|
|
125
|
+
key: '1',
|
|
126
|
+
name: 'Overlay',
|
|
127
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
128
|
+
data: panelProps.overilay,
|
|
129
|
+
needClickArea: false,
|
|
130
|
+
needHover: false,
|
|
131
|
+
needURL: false,
|
|
132
|
+
recommendImgSize: size
|
|
133
|
+
}),
|
|
134
|
+
metaOption: panelProps.overilay
|
|
135
|
+
}, {
|
|
136
|
+
key: '2',
|
|
137
|
+
name: 'Play Icon',
|
|
138
|
+
value: /*#__PURE__*/_react["default"].createElement(_PlayIconConfig["default"], {
|
|
139
|
+
data: panelProps.playIcon
|
|
140
|
+
}),
|
|
141
|
+
metaOption: panelProps.playIcon
|
|
142
|
+
}];
|
|
143
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
144
|
+
title: "Select Video"
|
|
145
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
146
|
+
onChange: function onChange(v) {
|
|
147
|
+
panelProps.video.sourceType = v;
|
|
148
|
+
|
|
149
|
+
_this.reRender();
|
|
150
|
+
},
|
|
151
|
+
value: panelProps.video.sourceType
|
|
152
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
153
|
+
value: "Upload"
|
|
154
|
+
}, "Upload"), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
155
|
+
value: "URL"
|
|
156
|
+
}, "URL"))), panelProps.video.sourceType === 'URL' && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
157
|
+
title: "URL"
|
|
158
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
159
|
+
className: "input-url"
|
|
160
|
+
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
161
|
+
onChange: function onChange(e) {
|
|
162
|
+
panelProps.video.sourceUrl = e.target.value;
|
|
163
|
+
|
|
164
|
+
_this.reRender();
|
|
165
|
+
},
|
|
166
|
+
placeholder: (0, _locale.i18n)('PLEASE_ADD_A_LINK'),
|
|
167
|
+
type: "text",
|
|
168
|
+
value: panelProps.video.sourceUrl
|
|
169
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
+
className: "icon-btns"
|
|
171
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
172
|
+
color: "#FF4141",
|
|
173
|
+
onClick: function onClick() {
|
|
174
|
+
panelProps.video.sourceUrl = '';
|
|
175
|
+
|
|
176
|
+
_this.reRender();
|
|
177
|
+
},
|
|
178
|
+
size: "20px",
|
|
179
|
+
type: "icon-delete1"
|
|
180
|
+
})))), panelProps.video.sourceType === 'Upload' && /*#__PURE__*/_react["default"].createElement(_common.VideoUpload, {
|
|
181
|
+
onChange: function onChange(v) {
|
|
182
|
+
panelProps.video.sourceUrl = v;
|
|
183
|
+
|
|
184
|
+
_this.reRender();
|
|
185
|
+
},
|
|
186
|
+
value: panelProps.video.sourceUrl
|
|
187
|
+
}), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
188
|
+
title: "Start video at"
|
|
189
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.TimePicker, {
|
|
190
|
+
defaultValue: "00:00",
|
|
191
|
+
format: "mm:ss",
|
|
192
|
+
onChange: function onChange(e) {
|
|
193
|
+
if (e) {
|
|
194
|
+
var minute = e.get('minute');
|
|
195
|
+
var seconds = e.get('second');
|
|
196
|
+
panelProps.video.startAt = minute * 60 + seconds;
|
|
197
|
+
} else {
|
|
198
|
+
panelProps.video.startAt = '';
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
_this.reRender();
|
|
202
|
+
},
|
|
203
|
+
showNow: false,
|
|
204
|
+
value: (0, _moment["default"])(panelProps.video.startAt / 60 + ":" + panelProps.video.startAt % 60, 'mm:ss')
|
|
205
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
206
|
+
title: "URL"
|
|
207
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.UrlPicker, {
|
|
208
|
+
onChange: function onChange(v) {
|
|
209
|
+
panelProps.clickUrl = v;
|
|
210
|
+
|
|
211
|
+
_this.reRender();
|
|
212
|
+
},
|
|
213
|
+
value: panelProps.clickUrl
|
|
214
|
+
})), /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
215
|
+
headerSize: "middle",
|
|
216
|
+
onRefresh: function onRefresh() {
|
|
217
|
+
return (0, _coreUtil.renderPreview)();
|
|
218
|
+
},
|
|
219
|
+
showActiveColor: true,
|
|
220
|
+
source: source,
|
|
221
|
+
type: "switch"
|
|
222
|
+
}));
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
_this.getSettingPanel = function () {
|
|
226
|
+
var panelProps = _this.props.panelProps;
|
|
227
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
228
|
+
layout: "horizontal",
|
|
229
|
+
split: true,
|
|
230
|
+
title: "Progress bar"
|
|
231
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
232
|
+
checked: panelProps.video.progressBar,
|
|
233
|
+
onChange: function onChange(v) {
|
|
234
|
+
panelProps.video.progressBar = v;
|
|
235
|
+
|
|
236
|
+
_this.reRender();
|
|
237
|
+
}
|
|
238
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
239
|
+
layout: "horizontal",
|
|
240
|
+
split: true,
|
|
241
|
+
title: "Play in loop"
|
|
242
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
243
|
+
checked: panelProps.video.loop,
|
|
244
|
+
onChange: function onChange(v) {
|
|
245
|
+
panelProps.video.loop = v;
|
|
246
|
+
|
|
247
|
+
_this.reRender();
|
|
248
|
+
}
|
|
249
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
250
|
+
layout: "horizontal",
|
|
251
|
+
split: true,
|
|
252
|
+
title: "Autoplays"
|
|
253
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
254
|
+
checked: panelProps.video.autoplay,
|
|
255
|
+
onChange: function onChange(v) {
|
|
256
|
+
panelProps.video.autoplay = v;
|
|
257
|
+
|
|
258
|
+
_this.reRender();
|
|
259
|
+
}
|
|
260
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
261
|
+
layout: "horizontal",
|
|
262
|
+
split: true,
|
|
263
|
+
title: "Video Sound"
|
|
264
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
265
|
+
checked: panelProps.video.videoSound,
|
|
266
|
+
onChange: function onChange(v) {
|
|
267
|
+
panelProps.video.videoSound = v;
|
|
268
|
+
|
|
269
|
+
_this.reRender();
|
|
270
|
+
}
|
|
271
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
272
|
+
title: "Play Speed"
|
|
273
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
274
|
+
inputType: "float",
|
|
275
|
+
maxVal: 2,
|
|
276
|
+
minVal: 0.5,
|
|
277
|
+
onChange: function onChange(_a) {
|
|
278
|
+
var count = _a.count;
|
|
279
|
+
panelProps.video.speed = count;
|
|
280
|
+
|
|
281
|
+
_this.reRender();
|
|
282
|
+
},
|
|
283
|
+
value: {
|
|
284
|
+
count: panelProps.video.speed
|
|
285
|
+
}
|
|
286
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
287
|
+
title: "Play Position"
|
|
288
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
289
|
+
onChange: function onChange(v) {
|
|
290
|
+
panelProps.video.playPosition = v;
|
|
291
|
+
|
|
292
|
+
_this.reRender();
|
|
293
|
+
},
|
|
294
|
+
value: panelProps.video.playPosition
|
|
295
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
296
|
+
value: "Play in Box"
|
|
297
|
+
}, "Play in Box"), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
298
|
+
value: "Popup"
|
|
299
|
+
}, "Popup"))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
300
|
+
title: "Play button position"
|
|
301
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
302
|
+
onChange: function onChange(v) {
|
|
303
|
+
panelProps.video.playButton = v;
|
|
304
|
+
|
|
305
|
+
_this.reRender();
|
|
306
|
+
},
|
|
307
|
+
value: panelProps.video.playButton
|
|
308
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
309
|
+
value: "Bottom Left"
|
|
310
|
+
}, "Bottom Left"), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
311
|
+
value: "Middle"
|
|
312
|
+
}, "Middle"))));
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
return _this;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
SearchDitoSecondConfig.prototype.render = function () {
|
|
319
|
+
var panelProps = this.props.panelProps;
|
|
320
|
+
|
|
321
|
+
var getImageContent = function getImageContent() {
|
|
322
|
+
return /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
323
|
+
headerSize: "middle",
|
|
324
|
+
onRefresh: function onRefresh() {
|
|
325
|
+
return (0, _coreUtil.renderPreview)();
|
|
326
|
+
},
|
|
327
|
+
source: [{
|
|
328
|
+
key: panelProps.image.id,
|
|
329
|
+
name: (0, _locale.i18n)('IMAGE'),
|
|
330
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
331
|
+
data: panelProps.image
|
|
332
|
+
}),
|
|
333
|
+
metaOption: panelProps.image
|
|
334
|
+
}]
|
|
335
|
+
});
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
339
|
+
className: "search_dito_second_conf_wrap"
|
|
340
|
+
}, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
341
|
+
divider: "bold",
|
|
342
|
+
headerSize: "large",
|
|
343
|
+
source: panelProps.overilay ? [{
|
|
344
|
+
key: 'video1',
|
|
345
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
346
|
+
value: this.getVideoContent()
|
|
347
|
+
}, {
|
|
348
|
+
key: 'video2',
|
|
349
|
+
name: (0, _locale.i18n)('SETTING'),
|
|
350
|
+
value: this.getSettingPanel()
|
|
351
|
+
}] : [{
|
|
352
|
+
key: 'image1',
|
|
353
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
354
|
+
value: getImageContent()
|
|
355
|
+
}]
|
|
356
|
+
}));
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
SearchDitoSecondConfig.defaultProps = {
|
|
360
|
+
panelProps: {}
|
|
361
|
+
};
|
|
362
|
+
return SearchDitoSecondConfig;
|
|
363
|
+
}(_react["default"].Component);
|
|
364
|
+
|
|
365
|
+
var _default = SearchDitoSecondConfig;
|
|
366
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
.search_dito_second_conf_wrap {
|
|
2
|
+
// width: 354px;
|
|
3
|
+
|
|
4
|
+
.input-url {
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 40px;
|
|
7
|
+
background: #FFFFFF;
|
|
8
|
+
border: 1px solid #D2D9E5;
|
|
9
|
+
border-radius: 8px;
|
|
10
|
+
display: flex;
|
|
11
|
+
padding: 9px 14px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
|
|
15
|
+
input {
|
|
16
|
+
border: none;
|
|
17
|
+
outline: none;
|
|
18
|
+
height: 24px;
|
|
19
|
+
flex-grow: 1;
|
|
20
|
+
font-family: 'Open Sans';
|
|
21
|
+
font-style: normal;
|
|
22
|
+
font-weight: 400;
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
color: #232F46;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* 使用webkit内核的浏览器 */
|
|
28
|
+
input::-webkit-input-placeholder {
|
|
29
|
+
font-family: 'Open Sans';
|
|
30
|
+
font-style: normal;
|
|
31
|
+
font-weight: 400;
|
|
32
|
+
font-size: 14px;
|
|
33
|
+
color: #8493AF;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Firefox版本4-18 */
|
|
37
|
+
input:-moz-placeholder {
|
|
38
|
+
font-family: 'Open Sans';
|
|
39
|
+
font-style: normal;
|
|
40
|
+
font-weight: 400;
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
color: #8493AF;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Firefox版本19+ */
|
|
46
|
+
input::-moz-placeholder {
|
|
47
|
+
font-family: 'Open Sans';
|
|
48
|
+
font-style: normal;
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
font-size: 14px;
|
|
51
|
+
color: #8493AF;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* IE浏览器 */
|
|
55
|
+
input:-ms-input-placeholder {
|
|
56
|
+
font-family: 'Open Sans';
|
|
57
|
+
font-style: normal;
|
|
58
|
+
font-weight: 400;
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
color: #8493AF;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.icon-btns {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
|
|
67
|
+
&>span {
|
|
68
|
+
margin-left: 12px;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.cylon-picker {
|
|
75
|
+
padding: 8px 11px 8px;
|
|
76
|
+
border-radius: 8px;
|
|
77
|
+
border: 1px solid rgb(210 217 229);
|
|
78
|
+
}
|
|
79
|
+
}
|