@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
|
@@ -74,11 +74,188 @@ function (_super) {
|
|
|
74
74
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
75
75
|
|
|
76
76
|
_this.state = {};
|
|
77
|
+
|
|
78
|
+
_this.getImageRecommendSize = function (customize) {
|
|
79
|
+
var obj = null;
|
|
80
|
+
|
|
81
|
+
if ((0, _coreUtil.isPc)()) {
|
|
82
|
+
if ((customize === null || customize === void 0 ? void 0 : customize.layout) == 'layout3') {
|
|
83
|
+
switch (customize === null || customize === void 0 ? void 0 : customize.pcRowNum) {
|
|
84
|
+
case 6:
|
|
85
|
+
obj = {
|
|
86
|
+
width: 149,
|
|
87
|
+
height: 120
|
|
88
|
+
};
|
|
89
|
+
break;
|
|
90
|
+
|
|
91
|
+
case 5:
|
|
92
|
+
obj = {
|
|
93
|
+
width: 183,
|
|
94
|
+
height: 147
|
|
95
|
+
};
|
|
96
|
+
break;
|
|
97
|
+
|
|
98
|
+
case 4:
|
|
99
|
+
obj = {
|
|
100
|
+
width: 233,
|
|
101
|
+
height: 188
|
|
102
|
+
};
|
|
103
|
+
break;
|
|
104
|
+
|
|
105
|
+
case 3:
|
|
106
|
+
obj = {
|
|
107
|
+
width: 315,
|
|
108
|
+
height: 256
|
|
109
|
+
};
|
|
110
|
+
break;
|
|
111
|
+
|
|
112
|
+
case 2:
|
|
113
|
+
obj = {
|
|
114
|
+
width: 478,
|
|
115
|
+
height: 393
|
|
116
|
+
};
|
|
117
|
+
break;
|
|
118
|
+
|
|
119
|
+
case 1:
|
|
120
|
+
obj = {
|
|
121
|
+
width: 960,
|
|
122
|
+
height: 680
|
|
123
|
+
};
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
} else {
|
|
127
|
+
switch (customize === null || customize === void 0 ? void 0 : customize.pcRowNum) {
|
|
128
|
+
case 6:
|
|
129
|
+
obj = {
|
|
130
|
+
width: 159,
|
|
131
|
+
height: 120
|
|
132
|
+
};
|
|
133
|
+
break;
|
|
134
|
+
|
|
135
|
+
case 5:
|
|
136
|
+
obj = {
|
|
137
|
+
width: 195,
|
|
138
|
+
height: 147
|
|
139
|
+
};
|
|
140
|
+
break;
|
|
141
|
+
|
|
142
|
+
case 4:
|
|
143
|
+
obj = {
|
|
144
|
+
width: 251,
|
|
145
|
+
height: 188
|
|
146
|
+
};
|
|
147
|
+
break;
|
|
148
|
+
|
|
149
|
+
case 3:
|
|
150
|
+
obj = {
|
|
151
|
+
width: 341,
|
|
152
|
+
height: 256
|
|
153
|
+
};
|
|
154
|
+
break;
|
|
155
|
+
|
|
156
|
+
case 2:
|
|
157
|
+
obj = {
|
|
158
|
+
width: 524,
|
|
159
|
+
height: 393
|
|
160
|
+
};
|
|
161
|
+
break;
|
|
162
|
+
|
|
163
|
+
case 1:
|
|
164
|
+
obj = {
|
|
165
|
+
width: 1072,
|
|
166
|
+
height: 680
|
|
167
|
+
};
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
} else {
|
|
172
|
+
if ((customize === null || customize === void 0 ? void 0 : customize.layout) == 'layout3') {
|
|
173
|
+
switch (customize === null || customize === void 0 ? void 0 : customize.rowNum) {
|
|
174
|
+
case 5:
|
|
175
|
+
obj = {
|
|
176
|
+
width: 64,
|
|
177
|
+
height: 50
|
|
178
|
+
};
|
|
179
|
+
break;
|
|
180
|
+
|
|
181
|
+
case 4:
|
|
182
|
+
obj = {
|
|
183
|
+
width: 77,
|
|
184
|
+
height: 66
|
|
185
|
+
};
|
|
186
|
+
break;
|
|
187
|
+
|
|
188
|
+
case 3:
|
|
189
|
+
obj = {
|
|
190
|
+
width: 105,
|
|
191
|
+
height: 87
|
|
192
|
+
};
|
|
193
|
+
break;
|
|
194
|
+
|
|
195
|
+
case 2:
|
|
196
|
+
obj = {
|
|
197
|
+
width: 160,
|
|
198
|
+
height: 137
|
|
199
|
+
};
|
|
200
|
+
break;
|
|
201
|
+
|
|
202
|
+
case 1:
|
|
203
|
+
obj = {
|
|
204
|
+
width: 327,
|
|
205
|
+
height: 282
|
|
206
|
+
};
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
} else {
|
|
210
|
+
switch (customize === null || customize === void 0 ? void 0 : customize.rowNum) {
|
|
211
|
+
case 5:
|
|
212
|
+
obj = {
|
|
213
|
+
width: 66,
|
|
214
|
+
height: 50
|
|
215
|
+
};
|
|
216
|
+
break;
|
|
217
|
+
|
|
218
|
+
case 4:
|
|
219
|
+
obj = {
|
|
220
|
+
width: 85,
|
|
221
|
+
height: 66
|
|
222
|
+
};
|
|
223
|
+
break;
|
|
224
|
+
|
|
225
|
+
case 3:
|
|
226
|
+
obj = {
|
|
227
|
+
width: 117,
|
|
228
|
+
height: 87
|
|
229
|
+
};
|
|
230
|
+
break;
|
|
231
|
+
|
|
232
|
+
case 2:
|
|
233
|
+
obj = {
|
|
234
|
+
width: 182,
|
|
235
|
+
height: 137
|
|
236
|
+
};
|
|
237
|
+
break;
|
|
238
|
+
|
|
239
|
+
case 1:
|
|
240
|
+
obj = {
|
|
241
|
+
width: 375,
|
|
242
|
+
height: 282
|
|
243
|
+
};
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
return obj;
|
|
250
|
+
};
|
|
251
|
+
|
|
77
252
|
return _this;
|
|
78
253
|
}
|
|
79
254
|
|
|
80
255
|
CarouselSecondConfig.prototype.render = function () {
|
|
81
|
-
var
|
|
256
|
+
var _a = this.props,
|
|
257
|
+
panelProps = _a.panelProps,
|
|
258
|
+
parentNode = _a.parentNode;
|
|
82
259
|
var textSource = [{
|
|
83
260
|
key: '2',
|
|
84
261
|
name: (0, _locale.i18n)('TITLE'),
|
|
@@ -118,6 +295,8 @@ function (_super) {
|
|
|
118
295
|
|
|
119
296
|
var _textSource = _mobx.store.CarouselStore[panelProps.compId] === 'layout2' ? textSource : [];
|
|
120
297
|
|
|
298
|
+
var size = this.getImageRecommendSize(parentNode.customize);
|
|
299
|
+
|
|
121
300
|
var getConfig = function getConfig() {
|
|
122
301
|
return /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
123
302
|
headerSize: "middle",
|
|
@@ -128,7 +307,8 @@ function (_super) {
|
|
|
128
307
|
key: '1',
|
|
129
308
|
name: (0, _locale.i18n)('IMAGE'),
|
|
130
309
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
131
|
-
data: panelProps.image
|
|
310
|
+
data: panelProps.image,
|
|
311
|
+
recommendImgSize: size
|
|
132
312
|
}),
|
|
133
313
|
metaOption: panelProps.image,
|
|
134
314
|
toggleType: 'switch'
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
11
11
|
|
|
12
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
13
|
+
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
15
|
|
|
14
16
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -46,18 +48,128 @@ function (_super) {
|
|
|
46
48
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
47
49
|
|
|
48
50
|
_this.state = {};
|
|
51
|
+
|
|
52
|
+
_this.getImageRecommendSize = function (customize) {
|
|
53
|
+
var _a, _b;
|
|
54
|
+
|
|
55
|
+
var obj = null;
|
|
56
|
+
|
|
57
|
+
if ((0, _coreUtil.isPc)()) {
|
|
58
|
+
switch ((_a = customize === null || customize === void 0 ? void 0 : customize.layout) === null || _a === void 0 ? void 0 : _a.pcLayout) {
|
|
59
|
+
case 'layout1':
|
|
60
|
+
obj = {
|
|
61
|
+
width: 1440,
|
|
62
|
+
height: 912
|
|
63
|
+
};
|
|
64
|
+
break;
|
|
65
|
+
|
|
66
|
+
case 'layout2':
|
|
67
|
+
{
|
|
68
|
+
switch (customize === null || customize === void 0 ? void 0 : customize.pcRowNum) {
|
|
69
|
+
case 6:
|
|
70
|
+
obj = {
|
|
71
|
+
width: 220,
|
|
72
|
+
height: 166
|
|
73
|
+
};
|
|
74
|
+
break;
|
|
75
|
+
|
|
76
|
+
case 5:
|
|
77
|
+
obj = {
|
|
78
|
+
width: 268,
|
|
79
|
+
height: 202
|
|
80
|
+
};
|
|
81
|
+
break;
|
|
82
|
+
|
|
83
|
+
case 4:
|
|
84
|
+
obj = {
|
|
85
|
+
width: 342,
|
|
86
|
+
height: 256
|
|
87
|
+
};
|
|
88
|
+
break;
|
|
89
|
+
|
|
90
|
+
case 3:
|
|
91
|
+
obj = {
|
|
92
|
+
width: 464,
|
|
93
|
+
height: 348
|
|
94
|
+
};
|
|
95
|
+
break;
|
|
96
|
+
|
|
97
|
+
case 2:
|
|
98
|
+
obj = {
|
|
99
|
+
width: 708,
|
|
100
|
+
height: 531
|
|
101
|
+
};
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
} else {
|
|
109
|
+
switch ((_b = customize === null || customize === void 0 ? void 0 : customize.layout) === null || _b === void 0 ? void 0 : _b.h5Layout) {
|
|
110
|
+
case 'layout1':
|
|
111
|
+
obj = {
|
|
112
|
+
width: 375,
|
|
113
|
+
height: 282
|
|
114
|
+
};
|
|
115
|
+
break;
|
|
116
|
+
|
|
117
|
+
case 'layout2':
|
|
118
|
+
{
|
|
119
|
+
switch (customize === null || customize === void 0 ? void 0 : customize.rowNum) {
|
|
120
|
+
case 5:
|
|
121
|
+
obj = {
|
|
122
|
+
width: 69,
|
|
123
|
+
height: 50
|
|
124
|
+
};
|
|
125
|
+
break;
|
|
126
|
+
|
|
127
|
+
case 4:
|
|
128
|
+
obj = {
|
|
129
|
+
width: 85,
|
|
130
|
+
height: 66
|
|
131
|
+
};
|
|
132
|
+
break;
|
|
133
|
+
|
|
134
|
+
case 3:
|
|
135
|
+
obj = {
|
|
136
|
+
width: 117,
|
|
137
|
+
height: 87
|
|
138
|
+
};
|
|
139
|
+
break;
|
|
140
|
+
|
|
141
|
+
case 2:
|
|
142
|
+
obj = {
|
|
143
|
+
width: 182,
|
|
144
|
+
height: 137
|
|
145
|
+
};
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return obj;
|
|
155
|
+
};
|
|
156
|
+
|
|
49
157
|
return _this;
|
|
50
158
|
}
|
|
51
159
|
|
|
52
160
|
ImageGallerySecondConfig.prototype.render = function () {
|
|
53
|
-
var
|
|
161
|
+
var _a = this.props,
|
|
162
|
+
panelProps = _a.panelProps,
|
|
163
|
+
parentNode = _a.parentNode;
|
|
164
|
+
var size = this.getImageRecommendSize(parentNode.customize);
|
|
54
165
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
55
166
|
className: "image_gallery_second_conf_wrap",
|
|
56
167
|
style: {
|
|
57
168
|
marginTop: '20px'
|
|
58
169
|
}
|
|
59
170
|
}, /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
60
|
-
data: panelProps.image
|
|
171
|
+
data: panelProps.image,
|
|
172
|
+
recommendImgSize: size
|
|
61
173
|
}));
|
|
62
174
|
};
|
|
63
175
|
|
|
@@ -81,13 +81,123 @@ function (_super) {
|
|
|
81
81
|
|
|
82
82
|
_this.state = {};
|
|
83
83
|
|
|
84
|
+
_this.getImageRecommendSize = function (customize) {
|
|
85
|
+
var _a, _b, _c;
|
|
86
|
+
|
|
87
|
+
var obj = null;
|
|
88
|
+
|
|
89
|
+
if ((0, _coreUtil.isPc)()) {
|
|
90
|
+
if (((_a = customize === null || customize === void 0 ? void 0 : customize.layout) === null || _a === void 0 ? void 0 : _a.pcLayout) == 'normal' || ((_b = customize === null || customize === void 0 ? void 0 : customize.layout) === null || _b === void 0 ? void 0 : _b.pcLayout) == 'center') {
|
|
91
|
+
switch (customize === null || customize === void 0 ? void 0 : customize.pcRowNum) {
|
|
92
|
+
case 5:
|
|
93
|
+
obj = {
|
|
94
|
+
width: 119,
|
|
95
|
+
height: 90
|
|
96
|
+
};
|
|
97
|
+
break;
|
|
98
|
+
|
|
99
|
+
case 4:
|
|
100
|
+
obj = {
|
|
101
|
+
width: 150,
|
|
102
|
+
height: 112
|
|
103
|
+
};
|
|
104
|
+
break;
|
|
105
|
+
|
|
106
|
+
case 3:
|
|
107
|
+
obj = {
|
|
108
|
+
width: 205,
|
|
109
|
+
height: 154
|
|
110
|
+
};
|
|
111
|
+
break;
|
|
112
|
+
|
|
113
|
+
case 2:
|
|
114
|
+
obj = {
|
|
115
|
+
width: 314,
|
|
116
|
+
height: 236
|
|
117
|
+
};
|
|
118
|
+
break;
|
|
119
|
+
|
|
120
|
+
case 1:
|
|
121
|
+
obj = {
|
|
122
|
+
width: 640,
|
|
123
|
+
height: 480
|
|
124
|
+
};
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
} else {
|
|
128
|
+
obj = {
|
|
129
|
+
width: 65,
|
|
130
|
+
height: 65
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
} else {
|
|
134
|
+
switch ((_c = customize === null || customize === void 0 ? void 0 : customize.layout) === null || _c === void 0 ? void 0 : _c.h5Layout) {
|
|
135
|
+
case 'normal2':
|
|
136
|
+
obj = {
|
|
137
|
+
width: 190,
|
|
138
|
+
height: 142
|
|
139
|
+
};
|
|
140
|
+
break;
|
|
141
|
+
|
|
142
|
+
case 'normal3':
|
|
143
|
+
{
|
|
144
|
+
switch (customize === null || customize === void 0 ? void 0 : customize.rowNum) {
|
|
145
|
+
case 4:
|
|
146
|
+
obj = {
|
|
147
|
+
width: 61,
|
|
148
|
+
height: 61
|
|
149
|
+
};
|
|
150
|
+
break;
|
|
151
|
+
|
|
152
|
+
case 3:
|
|
153
|
+
obj = {
|
|
154
|
+
width: 91,
|
|
155
|
+
height: 91
|
|
156
|
+
};
|
|
157
|
+
break;
|
|
158
|
+
|
|
159
|
+
case 2:
|
|
160
|
+
obj = {
|
|
161
|
+
width: 150,
|
|
162
|
+
height: 150
|
|
163
|
+
};
|
|
164
|
+
break;
|
|
165
|
+
|
|
166
|
+
case 1:
|
|
167
|
+
obj = {
|
|
168
|
+
width: 327,
|
|
169
|
+
height: 327
|
|
170
|
+
};
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
default:
|
|
178
|
+
obj = {
|
|
179
|
+
width: 38,
|
|
180
|
+
height: 38
|
|
181
|
+
};
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
return obj;
|
|
187
|
+
};
|
|
188
|
+
|
|
84
189
|
_this.getContentPanel = function (data, needHover) {
|
|
190
|
+
var parentNode = _this.props.parentNode;
|
|
191
|
+
|
|
192
|
+
var size = _this.getImageRecommendSize(parentNode.customize);
|
|
193
|
+
|
|
85
194
|
var source = [{
|
|
86
195
|
key: 'imageTextSecondContent1',
|
|
87
196
|
name: (0, _locale.i18n)('IMAGE'),
|
|
88
197
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
89
198
|
data: data.image,
|
|
90
|
-
needHover: needHover
|
|
199
|
+
needHover: needHover,
|
|
200
|
+
recommendImgSize: size
|
|
91
201
|
}),
|
|
92
202
|
metaOption: data.image
|
|
93
203
|
}, {
|
|
@@ -182,7 +292,8 @@ function (_super) {
|
|
|
182
292
|
};
|
|
183
293
|
|
|
184
294
|
ImageTextSecondConfig.defaultProps = {
|
|
185
|
-
panelProps: {}
|
|
295
|
+
panelProps: {},
|
|
296
|
+
parentNode: {}
|
|
186
297
|
};
|
|
187
298
|
return ImageTextSecondConfig;
|
|
188
299
|
}(_react["default"].Component);
|
|
@@ -23,6 +23,8 @@ var _ButtonConfig = _interopRequireDefault(require("../../../../meta-comp/config
|
|
|
23
23
|
|
|
24
24
|
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
25
25
|
|
|
26
|
+
var _PlayIconConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/PlayIconConfig"));
|
|
27
|
+
|
|
26
28
|
var _locale = require("../../../../locale");
|
|
27
29
|
|
|
28
30
|
require("./index.less");
|
|
@@ -73,8 +75,59 @@ function (_super) {
|
|
|
73
75
|
_this.setState({});
|
|
74
76
|
};
|
|
75
77
|
|
|
78
|
+
_this.getImageRecommendSize = function (customize) {
|
|
79
|
+
var _a;
|
|
80
|
+
|
|
81
|
+
var obj = null;
|
|
82
|
+
console.log(customize);
|
|
83
|
+
|
|
84
|
+
if ((0, _coreUtil.isPc)()) {
|
|
85
|
+
switch ((_a = customize === null || customize === void 0 ? void 0 : customize.layout) === null || _a === void 0 ? void 0 : _a.pcLayout) {
|
|
86
|
+
case 'layout1':
|
|
87
|
+
obj = {
|
|
88
|
+
width: 1280,
|
|
89
|
+
height: 600
|
|
90
|
+
};
|
|
91
|
+
break;
|
|
92
|
+
|
|
93
|
+
case 'layout2':
|
|
94
|
+
obj = {
|
|
95
|
+
width: 640,
|
|
96
|
+
height: 600
|
|
97
|
+
};
|
|
98
|
+
break;
|
|
99
|
+
|
|
100
|
+
case 'layout3':
|
|
101
|
+
obj = {
|
|
102
|
+
width: 410,
|
|
103
|
+
height: 300
|
|
104
|
+
};
|
|
105
|
+
break;
|
|
106
|
+
|
|
107
|
+
default:
|
|
108
|
+
obj = {
|
|
109
|
+
width: 440,
|
|
110
|
+
height: 272
|
|
111
|
+
};
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
} else {
|
|
115
|
+
obj = {
|
|
116
|
+
width: 343,
|
|
117
|
+
height: 212
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
return obj;
|
|
122
|
+
};
|
|
123
|
+
|
|
76
124
|
_this.getContentPanel = function () {
|
|
77
|
-
var
|
|
125
|
+
var _a = _this.props,
|
|
126
|
+
panelProps = _a.panelProps,
|
|
127
|
+
parentNode = _a.parentNode;
|
|
128
|
+
|
|
129
|
+
var size = _this.getImageRecommendSize(parentNode.customize);
|
|
130
|
+
|
|
78
131
|
var source = [{
|
|
79
132
|
key: '1',
|
|
80
133
|
name: 'Overlay',
|
|
@@ -82,7 +135,8 @@ function (_super) {
|
|
|
82
135
|
data: panelProps.overilay,
|
|
83
136
|
needClickArea: false,
|
|
84
137
|
needHover: false,
|
|
85
|
-
needURL: false
|
|
138
|
+
needURL: false,
|
|
139
|
+
recommendImgSize: size
|
|
86
140
|
}),
|
|
87
141
|
metaOption: panelProps.overilay
|
|
88
142
|
}, {
|
|
@@ -114,12 +168,19 @@ function (_super) {
|
|
|
114
168
|
}),
|
|
115
169
|
metaOption: panelProps.title
|
|
116
170
|
}, {
|
|
117
|
-
key: '
|
|
171
|
+
key: '6',
|
|
118
172
|
name: 'Text',
|
|
119
173
|
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
120
174
|
data: panelProps.text
|
|
121
175
|
}),
|
|
122
176
|
metaOption: panelProps.text
|
|
177
|
+
}, {
|
|
178
|
+
key: '7',
|
|
179
|
+
name: 'Play Icon',
|
|
180
|
+
value: /*#__PURE__*/_react["default"].createElement(_PlayIconConfig["default"], {
|
|
181
|
+
data: panelProps.playIcon
|
|
182
|
+
}),
|
|
183
|
+
metaOption: panelProps.playIcon
|
|
123
184
|
}];
|
|
124
185
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
125
186
|
title: "Select Video"
|
|
@@ -85,8 +85,18 @@ function (_super) {
|
|
|
85
85
|
},
|
|
86
86
|
value: data.color
|
|
87
87
|
}) : /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
imageSelectedWay: data.imageSelectedWay || {
|
|
89
|
+
pc: '',
|
|
90
|
+
mobile: ''
|
|
91
|
+
},
|
|
92
|
+
onChange: function onChange(v, way) {
|
|
93
|
+
if (v) {
|
|
94
|
+
data.image = v.url;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (way) {
|
|
98
|
+
data.imageSelectedWay = way;
|
|
99
|
+
}
|
|
90
100
|
|
|
91
101
|
_this.selfRender();
|
|
92
102
|
},
|
|
@@ -199,7 +199,8 @@ function (_super) {
|
|
|
199
199
|
isHideAlign = _a.isHideAlign,
|
|
200
200
|
layoutSource = _a.layoutSource,
|
|
201
201
|
selectedLayoutFun = _a.selectedLayoutFun,
|
|
202
|
-
showVertical = _a.showVertical
|
|
202
|
+
showVertical = _a.showVertical,
|
|
203
|
+
defaultVertical = _a.defaultVertical;
|
|
203
204
|
var showRowNum = this.state.showRowNum;
|
|
204
205
|
var layoutVal = data.layout;
|
|
205
206
|
|
|
@@ -246,7 +247,7 @@ function (_super) {
|
|
|
246
247
|
|
|
247
248
|
_this.selfRender();
|
|
248
249
|
},
|
|
249
|
-
value: (data === null || data === void 0 ? void 0 : data.vertical) ||
|
|
250
|
+
value: (data === null || data === void 0 ? void 0 : data.vertical) || defaultVertical
|
|
250
251
|
}))), _showRowNum && /*#__PURE__*/_react["default"].createElement("div", {
|
|
251
252
|
className: "selectWrap"
|
|
252
253
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
@@ -278,7 +279,8 @@ function (_super) {
|
|
|
278
279
|
isHideAlign: false,
|
|
279
280
|
layoutObj: null,
|
|
280
281
|
component: '',
|
|
281
|
-
showVertical: false
|
|
282
|
+
showVertical: false,
|
|
283
|
+
defaultVertical: 'top'
|
|
282
284
|
};
|
|
283
285
|
CustomizeConfig = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], CustomizeConfig);
|
|
284
286
|
return CustomizeConfig;
|