@fonixtree/magic-design 1.0.4 → 1.0.6
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 +67 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +67 -3
- 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/imageTextLeft.svg +6 -0
- package/es/assets/images/layout-icon/imageTextRight.svg +6 -0
- package/es/assets/images/layout-icon/locationLayout.png +0 -0
- package/es/assets/less/slider.less +49 -1
- package/es/common/ColorPicker/index.js +4 -1
- package/es/common/Field/index.js +20 -3
- package/es/common/ImageLazy/index.js +172 -0
- package/es/common/ImageLazy/index.less +0 -0
- package/es/common/ImageModal/index.js +35 -2
- package/es/common/ImagePicker/index.js +76 -12
- package/es/common/ImagePicker/index.less +1 -0
- package/es/common/LinkModal/AffiliateProductTable/index.js +348 -0
- package/es/common/LinkModal/BundleCampaign/index.js +2 -2
- package/es/common/LinkModal/CatgTable/index.js +1 -1
- package/es/common/LinkModal/CouponTable/index.js +10 -2
- package/es/common/LinkModal/FilteredProductModal/index.js +5 -6
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.js +6 -0
- package/es/common/ProductModal/index.js +2 -2
- package/es/common/Video/index.js +11 -3
- package/es/common/Video/index.less +11 -7
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
- package/es/composite-comp/bol/components/Banner/index.js +15 -1
- package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/es/composite-comp/bol/components/Banner/pc/index.js +1 -4
- package/es/composite-comp/bol/components/Button/index.js +3 -4
- package/es/composite-comp/bol/components/Carousel/index.js +27 -3
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +12 -24
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/es/composite-comp/bol/components/Carousel/pc/index.js +5 -6
- package/es/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
- package/es/composite-comp/bol/components/CustomCode/index.js +138 -0
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/es/composite-comp/bol/components/ImageText/pc/index.js +98 -7
- package/es/composite-comp/bol/components/ImageText/pc/index.less +32 -0
- package/es/composite-comp/bol/components/Location/defaultJSON.js +60 -0
- package/es/composite-comp/bol/components/Location/index.js +100 -0
- package/es/composite-comp/bol/components/Location/index.less +15 -0
- package/es/composite-comp/bol/components/Newsletter/index.js +1 -4
- package/es/composite-comp/bol/components/Tag/index.js +3 -4
- package/es/composite-comp/bol/components/Text/index.js +3 -4
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
- package/es/composite-comp/bol/components/Video/defaultJSON.js +10 -0
- package/es/composite-comp/bol/components/Video/index.js +23 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
- package/es/composite-comp/bol/components/Video/mobile/index.js +8 -49
- package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/es/composite-comp/bol/components/Wallet/pc/index.js +1 -4
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
- package/es/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
- package/es/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
- package/es/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
- package/es/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
- package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +113 -2
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +64 -3
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +2 -1
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -1
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
- package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +21 -37
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +35 -24
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +71 -80
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
- package/es/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +0 -48
- package/es/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
- package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/es/constants/component-types.js +10 -2
- package/es/constants/index.js +12 -2
- package/es/constants/layout.js +21 -1
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
- package/es/core/Designer/AiImageGenerator/History/index.js +147 -0
- package/es/core/Designer/AiImageGenerator/History/index.less +75 -0
- package/es/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
- package/es/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
- package/es/core/Designer/AiImageGenerator/UploadReference/index.js +55 -0
- package/es/core/Designer/AiImageGenerator/UploadReference/index.less +45 -0
- package/es/core/Designer/AiImageGenerator/images/nodata.png +0 -0
- package/es/core/Designer/AiImageGenerator/index.js +752 -0
- package/es/core/Designer/AiImageGenerator/index.less +136 -0
- package/es/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
- package/es/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
- package/es/core/Designer/ChatRobot/index.js +343 -0
- package/es/core/Designer/ChatRobot/index.less +138 -0
- package/es/core/Designer/ChatRobot/markdown.less +1 -0
- package/es/core/Designer/ConfigPanel/index.js +2 -1
- package/es/core/Designer/FonixtreeGpt/index.js +160 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +101 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +136 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
- package/es/core/Designer/TextEditModal/ToolBar/index.js +219 -0
- package/es/core/Designer/TextEditModal/ToolBar/index.less +19 -0
- package/es/core/Designer/TextEditModal/index.js +100 -0
- package/es/core/Designer/TextEditModal/index.less +4 -0
- package/es/core/Designer/TextEditModal_old/index.js +142 -0
- package/es/core/Designer/TextEditModal_old/index.less +25 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
- package/es/core/Designer/ToolBarModal/index.js +354 -0
- package/es/core/Designer/ToolBarModal/index.less +32 -0
- package/es/core/Designer/index.js +56 -15
- package/es/decorator/index.js +14 -0
- package/es/decorator/lazyLoadDecorator.js +75 -0
- package/es/decorator/metaDecorator.js +1 -1
- package/es/locale/en/en.json +10 -0
- package/es/locale/es/es.json +10 -0
- package/es/locale/id/id.json +10 -0
- package/es/meta-comp/components/Image/index.js +19 -3
- package/es/meta-comp/components/Text/formats/fontFamily.js +58 -0
- package/es/meta-comp/components/Text/formats/fontWeight.js +58 -0
- package/es/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
- package/es/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
- package/es/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
- package/es/meta-comp/components/Text/index.js +103 -374
- package/es/meta-comp/components/Text/index.less +57 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +35 -12
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
- package/es/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
- package/es/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
- package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
- package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
- package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
- package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
- package/es/meta-comp/config-panels/TextConfig/index.js +14 -31
- package/es/meta-comp/config-panels/TextConfig/index.less +12 -16
- package/es/mobx/Frame.js +7 -1
- package/es/mobx/Store.js +3 -0
- package/es/utils/androidUtil.js +8 -1
- package/es/utils/businessUtil.js +13 -0
- package/es/utils/commonUtil.js +156 -34
- package/es/utils/coreUtil.js +18 -4
- package/lib/assets/fonts/magic-box-iconfont.css +67 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +67 -3
- 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/imageTextLeft.svg +6 -0
- package/lib/assets/images/layout-icon/imageTextRight.svg +6 -0
- package/lib/assets/images/layout-icon/locationLayout.png +0 -0
- package/lib/assets/less/slider.less +49 -1
- package/lib/common/ColorPicker/index.js +4 -1
- package/lib/common/Field/index.js +20 -3
- package/lib/common/ImageLazy/index.js +172 -0
- package/lib/common/ImageLazy/index.less +0 -0
- package/lib/common/ImageModal/index.js +35 -2
- package/lib/common/ImagePicker/index.js +76 -12
- package/lib/common/ImagePicker/index.less +1 -0
- package/lib/common/LinkModal/AffiliateProductTable/index.js +348 -0
- package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
- package/lib/common/LinkModal/CatgTable/index.js +1 -1
- package/lib/common/LinkModal/CouponTable/index.js +10 -2
- package/lib/common/LinkModal/FilteredProductModal/index.js +5 -6
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.js +6 -0
- package/lib/common/ProductModal/index.js +2 -2
- package/lib/common/Video/index.js +11 -3
- package/lib/common/Video/index.less +11 -7
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
- package/lib/composite-comp/bol/components/Banner/index.js +15 -1
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -4
- package/lib/composite-comp/bol/components/Button/index.js +3 -4
- package/lib/composite-comp/bol/components/Carousel/index.js +27 -3
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +12 -24
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +5 -6
- package/lib/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
- package/lib/composite-comp/bol/components/CustomCode/index.js +138 -0
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +98 -7
- package/lib/composite-comp/bol/components/ImageText/pc/index.less +32 -0
- package/lib/composite-comp/bol/components/Location/defaultJSON.js +60 -0
- package/lib/composite-comp/bol/components/Location/index.js +100 -0
- package/lib/composite-comp/bol/components/Location/index.less +15 -0
- package/lib/composite-comp/bol/components/Newsletter/index.js +1 -4
- package/lib/composite-comp/bol/components/Tag/index.js +3 -4
- package/lib/composite-comp/bol/components/Text/index.js +3 -4
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +10 -0
- package/lib/composite-comp/bol/components/Video/index.js +23 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
- package/lib/composite-comp/bol/components/Video/mobile/index.js +8 -49
- package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +1 -4
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
- package/lib/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
- package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
- package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +113 -2
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +64 -3
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +2 -1
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -1
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
- package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +21 -37
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +35 -24
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +71 -80
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
- package/lib/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +0 -48
- package/lib/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
- package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/lib/constants/component-types.js +10 -2
- package/lib/constants/index.js +12 -2
- package/lib/constants/layout.js +21 -1
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
- package/lib/core/Designer/AiImageGenerator/History/index.js +147 -0
- package/lib/core/Designer/AiImageGenerator/History/index.less +75 -0
- package/lib/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
- package/lib/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +55 -0
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +45 -0
- package/lib/core/Designer/AiImageGenerator/images/nodata.png +0 -0
- package/lib/core/Designer/AiImageGenerator/index.js +752 -0
- package/lib/core/Designer/AiImageGenerator/index.less +136 -0
- package/lib/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
- package/lib/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
- package/lib/core/Designer/ChatRobot/index.js +343 -0
- package/lib/core/Designer/ChatRobot/index.less +138 -0
- package/lib/core/Designer/ChatRobot/markdown.less +1 -0
- package/lib/core/Designer/ConfigPanel/index.js +2 -1
- package/lib/core/Designer/FonixtreeGpt/index.js +160 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +101 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +136 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
- package/lib/core/Designer/TextEditModal/ToolBar/index.js +219 -0
- package/lib/core/Designer/TextEditModal/ToolBar/index.less +19 -0
- package/lib/core/Designer/TextEditModal/index.js +100 -0
- package/lib/core/Designer/TextEditModal/index.less +4 -0
- package/lib/core/Designer/TextEditModal_old/index.js +142 -0
- package/lib/core/Designer/TextEditModal_old/index.less +25 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
- package/lib/core/Designer/ToolBarModal/index.js +354 -0
- package/lib/core/Designer/ToolBarModal/index.less +32 -0
- package/lib/core/Designer/index.js +56 -15
- package/lib/decorator/index.js +14 -0
- package/lib/decorator/lazyLoadDecorator.js +75 -0
- package/lib/decorator/metaDecorator.js +1 -1
- package/lib/locale/en/en.json +10 -0
- package/lib/locale/es/es.json +10 -0
- package/lib/locale/id/id.json +10 -0
- package/lib/meta-comp/components/Image/index.js +19 -3
- package/lib/meta-comp/components/Text/formats/fontFamily.js +58 -0
- package/lib/meta-comp/components/Text/formats/fontWeight.js +58 -0
- package/lib/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
- package/lib/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
- package/lib/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
- package/lib/meta-comp/components/Text/index.js +103 -374
- package/lib/meta-comp/components/Text/index.less +57 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +35 -12
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
- package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
- package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
- package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
- package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
- package/lib/meta-comp/config-panels/TextConfig/index.js +14 -31
- package/lib/meta-comp/config-panels/TextConfig/index.less +12 -16
- package/lib/mobx/Frame.js +7 -1
- package/lib/mobx/Store.js +3 -0
- package/lib/utils/androidUtil.js +8 -1
- package/lib/utils/businessUtil.js +13 -0
- package/lib/utils/commonUtil.js +156 -34
- package/lib/utils/coreUtil.js +18 -4
- package/package.json +5 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = AffiliateProductTable;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _antd = require("antd");
|
|
13
|
+
|
|
14
|
+
var _commonUtil = require("../../../utils/commonUtil");
|
|
15
|
+
|
|
16
|
+
var _locale = require("../../../locale");
|
|
17
|
+
|
|
18
|
+
var _currencyUtil = require("../../../utils/currencyUtil");
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
25
|
+
__assign = Object.assign || function (t) {
|
|
26
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27
|
+
s = arguments[i];
|
|
28
|
+
|
|
29
|
+
for (var p in s) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return __assign.apply(this, arguments);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
41
|
+
function adopt(value) {
|
|
42
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
43
|
+
resolve(value);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
48
|
+
function fulfilled(value) {
|
|
49
|
+
try {
|
|
50
|
+
step(generator.next(value));
|
|
51
|
+
} catch (e) {
|
|
52
|
+
reject(e);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function rejected(value) {
|
|
57
|
+
try {
|
|
58
|
+
step(generator["throw"](value));
|
|
59
|
+
} catch (e) {
|
|
60
|
+
reject(e);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function step(result) {
|
|
65
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
73
|
+
var _ = {
|
|
74
|
+
label: 0,
|
|
75
|
+
sent: function sent() {
|
|
76
|
+
if (t[0] & 1) throw t[1];
|
|
77
|
+
return t[1];
|
|
78
|
+
},
|
|
79
|
+
trys: [],
|
|
80
|
+
ops: []
|
|
81
|
+
},
|
|
82
|
+
f,
|
|
83
|
+
y,
|
|
84
|
+
t,
|
|
85
|
+
g;
|
|
86
|
+
return g = {
|
|
87
|
+
next: verb(0),
|
|
88
|
+
"throw": verb(1),
|
|
89
|
+
"return": verb(2)
|
|
90
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
91
|
+
return this;
|
|
92
|
+
}), g;
|
|
93
|
+
|
|
94
|
+
function verb(n) {
|
|
95
|
+
return function (v) {
|
|
96
|
+
return step([n, v]);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function step(op) {
|
|
101
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
102
|
+
|
|
103
|
+
while (_) {
|
|
104
|
+
try {
|
|
105
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
106
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
107
|
+
|
|
108
|
+
switch (op[0]) {
|
|
109
|
+
case 0:
|
|
110
|
+
case 1:
|
|
111
|
+
t = op;
|
|
112
|
+
break;
|
|
113
|
+
|
|
114
|
+
case 4:
|
|
115
|
+
_.label++;
|
|
116
|
+
return {
|
|
117
|
+
value: op[1],
|
|
118
|
+
done: false
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
case 5:
|
|
122
|
+
_.label++;
|
|
123
|
+
y = op[1];
|
|
124
|
+
op = [0];
|
|
125
|
+
continue;
|
|
126
|
+
|
|
127
|
+
case 7:
|
|
128
|
+
op = _.ops.pop();
|
|
129
|
+
|
|
130
|
+
_.trys.pop();
|
|
131
|
+
|
|
132
|
+
continue;
|
|
133
|
+
|
|
134
|
+
default:
|
|
135
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
136
|
+
_ = 0;
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
141
|
+
_.label = op[1];
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
146
|
+
_.label = t[1];
|
|
147
|
+
t = op;
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (t && _.label < t[2]) {
|
|
152
|
+
_.label = t[2];
|
|
153
|
+
|
|
154
|
+
_.ops.push(op);
|
|
155
|
+
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (t[2]) _.ops.pop();
|
|
160
|
+
|
|
161
|
+
_.trys.pop();
|
|
162
|
+
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
op = body.call(thisArg, _);
|
|
167
|
+
} catch (e) {
|
|
168
|
+
op = [6, e];
|
|
169
|
+
y = 0;
|
|
170
|
+
} finally {
|
|
171
|
+
f = t = 0;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (op[0] & 5) throw op[1];
|
|
176
|
+
return {
|
|
177
|
+
value: op[0] ? op[1] : void 0,
|
|
178
|
+
done: true
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
var paginationParams = {
|
|
184
|
+
pageSize: 80,
|
|
185
|
+
pageIndex: 1
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
function AffiliateProductTable(props) {
|
|
189
|
+
var _this = this;
|
|
190
|
+
|
|
191
|
+
var _onChange = props.onChange;
|
|
192
|
+
|
|
193
|
+
var _a = (0, _react.useState)([]),
|
|
194
|
+
productList = _a[0],
|
|
195
|
+
setProductList = _a[1];
|
|
196
|
+
|
|
197
|
+
var _b = (0, _react.useState)(false),
|
|
198
|
+
loading = _b[0],
|
|
199
|
+
setLoading = _b[1];
|
|
200
|
+
|
|
201
|
+
var _c = (0, _react.useState)({}),
|
|
202
|
+
formInfo = _c[0],
|
|
203
|
+
setFormInfo = _c[1];
|
|
204
|
+
|
|
205
|
+
var form = _antd.Form.useForm()[0];
|
|
206
|
+
|
|
207
|
+
var queryProduct = function queryProduct(params) {
|
|
208
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
209
|
+
var res;
|
|
210
|
+
return __generator(this, function (_a) {
|
|
211
|
+
switch (_a.label) {
|
|
212
|
+
case 0:
|
|
213
|
+
setLoading(true);
|
|
214
|
+
return [4
|
|
215
|
+
/*yield*/
|
|
216
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/distributor/product/list", __assign(__assign({}, params), {
|
|
217
|
+
state: 'Valid'
|
|
218
|
+
}), 'GET')];
|
|
219
|
+
|
|
220
|
+
case 1:
|
|
221
|
+
res = _a.sent();
|
|
222
|
+
paginationParams.total = res.total;
|
|
223
|
+
setProductList(res.list);
|
|
224
|
+
setLoading(false);
|
|
225
|
+
return [2
|
|
226
|
+
/*return*/
|
|
227
|
+
];
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
(0, _react.useEffect)(function () {
|
|
234
|
+
queryProduct(paginationParams);
|
|
235
|
+
}, []);
|
|
236
|
+
var columns = [{
|
|
237
|
+
title: 'Image',
|
|
238
|
+
dataIndex: 'imgUrls',
|
|
239
|
+
width: 100,
|
|
240
|
+
render: function render(val) {
|
|
241
|
+
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
242
|
+
alt: "",
|
|
243
|
+
src: val && val[0],
|
|
244
|
+
style: {
|
|
245
|
+
maxWidth: '50px',
|
|
246
|
+
maxHeight: '50px'
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
}, {
|
|
251
|
+
title: 'Product Name',
|
|
252
|
+
dataIndex: 'productName',
|
|
253
|
+
ellipsis: true
|
|
254
|
+
}, {
|
|
255
|
+
title: 'Product Code',
|
|
256
|
+
dataIndex: 'affiliateProductCode'
|
|
257
|
+
}, {
|
|
258
|
+
title: 'Price',
|
|
259
|
+
dataIndex: 'productPrice',
|
|
260
|
+
width: 150,
|
|
261
|
+
render: function render(val) {
|
|
262
|
+
return (0, _currencyUtil.formatCurrencyWithSymbol)(val);
|
|
263
|
+
}
|
|
264
|
+
}];
|
|
265
|
+
var rowSelection = {
|
|
266
|
+
onChange: function onChange(selectedRowKeys, selectedRow) {
|
|
267
|
+
_onChange({
|
|
268
|
+
value: selectedRow[0].productName,
|
|
269
|
+
name: selectedRow[0].productName,
|
|
270
|
+
productId: selectedRow[0].affiliateProductId
|
|
271
|
+
});
|
|
272
|
+
},
|
|
273
|
+
type: 'radio'
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
var reset = function reset() {
|
|
277
|
+
form.resetFields(['productName', 'affiliateProductCode']);
|
|
278
|
+
queryProduct(__assign({}, paginationParams));
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
var onQueryClick = function onQueryClick() {
|
|
282
|
+
setLoading(true);
|
|
283
|
+
var data = form.getFieldsValue();
|
|
284
|
+
paginationParams.pageIndex = 1;
|
|
285
|
+
queryProduct(__assign(__assign({}, data), paginationParams));
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
289
|
+
style: {
|
|
290
|
+
height: 550
|
|
291
|
+
}
|
|
292
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
293
|
+
form: form,
|
|
294
|
+
initialValues: formInfo,
|
|
295
|
+
labelCol: {
|
|
296
|
+
span: 8
|
|
297
|
+
},
|
|
298
|
+
layout: "horizontal"
|
|
299
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Row, {
|
|
300
|
+
gutter: 24
|
|
301
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
302
|
+
span: 9
|
|
303
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
304
|
+
label: "Product Name",
|
|
305
|
+
name: "productName"
|
|
306
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
307
|
+
size: "small"
|
|
308
|
+
}))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
309
|
+
span: 9
|
|
310
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
311
|
+
label: "Sku Code",
|
|
312
|
+
name: "affiliateProductCode"
|
|
313
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
314
|
+
size: "small"
|
|
315
|
+
}))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
316
|
+
span: 6
|
|
317
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
318
|
+
onClick: onQueryClick,
|
|
319
|
+
size: "small",
|
|
320
|
+
style: {
|
|
321
|
+
marginRight: 10
|
|
322
|
+
},
|
|
323
|
+
type: "primary"
|
|
324
|
+
}, (0, _locale.i18n)('QUERY')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
325
|
+
onClick: function onClick() {
|
|
326
|
+
reset();
|
|
327
|
+
},
|
|
328
|
+
size: "small"
|
|
329
|
+
}, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
330
|
+
bordered: false,
|
|
331
|
+
columns: columns,
|
|
332
|
+
dataSource: productList,
|
|
333
|
+
defaultExpandAllRows: true,
|
|
334
|
+
loading: loading,
|
|
335
|
+
pagination: __assign(__assign({}, paginationParams), {
|
|
336
|
+
onChange: function onChange(page) {
|
|
337
|
+
paginationParams.pageIndex = page;
|
|
338
|
+
queryProduct(__assign({}, paginationParams));
|
|
339
|
+
},
|
|
340
|
+
showSizeChanger: false
|
|
341
|
+
}),
|
|
342
|
+
rowKey: "affiliateProductId",
|
|
343
|
+
rowSelection: rowSelection,
|
|
344
|
+
scroll: {
|
|
345
|
+
y: 350
|
|
346
|
+
}
|
|
347
|
+
}));
|
|
348
|
+
}
|
|
@@ -179,7 +179,7 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
179
179
|
campaignName = _b[0],
|
|
180
180
|
setCampaignName = _b[1];
|
|
181
181
|
|
|
182
|
-
var _c = (0, _react.useState)(''),
|
|
182
|
+
var _c = (0, _react.useState)(window.magicDesign.storeId ? window.magicDesign.storeId : ''),
|
|
183
183
|
storeId = _c[0],
|
|
184
184
|
setStoreId = _c[1];
|
|
185
185
|
|
|
@@ -241,7 +241,7 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
241
241
|
|
|
242
242
|
var reset = function reset() {
|
|
243
243
|
setCampaignName('');
|
|
244
|
-
setStoreId('');
|
|
244
|
+
setStoreId(window.magicDesign.storeId ? window.magicDesign.storeId : '');
|
|
245
245
|
setCmpState('A,B');
|
|
246
246
|
};
|
|
247
247
|
|
|
@@ -184,7 +184,7 @@ function CatgTable(props) {
|
|
|
184
184
|
setLoading(true);
|
|
185
185
|
return [4
|
|
186
186
|
/*yield*/
|
|
187
|
-
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/
|
|
187
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/designer/resource/offercatgs/list", {}, 'GET')];
|
|
188
188
|
|
|
189
189
|
case 1:
|
|
190
190
|
res = _a.sent();
|
|
@@ -246,14 +246,22 @@ function CouponTable(props) {
|
|
|
246
246
|
|
|
247
247
|
var getCoupons = function getCoupons(params) {
|
|
248
248
|
return __awaiter(_this, void 0, void 0, function () {
|
|
249
|
-
var res, list;
|
|
249
|
+
var newParams, res, list;
|
|
250
250
|
return __generator(this, function (_a) {
|
|
251
251
|
switch (_a.label) {
|
|
252
252
|
case 0:
|
|
253
253
|
setLoading(true);
|
|
254
|
+
newParams = __assign(__assign({}, params), {
|
|
255
|
+
tableFlag: 'effective',
|
|
256
|
+
isPublic: 'Y',
|
|
257
|
+
state: 'A',
|
|
258
|
+
couponLocation: 'Promotion',
|
|
259
|
+
pageTotal: false,
|
|
260
|
+
storeId: window.magicDesign.storeId ? window.magicDesign.storeId : ''
|
|
261
|
+
});
|
|
254
262
|
return [4
|
|
255
263
|
/*yield*/
|
|
256
|
-
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/coupons/couponList/page
|
|
264
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/coupons/couponList/page", newParams, 'GET')];
|
|
257
265
|
|
|
258
266
|
case 1:
|
|
259
267
|
res = _a.sent();
|
|
@@ -217,7 +217,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
217
217
|
storeName = _g[0],
|
|
218
218
|
setStoreName = _g[1];
|
|
219
219
|
|
|
220
|
-
var _h = (0, _react.useState)(''),
|
|
220
|
+
var _h = (0, _react.useState)(window.magicDesign.storeId || ''),
|
|
221
221
|
storeId = _h[0],
|
|
222
222
|
setStoreId = _h[1];
|
|
223
223
|
|
|
@@ -281,7 +281,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
281
281
|
settVal([]);
|
|
282
282
|
settBrandId([]);
|
|
283
283
|
settLabelId({});
|
|
284
|
-
setStoreId('');
|
|
284
|
+
setStoreId(window.magicDesign.storeId || '');
|
|
285
285
|
setStoreName('');
|
|
286
286
|
setProductName('');
|
|
287
287
|
setMinimum('');
|
|
@@ -346,7 +346,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
346
346
|
case 0:
|
|
347
347
|
return [4
|
|
348
348
|
/*yield*/
|
|
349
|
-
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/
|
|
349
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/designer/resource/offercatgs/list", {}, 'GET')];
|
|
350
350
|
|
|
351
351
|
case 1:
|
|
352
352
|
res = _a.sent();
|
|
@@ -368,7 +368,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
368
368
|
case 0:
|
|
369
369
|
return [4
|
|
370
370
|
/*yield*/
|
|
371
|
-
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/
|
|
371
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/designer/resource/brand/list", {}, 'GET')];
|
|
372
372
|
|
|
373
373
|
case 1:
|
|
374
374
|
res = _a.sent();
|
|
@@ -471,8 +471,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
471
471
|
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/offers/es", params, 'POST')];
|
|
472
472
|
|
|
473
473
|
case 1:
|
|
474
|
-
res = _a.sent();
|
|
475
|
-
|
|
474
|
+
res = _a.sent();
|
|
476
475
|
setLoading(false);
|
|
477
476
|
paginationParams.total = res.total;
|
|
478
477
|
|
|
@@ -220,7 +220,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
220
220
|
productName = _e[0],
|
|
221
221
|
setProductName = _e[1];
|
|
222
222
|
|
|
223
|
-
var _f = (0, _react.useState)(
|
|
223
|
+
var _f = (0, _react.useState)(''),
|
|
224
224
|
storeId = _f[0],
|
|
225
225
|
setStoreId = _f[1];
|
|
226
226
|
|
|
@@ -309,7 +309,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
309
309
|
case 0:
|
|
310
310
|
return [4
|
|
311
311
|
/*yield*/
|
|
312
|
-
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/
|
|
312
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/designer/resource/brand/list")];
|
|
313
313
|
|
|
314
314
|
case 1:
|
|
315
315
|
res = _a.sent();
|
|
@@ -357,7 +357,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
357
357
|
setProductName('');
|
|
358
358
|
setProductCode('');
|
|
359
359
|
setBrandId([]);
|
|
360
|
-
setStoreId(
|
|
360
|
+
setStoreId('');
|
|
361
361
|
};
|
|
362
362
|
|
|
363
363
|
(0, _react.useEffect)(function () {
|
|
@@ -35,6 +35,8 @@ var _StoreTable = _interopRequireDefault(require("./StoreTable"));
|
|
|
35
35
|
|
|
36
36
|
var _StoreCatgTable = _interopRequireDefault(require("./StoreCatgTable"));
|
|
37
37
|
|
|
38
|
+
var _AffiliateProductTable = _interopRequireDefault(require("./AffiliateProductTable"));
|
|
39
|
+
|
|
38
40
|
var _locale = require("../../locale");
|
|
39
41
|
|
|
40
42
|
var _commonUtil = require("../../utils/commonUtil");
|
|
@@ -341,6 +343,10 @@ var LinkModal = function LinkModal(props) {
|
|
|
341
343
|
onChange: function onChange(value) {
|
|
342
344
|
return setLinkUrl(value);
|
|
343
345
|
}
|
|
346
|
+
}), item.linkTypeCode === 'AffiliateProduct' && /*#__PURE__*/_react["default"].createElement(_AffiliateProductTable["default"], {
|
|
347
|
+
onChange: function onChange(value) {
|
|
348
|
+
return setLinkUrl(value);
|
|
349
|
+
}
|
|
344
350
|
}));
|
|
345
351
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
346
352
|
className: "footer"
|
|
@@ -271,7 +271,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
271
271
|
productCode = _m[0],
|
|
272
272
|
setProductCode = _m[1];
|
|
273
273
|
|
|
274
|
-
var _o = (0, _react.useState)(
|
|
274
|
+
var _o = (0, _react.useState)(''),
|
|
275
275
|
storeId = _o[0],
|
|
276
276
|
setStoreId = _o[1];
|
|
277
277
|
|
|
@@ -491,7 +491,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
491
491
|
setSelCatgsList([]);
|
|
492
492
|
setSelLabelData([]);
|
|
493
493
|
setProductName('');
|
|
494
|
-
setStoreId(
|
|
494
|
+
setStoreId('');
|
|
495
495
|
setProductCode('');
|
|
496
496
|
setMinPrice('');
|
|
497
497
|
setMaxPrice('');
|
|
@@ -203,6 +203,8 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
|
+
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
|
207
|
+
|
|
206
208
|
|
|
207
209
|
/** 检查youtube依赖包 */
|
|
208
210
|
var checkYoutuVIdeo = function checkYoutuVIdeo() {
|
|
@@ -587,6 +589,7 @@ function (_super) {
|
|
|
587
589
|
/** YouTube播放器 */
|
|
588
590
|
|
|
589
591
|
_this.ytPlayer = null;
|
|
592
|
+
_this.timer = null;
|
|
590
593
|
/** 创建视频弹框显示 */
|
|
591
594
|
|
|
592
595
|
_this.createVideoModal = function (videoId) {
|
|
@@ -714,7 +717,11 @@ function (_super) {
|
|
|
714
717
|
}
|
|
715
718
|
|
|
716
719
|
Video.prototype.componentDidMount = function () {
|
|
717
|
-
this.getInit
|
|
720
|
+
this.timer = setTimeout(this.getInit, 1000);
|
|
721
|
+
};
|
|
722
|
+
|
|
723
|
+
Video.prototype.componentWillUnmount = function () {
|
|
724
|
+
this.timer && clearTimeout(this.timer);
|
|
718
725
|
};
|
|
719
726
|
|
|
720
727
|
Video.prototype.render = function () {
|
|
@@ -727,8 +734,9 @@ function (_super) {
|
|
|
727
734
|
}, opts.source ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
728
735
|
className: "video-wrap",
|
|
729
736
|
id: 'video' + videoId
|
|
730
|
-
}) : null, !play && /*#__PURE__*/_react["default"].createElement("
|
|
731
|
-
className: "cover-
|
|
737
|
+
}) : null, !play && opts.cover && /*#__PURE__*/_react["default"].createElement("img", {
|
|
738
|
+
className: "video-cover-img",
|
|
739
|
+
src: opts.cover
|
|
732
740
|
}));
|
|
733
741
|
};
|
|
734
742
|
|
|
@@ -3,17 +3,21 @@
|
|
|
3
3
|
height: 100%;
|
|
4
4
|
background-image: linear-gradient(0, rgba(0, 0, 0, .2), rgba(0, 0, 0, .1), rgba(0, 0, 0, .2));
|
|
5
5
|
|
|
6
|
-
.prism-player .prism-cover {
|
|
7
|
-
z-index: 0;
|
|
8
|
-
}
|
|
9
6
|
|
|
10
|
-
.cover-
|
|
7
|
+
.video-cover-img {
|
|
11
8
|
position: absolute;
|
|
12
|
-
|
|
9
|
+
top: 0;
|
|
13
10
|
right: 0;
|
|
11
|
+
left: 0;
|
|
14
12
|
bottom: 0;
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
object-fit: cover;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
z-index: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.prism-player .prism-cover {
|
|
20
|
+
z-index: 0;
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
.video-wrap {
|
|
@@ -66,7 +66,21 @@ function (_super) {
|
|
|
66
66
|
|
|
67
67
|
function Banner() {
|
|
68
68
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
69
|
-
}
|
|
69
|
+
} // componentWillMount() {
|
|
70
|
+
// // 兼容新功能: 轮播的 dots 点 区分pc 移动
|
|
71
|
+
// const { nodeData } = this.props;
|
|
72
|
+
// if (!nodeData.setting.dots.color.pc || !nodeData.setting.dots.hoverColor.pc || !nodeData.setting.dots.size.pc) {
|
|
73
|
+
// nodeData.setting.dots = { ...nodeData.setting.dots,
|
|
74
|
+
// ...{
|
|
75
|
+
// color: { pc: '#fff', mobile: '#fff' },
|
|
76
|
+
// hoverColor: { pc: '#fff', mobile: '#fff' },
|
|
77
|
+
// size: { pc: 16, mobile: 8 },
|
|
78
|
+
// hoverSize: { pc: 16, mobile: 8 },
|
|
79
|
+
// },
|
|
80
|
+
// };
|
|
81
|
+
// }
|
|
82
|
+
// }
|
|
83
|
+
|
|
70
84
|
|
|
71
85
|
Banner.prototype.render = function () {
|
|
72
86
|
var nodeData = this.props.nodeData; // console.log('---banner', nodeData);
|
|
@@ -182,10 +182,7 @@ function (_super) {
|
|
|
182
182
|
carouseIndex = _a.carouseIndex,
|
|
183
183
|
hoverState = _a.hoverState;
|
|
184
184
|
var autoplay = data.setting.autoplay.open;
|
|
185
|
-
var GAData =
|
|
186
|
-
moduleId: data.id,
|
|
187
|
-
moduleName: data.moduleIndex + '.' + data.type
|
|
188
|
-
};
|
|
185
|
+
var GAData = (0, _commonUtil.getGAData)(data);
|
|
189
186
|
/** 设计器模式下 如果选中特定group 自动播放关闭 */
|
|
190
187
|
|
|
191
188
|
if ((0, _coreUtil.isDesignMode)() && _mobx.store.clickedGroup) {
|