@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
|
@@ -205,7 +205,7 @@ function (_super) {
|
|
|
205
205
|
_this.onClick = function (event) {// console.log(event);
|
|
206
206
|
};
|
|
207
207
|
|
|
208
|
-
_this.getImg = function (v) {
|
|
208
|
+
_this.getImg = function (v, way) {
|
|
209
209
|
return __awaiter(_this, void 0, void 0, function () {
|
|
210
210
|
var data, _scale, pcImg, h5Img;
|
|
211
211
|
|
|
@@ -214,6 +214,9 @@ function (_super) {
|
|
|
214
214
|
case 0:
|
|
215
215
|
data = this.props.data;
|
|
216
216
|
_scale = 1;
|
|
217
|
+
if (!v) return [3
|
|
218
|
+
/*break*/
|
|
219
|
+
, 6];
|
|
217
220
|
if (!(0, _coreUtil.isPc)()) return [3
|
|
218
221
|
/*break*/
|
|
219
222
|
, 3];
|
|
@@ -267,6 +270,10 @@ function (_super) {
|
|
|
267
270
|
_a.label = 6;
|
|
268
271
|
|
|
269
272
|
case 6:
|
|
273
|
+
if (way) {
|
|
274
|
+
data.content.imageSelectedWay = way;
|
|
275
|
+
}
|
|
276
|
+
|
|
270
277
|
this.selfRender();
|
|
271
278
|
return [2
|
|
272
279
|
/*return*/
|
|
@@ -276,17 +283,23 @@ function (_super) {
|
|
|
276
283
|
});
|
|
277
284
|
};
|
|
278
285
|
|
|
279
|
-
_this.getImgHoverUrl = function (v) {
|
|
286
|
+
_this.getImgHoverUrl = function (v, way) {
|
|
280
287
|
var data = _this.props.data;
|
|
281
288
|
|
|
282
|
-
if (
|
|
283
|
-
|
|
289
|
+
if (v) {
|
|
290
|
+
if ((0, _coreUtil.isPc)()) {
|
|
291
|
+
data.hover.pcImgHoverUrl = v.url;
|
|
284
292
|
|
|
285
|
-
|
|
293
|
+
if (!data.hover.h5ImgHoverUrl) {
|
|
294
|
+
data.hover.h5ImgHoverUrl = v.url;
|
|
295
|
+
}
|
|
296
|
+
} else {
|
|
286
297
|
data.hover.h5ImgHoverUrl = v.url;
|
|
287
298
|
}
|
|
288
|
-
}
|
|
289
|
-
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
if (way) {
|
|
302
|
+
data.hover.imageSelectedWay = way;
|
|
290
303
|
}
|
|
291
304
|
|
|
292
305
|
_this.selfRender();
|
|
@@ -306,13 +319,19 @@ function (_super) {
|
|
|
306
319
|
data = _a.data,
|
|
307
320
|
needHover = _a.needHover,
|
|
308
321
|
needClickArea = _a.needClickArea,
|
|
309
|
-
needURL = _a.needURL
|
|
322
|
+
needURL = _a.needURL,
|
|
323
|
+
recommendImgSize = _a.recommendImgSize;
|
|
310
324
|
var selectImg = this.getSelectedImg(data);
|
|
311
325
|
|
|
312
326
|
var ContentSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
|
|
313
|
-
|
|
314
|
-
|
|
327
|
+
imageSelectedWay: data.content.imageSelectedWay || {
|
|
328
|
+
pc: '',
|
|
329
|
+
mobile: ''
|
|
330
|
+
},
|
|
331
|
+
onChange: function onChange(v, way) {
|
|
332
|
+
_this.getImg(v, way);
|
|
315
333
|
},
|
|
334
|
+
recommendImgSize: recommendImgSize,
|
|
316
335
|
value: selectImg
|
|
317
336
|
}), needClickArea && selectImg && /*#__PURE__*/_react["default"].createElement(_HotAreaConfig["default"], {
|
|
318
337
|
imgUrl: selectImg,
|
|
@@ -364,8 +383,12 @@ function (_super) {
|
|
|
364
383
|
count: data.hover.magnification
|
|
365
384
|
}
|
|
366
385
|
})), data.hover.backgroundType === 'new' && /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
|
|
367
|
-
|
|
368
|
-
|
|
386
|
+
imageSelectedWay: data.hover.imageSelectedWay || {
|
|
387
|
+
pc: '',
|
|
388
|
+
mobile: ''
|
|
389
|
+
},
|
|
390
|
+
onChange: function onChange(v, way) {
|
|
391
|
+
return _this.getImgHoverUrl(v, way);
|
|
369
392
|
},
|
|
370
393
|
value: (0, _coreUtil.isPc)() ? data.hover.pcImgHoverUrl : data.hover.h5ImgHoverUrl
|
|
371
394
|
}));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.25 4.5C8.86522 4.5 4.5 8.86522 4.5 14.25C4.5 19.6348 8.86522 24 14.25 24C19.6348 24 24 19.6348 24 14.25C24 8.86522 19.6348 4.5 14.25 4.5ZM3 14.25C3 8.0368 8.0368 3 14.25 3C20.4632 3 25.5 8.0368 25.5 14.25C25.5 20.4632 20.4632 25.5 14.25 25.5C8.0368 25.5 3 20.4632 3 14.25Z" fill="black"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.8961 10.0887C12.14 9.95823 12.4359 9.97254 12.666 10.126L17.916 13.626C18.1247 13.7651 18.25 13.9992 18.25 14.25C18.25 14.5008 18.1247 14.7349 17.916 14.874L12.666 18.374C12.4359 18.5275 12.14 18.5418 11.8961 18.4113C11.6522 18.2807 11.5 18.0266 11.5 17.75V10.75C11.5 10.4734 11.6522 10.2193 11.8961 10.0887Z" fill="black"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14 2.625C11.7502 2.625 9.551 3.29213 7.68039 4.54203C5.80978 5.79193 4.35182 7.56847 3.49088 9.64698C2.62993 11.7255 2.40467 14.0126 2.84357 16.2192C3.28248 18.4257 4.36584 20.4525 5.95667 22.0433C7.54749 23.6342 9.57432 24.7175 11.7809 25.1564C13.9874 25.5953 16.2745 25.3701 18.353 24.5091C20.4315 23.6482 22.2081 22.1902 23.458 20.3196C24.7079 18.449 25.375 16.2498 25.375 14C25.3692 10.9849 24.1689 8.09502 22.037 5.96305C19.905 3.83107 17.0151 2.63078 14 2.625Z" fill="black"/>
|
|
3
|
+
<path d="M17.9813 14.7322L12.7313 18.2322C12.5865 18.3218 12.4203 18.3709 12.25 18.3744C12.1057 18.3743 11.9634 18.3406 11.8344 18.276C11.6945 18.2005 11.5778 18.0883 11.4969 17.9515C11.416 17.8147 11.3738 17.6584 11.375 17.4994V10.4994C11.3738 10.3405 11.416 10.1842 11.4969 10.0474C11.5778 9.91054 11.6945 9.79836 11.8344 9.72286C11.9749 9.65176 12.1314 9.61841 12.2886 9.62608C12.4459 9.63375 12.5984 9.68218 12.7313 9.76661L17.9813 13.2666C18.1031 13.3461 18.2033 13.4548 18.2726 13.5827C18.3419 13.7107 18.3781 13.8539 18.3781 13.9994C18.3781 14.1449 18.3419 14.2882 18.2726 14.4161C18.2033 14.5441 18.1031 14.6527 17.9813 14.7322Z" fill="white"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M25 6.5H3C2.17157 6.5 1.5 7.17157 1.5 8V21C1.5 21.8284 2.17157 22.5 3 22.5H25C25.8284 22.5 26.5 21.8284 26.5 21V8C26.5 7.17157 25.8284 6.5 25 6.5ZM3 5C1.34315 5 0 6.34315 0 8V21C0 22.6569 1.34315 24 3 24H25C26.6569 24 28 22.6569 28 21V8C28 6.34315 26.6569 5 25 5H3Z" fill="black"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.8961 10.3387C12.14 10.2082 12.4359 10.2225 12.666 10.376L17.916 13.876C18.1247 14.0151 18.25 14.2492 18.25 14.5C18.25 14.7508 18.1247 14.9849 17.916 15.124L12.666 18.624C12.4359 18.7775 12.14 18.7918 11.8961 18.6613C11.6522 18.5307 11.5 18.2766 11.5 18V11C11.5 10.7234 11.6522 10.4693 11.8961 10.3387Z" fill="black"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect y="4" width="28" height="20" rx="3" fill="black"/>
|
|
3
|
+
<path d="M17.6063 14.6072L12.3563 18.1072C12.2115 18.1968 12.0453 18.2459 11.875 18.2494C11.7307 18.2493 11.5884 18.2156 11.4594 18.151C11.3195 18.0755 11.2028 17.9633 11.1219 17.8265C11.041 17.6897 10.9988 17.5334 11 17.3744V10.3744C10.9988 10.2155 11.041 10.0592 11.1219 9.92236C11.2028 9.78554 11.3195 9.67336 11.4594 9.59786C11.5999 9.52676 11.7564 9.49341 11.9136 9.50108C12.0709 9.50875 12.2234 9.55718 12.3563 9.64161L17.6063 13.1416C17.7281 13.2211 17.8283 13.3298 17.8976 13.4577C17.9669 13.5857 18.0031 13.7289 18.0031 13.8744C18.0031 14.0199 17.9669 14.1632 17.8976 14.2911C17.8283 14.4191 17.7281 14.5277 17.6063 14.6072Z" fill="white"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M21.4288 12.9462L10.7945 6.18518C10.6174 6.06826 10.4128 6.00428 10.2032 6.00021C9.99348 5.99614 9.78676 6.05214 9.60557 6.1621C9.42169 6.26718 9.26841 6.42193 9.16184 6.61008C9.05528 6.79823 8.99937 7.01281 9.00001 7.23126V20.7687C8.99937 20.9872 9.05528 21.2018 9.16184 21.3899C9.26841 21.5781 9.42169 21.7328 9.60557 21.8379C9.78676 21.9479 9.99348 22.0039 10.2032 21.9998C10.4128 21.9957 10.6174 21.9317 10.7945 21.8148L21.4288 15.0538C21.6031 14.9443 21.7473 14.7897 21.8473 14.6051C21.9474 14.4204 22 14.212 22 14C22 13.788 21.9474 13.5796 21.8473 13.3949C21.7473 13.2103 21.6031 13.0558 21.4288 12.9462Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.25 4.5C8.86522 4.5 4.5 8.86522 4.5 14.25C4.5 19.6348 8.86522 24 14.25 24C19.6348 24 24 19.6348 24 14.25C24 8.86522 19.6348 4.5 14.25 4.5ZM3 14.25C3 8.0368 8.0368 3 14.25 3C20.4632 3 25.5 8.0368 25.5 14.25C25.5 20.4632 20.4632 25.5 14.25 25.5C8.0368 25.5 3 20.4632 3 14.25Z" fill="white"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.8961 10.0887C12.14 9.95823 12.4359 9.97254 12.666 10.126L17.916 13.626C18.1247 13.7651 18.25 13.9992 18.25 14.25C18.25 14.5008 18.1247 14.7349 17.916 14.874L12.666 18.374C12.4359 18.5275 12.14 18.5418 11.8961 18.4113C11.6522 18.2807 11.5 18.0266 11.5 17.75V10.75C11.5 10.4734 11.6522 10.2193 11.8961 10.0887Z" fill="white"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14 2.625C11.7502 2.625 9.551 3.29213 7.68039 4.54203C5.80978 5.79193 4.35182 7.56847 3.49088 9.64698C2.62993 11.7255 2.40467 14.0126 2.84357 16.2192C3.28248 18.4257 4.36584 20.4525 5.95667 22.0433C7.54749 23.6342 9.57432 24.7175 11.7809 25.1564C13.9874 25.5953 16.2745 25.3701 18.353 24.5091C20.4315 23.6482 22.2081 22.1902 23.458 20.3196C24.7079 18.449 25.375 16.2498 25.375 14C25.3692 10.9849 24.1689 8.09502 22.037 5.96305C19.905 3.83107 17.0151 2.63078 14 2.625Z" fill="white"/>
|
|
3
|
+
<path d="M17.9813 14.7322L12.7313 18.2322C12.5865 18.3218 12.4203 18.3709 12.25 18.3744C12.1057 18.3743 11.9634 18.3406 11.8344 18.276C11.6945 18.2005 11.5778 18.0883 11.4969 17.9515C11.416 17.8147 11.3738 17.6584 11.375 17.4994V10.4994C11.3738 10.3405 11.416 10.1842 11.4969 10.0474C11.5778 9.91054 11.6945 9.79836 11.8344 9.72286C11.9749 9.65176 12.1314 9.61841 12.2886 9.62608C12.4459 9.63375 12.5984 9.68218 12.7313 9.76661L17.9813 13.2666C18.1031 13.3461 18.2033 13.4548 18.2726 13.5827C18.3419 13.7107 18.3781 13.8539 18.3781 13.9994C18.3781 14.1449 18.3419 14.2882 18.2726 14.4161C18.2033 14.5441 18.1031 14.6527 17.9813 14.7322Z" fill="black"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M25 6.5H3C2.17157 6.5 1.5 7.17157 1.5 8V21C1.5 21.8284 2.17157 22.5 3 22.5H25C25.8284 22.5 26.5 21.8284 26.5 21V8C26.5 7.17157 25.8284 6.5 25 6.5ZM3 5C1.34315 5 0 6.34315 0 8V21C0 22.6569 1.34315 24 3 24H25C26.6569 24 28 22.6569 28 21V8C28 6.34315 26.6569 5 25 5H3Z" fill="white"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.8961 10.3387C12.14 10.2082 12.4359 10.2225 12.666 10.376L17.916 13.876C18.1247 14.0151 18.25 14.2492 18.25 14.5C18.25 14.7508 18.1247 14.9849 17.916 15.124L12.666 18.624C12.4359 18.7775 12.14 18.7918 11.8961 18.6613C11.6522 18.5307 11.5 18.2766 11.5 18V11C11.5 10.7234 11.6522 10.4693 11.8961 10.3387Z" fill="white"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect y="4" width="28" height="20" rx="3" fill="white"/>
|
|
3
|
+
<path d="M17.6063 14.6072L12.3563 18.1072C12.2115 18.1968 12.0453 18.2459 11.875 18.2494C11.7307 18.2493 11.5884 18.2156 11.4594 18.151C11.3195 18.0755 11.2028 17.9633 11.1219 17.8265C11.041 17.6897 10.9988 17.5334 11 17.3744V10.3744C10.9988 10.2155 11.041 10.0592 11.1219 9.92236C11.2028 9.78554 11.3195 9.67336 11.4594 9.59786C11.5999 9.52676 11.7564 9.49341 11.9136 9.50108C12.0709 9.50875 12.2234 9.55718 12.3563 9.64161L17.6063 13.1416C17.7281 13.2211 17.8283 13.3298 17.8976 13.4577C17.9669 13.5857 18.0031 13.7289 18.0031 13.8744C18.0031 14.0199 17.9669 14.1632 17.8976 14.2911C17.8283 14.4191 17.7281 14.5277 17.6063 14.6072Z" fill="black"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M21.4288 12.9462L10.7945 6.18518C10.6174 6.06826 10.4128 6.00428 10.2032 6.00021C9.99348 5.99614 9.78676 6.05214 9.60557 6.1621C9.42169 6.26718 9.26841 6.42193 9.16184 6.61008C9.05528 6.79823 8.99937 7.01281 9.00001 7.23126V20.7687C8.99937 20.9872 9.05528 21.2018 9.16184 21.3899C9.26841 21.5781 9.42169 21.7328 9.60557 21.8379C9.78676 21.9479 9.99348 22.0039 10.2032 21.9998C10.4128 21.9957 10.6174 21.9317 10.7945 21.8148L21.4288 15.0538C21.6031 14.9443 21.7473 14.7897 21.8473 14.6051C21.9474 14.4204 22 14.212 22 14C22 13.788 21.9474 13.5796 21.8473 13.3949C21.7473 13.2103 21.6031 13.0558 21.4288 12.9462Z" fill="white"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = PlaySvg;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _darkPlayicon = _interopRequireDefault(require("./images/dark-playicon-01.svg"));
|
|
11
|
+
|
|
12
|
+
var _darkPlayicon2 = _interopRequireDefault(require("./images/dark-playicon-02.svg"));
|
|
13
|
+
|
|
14
|
+
var _darkPlayicon3 = _interopRequireDefault(require("./images/dark-playicon-03.svg"));
|
|
15
|
+
|
|
16
|
+
var _darkPlayicon4 = _interopRequireDefault(require("./images/dark-playicon-04.svg"));
|
|
17
|
+
|
|
18
|
+
var _darkPlayicon5 = _interopRequireDefault(require("./images/dark-playicon-05.svg"));
|
|
19
|
+
|
|
20
|
+
var _lightPlayicon = _interopRequireDefault(require("./images/light-playicon-01.svg"));
|
|
21
|
+
|
|
22
|
+
var _lightPlayicon2 = _interopRequireDefault(require("./images/light-playicon-02.svg"));
|
|
23
|
+
|
|
24
|
+
var _lightPlayicon3 = _interopRequireDefault(require("./images/light-playicon-03.svg"));
|
|
25
|
+
|
|
26
|
+
var _lightPlayicon4 = _interopRequireDefault(require("./images/light-playicon-04.svg"));
|
|
27
|
+
|
|
28
|
+
var _lightPlayicon5 = _interopRequireDefault(require("./images/light-playicon-05.svg"));
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
+
|
|
32
|
+
var imageSrcMap = {
|
|
33
|
+
'light-playicon-01': _lightPlayicon["default"],
|
|
34
|
+
'light-playicon-02': _lightPlayicon2["default"],
|
|
35
|
+
'light-playicon-03': _lightPlayicon3["default"],
|
|
36
|
+
'light-playicon-04': _lightPlayicon4["default"],
|
|
37
|
+
'light-playicon-05': _lightPlayicon5["default"],
|
|
38
|
+
'dark-playicon-01': _darkPlayicon["default"],
|
|
39
|
+
'dark-playicon-02': _darkPlayicon2["default"],
|
|
40
|
+
'dark-playicon-03': _darkPlayicon3["default"],
|
|
41
|
+
'dark-playicon-04': _darkPlayicon4["default"],
|
|
42
|
+
'dark-playicon-05': _darkPlayicon5["default"]
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
function PlaySvg(props) {
|
|
46
|
+
// const [imgSrc, setImgSrc] = useState(null);
|
|
47
|
+
// const getImageUrl = async () => {
|
|
48
|
+
// console.log('-- imagePath', imageSrcMap[props.imgName]);
|
|
49
|
+
// return await import(`./images/${props.imgName}.svg`);
|
|
50
|
+
// };
|
|
51
|
+
// useEffect(() => {
|
|
52
|
+
// getImageUrl().then(v => {
|
|
53
|
+
// setImgSrc(v.default);
|
|
54
|
+
// });
|
|
55
|
+
// });
|
|
56
|
+
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
57
|
+
alt: "icon",
|
|
58
|
+
src: imageSrcMap[props.imgName],
|
|
59
|
+
style: {
|
|
60
|
+
width: props.imgWidth
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
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("antd");
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
require("./index.less");
|
|
15
|
+
|
|
16
|
+
var _PlaySvg = _interopRequireDefault(require("./PlaySvg"));
|
|
17
|
+
|
|
18
|
+
var _BaseConfig = _interopRequireDefault(require("../BaseConfig"));
|
|
19
|
+
|
|
20
|
+
var _common = require("../../../common");
|
|
21
|
+
|
|
22
|
+
var _locale = require("../../../locale");
|
|
23
|
+
|
|
24
|
+
var _coreUtil = require("../../../utils/coreUtil");
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
+
|
|
28
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
30
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
31
|
+
__proto__: []
|
|
32
|
+
} instanceof Array && function (d, b) {
|
|
33
|
+
d.__proto__ = b;
|
|
34
|
+
} || function (d, b) {
|
|
35
|
+
for (var p in b) {
|
|
36
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return _extendStatics(d, b);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return function (d, b) {
|
|
44
|
+
_extendStatics(d, b);
|
|
45
|
+
|
|
46
|
+
function __() {
|
|
47
|
+
this.constructor = d;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51
|
+
};
|
|
52
|
+
}();
|
|
53
|
+
/* eslint-disable react/no-this-in-sfc */
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
var Option = _antd.Select.Option;
|
|
57
|
+
var iconColorList = [{
|
|
58
|
+
key: 'Light',
|
|
59
|
+
value: (0, _locale.i18n)('LIGHT')
|
|
60
|
+
}, {
|
|
61
|
+
key: 'Dark',
|
|
62
|
+
value: (0, _locale.i18n)('DARK')
|
|
63
|
+
}];
|
|
64
|
+
var DarkIconList = [{
|
|
65
|
+
iconName: 'dark-playicon-01'
|
|
66
|
+
}, {
|
|
67
|
+
iconName: 'dark-playicon-02'
|
|
68
|
+
}, {
|
|
69
|
+
iconName: 'dark-playicon-03'
|
|
70
|
+
}, {
|
|
71
|
+
iconName: 'dark-playicon-04'
|
|
72
|
+
}, {
|
|
73
|
+
iconName: 'dark-playicon-05'
|
|
74
|
+
}];
|
|
75
|
+
var LightIconList = [{
|
|
76
|
+
iconName: 'light-playicon-01'
|
|
77
|
+
}, {
|
|
78
|
+
iconName: 'light-playicon-02'
|
|
79
|
+
}, {
|
|
80
|
+
iconName: 'light-playicon-03'
|
|
81
|
+
}, {
|
|
82
|
+
iconName: 'light-playicon-04'
|
|
83
|
+
}, {
|
|
84
|
+
iconName: 'light-playicon-05'
|
|
85
|
+
}];
|
|
86
|
+
var iconList = LightIconList;
|
|
87
|
+
|
|
88
|
+
var PlayIconConfig =
|
|
89
|
+
/** @class */
|
|
90
|
+
function (_super) {
|
|
91
|
+
__extends(PlayIconConfig, _super);
|
|
92
|
+
|
|
93
|
+
function PlayIconConfig() {
|
|
94
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
95
|
+
|
|
96
|
+
_this.state = {
|
|
97
|
+
iconSelectedIndex: 0
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
_this.reRender = function () {
|
|
101
|
+
(0, _coreUtil.renderPreview)();
|
|
102
|
+
|
|
103
|
+
_this.setState({});
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
return _this;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
PlayIconConfig.prototype.componentDidMount = function () {
|
|
110
|
+
window.document.addEventListener('button-render', this.selfRender);
|
|
111
|
+
iconList = this.props.data.iconColor === 'Light' ? LightIconList : DarkIconList;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
PlayIconConfig.prototype.componentWillUnmount = function () {
|
|
115
|
+
window.document.removeEventListener('button-render', this.selfRender);
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
PlayIconConfig.prototype.render = function () {
|
|
119
|
+
var _this = this;
|
|
120
|
+
|
|
121
|
+
var data = this.props.data;
|
|
122
|
+
var iconSelectedIndex = this.state.iconSelectedIndex;
|
|
123
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
|
+
className: "play-config"
|
|
125
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
126
|
+
split: true,
|
|
127
|
+
title: "Play Icon Type"
|
|
128
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
|
+
className: "icon-wrap"
|
|
130
|
+
}, iconList.map(function (item, i) {
|
|
131
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
|
+
key: item.iconName,
|
|
133
|
+
className: (0, _classnames["default"])('icon-item-wrap', {
|
|
134
|
+
'icon-selected-wrap': i === iconSelectedIndex
|
|
135
|
+
}),
|
|
136
|
+
onClick: function onClick() {
|
|
137
|
+
_this.setState({
|
|
138
|
+
iconSelectedIndex: i
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
data.iconType = item.iconName;
|
|
142
|
+
|
|
143
|
+
_this.reRender();
|
|
144
|
+
}
|
|
145
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
146
|
+
className: "selected-icon"
|
|
147
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
148
|
+
color: "#fff",
|
|
149
|
+
size: 8,
|
|
150
|
+
type: "icon-vector"
|
|
151
|
+
})), /*#__PURE__*/_react["default"].createElement(_PlaySvg["default"], {
|
|
152
|
+
imgName: item.iconName,
|
|
153
|
+
imgWidth: 28
|
|
154
|
+
}));
|
|
155
|
+
}))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
156
|
+
split: true,
|
|
157
|
+
title: "Play Icon Color"
|
|
158
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
159
|
+
className: "icon-color-select",
|
|
160
|
+
onChange: function onChange(value) {
|
|
161
|
+
data.iconColor = value;
|
|
162
|
+
iconList = value === 'Light' ? LightIconList : DarkIconList;
|
|
163
|
+
data.iconType = iconList[iconSelectedIndex].iconName;
|
|
164
|
+
|
|
165
|
+
_this.reRender();
|
|
166
|
+
},
|
|
167
|
+
size: "large",
|
|
168
|
+
value: data.iconColor
|
|
169
|
+
}, iconColorList.map(function (v) {
|
|
170
|
+
return /*#__PURE__*/_react["default"].createElement(Option, {
|
|
171
|
+
key: v.key,
|
|
172
|
+
value: v.key
|
|
173
|
+
}, v.value);
|
|
174
|
+
}))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
175
|
+
title: "Play Icon Size"
|
|
176
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
177
|
+
inputType: "int",
|
|
178
|
+
maxVal: 100,
|
|
179
|
+
minVal: 40,
|
|
180
|
+
onChange: function onChange(_a) {
|
|
181
|
+
var count = _a.count;
|
|
182
|
+
|
|
183
|
+
if ((0, _coreUtil.isPc)()) {
|
|
184
|
+
data.pcSize = count;
|
|
185
|
+
} else {
|
|
186
|
+
data.size = count;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
_this.reRender();
|
|
190
|
+
},
|
|
191
|
+
value: {
|
|
192
|
+
count: (0, _coreUtil.isPc)() ? data.pcSize : data.size
|
|
193
|
+
}
|
|
194
|
+
})));
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
PlayIconConfig.defaultProps = {
|
|
198
|
+
data: {
|
|
199
|
+
open: false,
|
|
200
|
+
type: 'PLAY',
|
|
201
|
+
size: 48,
|
|
202
|
+
pcSize: 60,
|
|
203
|
+
iconType: 'light-playicon-01',
|
|
204
|
+
iconColor: 'Light'
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
return PlayIconConfig;
|
|
208
|
+
}(_BaseConfig["default"]);
|
|
209
|
+
|
|
210
|
+
var _default = PlayIconConfig;
|
|
211
|
+
exports["default"] = _default;
|
|
@@ -1,4 +1,39 @@
|
|
|
1
|
-
.
|
|
2
|
-
padding:
|
|
1
|
+
.play-config {
|
|
2
|
+
padding: 12px;
|
|
3
3
|
background-color: #F5F6F7;
|
|
4
|
+
border-radius: 6px;
|
|
5
|
+
.icon-wrap {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: flex-start;
|
|
9
|
+
.icon-item-wrap {
|
|
10
|
+
margin-right: 12px;
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
background-color: #D2D9E5;
|
|
13
|
+
padding: 4px;
|
|
14
|
+
line-height: 1;
|
|
15
|
+
border: 1px solid transparent;
|
|
16
|
+
min-height: 34px;
|
|
17
|
+
.selected-icon {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.icon-selected-wrap {
|
|
22
|
+
border-color: #00AC5A;
|
|
23
|
+
position: relative;
|
|
24
|
+
.selected-icon {
|
|
25
|
+
position: absolute;
|
|
26
|
+
display: block;
|
|
27
|
+
top: -7px;
|
|
28
|
+
right: -7px;
|
|
29
|
+
background-color: #00AC5A;
|
|
30
|
+
width: 14px;
|
|
31
|
+
height: 14px;
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
4
39
|
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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 _reactQuill = _interopRequireDefault(require("react-quill"));
|
|
11
|
+
|
|
12
|
+
require("react-quill/dist/quill.snow.css");
|
|
13
|
+
|
|
14
|
+
var _antd = require("antd");
|
|
15
|
+
|
|
16
|
+
require("./index.less");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
21
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
22
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
23
|
+
__proto__: []
|
|
24
|
+
} instanceof Array && function (d, b) {
|
|
25
|
+
d.__proto__ = b;
|
|
26
|
+
} || function (d, b) {
|
|
27
|
+
for (var p in b) {
|
|
28
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
return _extendStatics(d, b);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return function (d, b) {
|
|
36
|
+
_extendStatics(d, b);
|
|
37
|
+
|
|
38
|
+
function __() {
|
|
39
|
+
this.constructor = d;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43
|
+
};
|
|
44
|
+
}();
|
|
45
|
+
|
|
46
|
+
var TextEditModal =
|
|
47
|
+
/** @class */
|
|
48
|
+
function (_super) {
|
|
49
|
+
__extends(TextEditModal, _super);
|
|
50
|
+
|
|
51
|
+
function TextEditModal() {
|
|
52
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53
|
+
|
|
54
|
+
_this.state = {
|
|
55
|
+
value: ''
|
|
56
|
+
};
|
|
57
|
+
_this.reactQuillRef = null;
|
|
58
|
+
_this.quillRef = null;
|
|
59
|
+
|
|
60
|
+
_this.getHtml = function () {
|
|
61
|
+
return _this.quillRef.root.innerHTML;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
return _this;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
TextEditModal.prototype.componentDidMount = function () {
|
|
68
|
+
this.quillRef = this.reactQuillRef.getEditor();
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
TextEditModal.prototype.render = function () {
|
|
72
|
+
var _this = this;
|
|
73
|
+
|
|
74
|
+
var _a = this.props,
|
|
75
|
+
onCancel = _a.onCancel,
|
|
76
|
+
onOk = _a.onOk;
|
|
77
|
+
var value = this.state.value;
|
|
78
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Modal, {
|
|
79
|
+
closable: false,
|
|
80
|
+
onCancel: onCancel,
|
|
81
|
+
onOk: onOk,
|
|
82
|
+
visible: true,
|
|
83
|
+
width: 1000
|
|
84
|
+
}, /*#__PURE__*/_react["default"].createElement(_reactQuill["default"], {
|
|
85
|
+
ref: function ref(el) {
|
|
86
|
+
_this.reactQuillRef = el;
|
|
87
|
+
},
|
|
88
|
+
style: {
|
|
89
|
+
height: 600
|
|
90
|
+
},
|
|
91
|
+
value: value
|
|
92
|
+
}));
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
TextEditModal.defaultProps = {};
|
|
96
|
+
return TextEditModal;
|
|
97
|
+
}(_react["default"].Component);
|
|
98
|
+
|
|
99
|
+
var _default = TextEditModal;
|
|
100
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.text-label-content {
|
|
2
|
+
background-color: #f5f6f7;
|
|
3
|
+
|
|
4
|
+
.label-wrap {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
|
|
9
|
+
.label-item {
|
|
10
|
+
padding: 5px 11px;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
border-radius: 5px;
|
|
16
|
+
background-color: #fff;
|
|
17
|
+
margin: 8px;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
background-color: #f6f6f7;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|