@fonixtree/magic-design 0.1.76 → 0.1.78
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 +23 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +23 -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/modal.less +1 -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/ImagePicker/index.js +50 -5
- package/es/common/ImagePicker/index.less +1 -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 +12 -9
- package/es/common/LinkModal/FilteredProductModal/index.less +1 -1
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.js +1 -1
- package/es/common/ProductModal/index.js +25 -32
- package/es/common/Video/index.js +11 -3
- package/es/common/Video/index.less +11 -7
- package/es/composite-comp/bol/components/Banner/mobile/index.js +6 -0
- package/es/composite-comp/bol/components/Carousel/index.js +27 -3
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +11 -20
- package/es/composite-comp/bol/components/Carousel/pc/index.js +4 -2
- 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/ImageText/pc/index.js +95 -3
- 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/Video/defaultJSON.js +24 -0
- 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/LocationConfig/index.js +149 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
- 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 +53 -2
- package/es/composite-comp/common/components/ProductItem/index.js +8 -4
- package/es/composite-comp/common/components/ProductItem/index.less +30 -15
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +16 -3
- 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/pc/index.js +2 -2
- package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +46 -37
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +0 -14
- package/es/composite-comp/dito/components/SignBoard/pc/index.js +8 -11
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
- package/es/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
- 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 +4 -4
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +14 -2
- package/es/constants/component-types.js +10 -2
- package/es/constants/index.js +10 -1
- package/es/constants/layout.js +21 -1
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +6 -6
- 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 +18 -8
- package/es/core/Designer/AiImageGenerator/UploadReference/index.less +6 -0
- package/es/core/Designer/AiImageGenerator/index.js +364 -63
- package/es/core/Designer/AiImageGenerator/index.less +70 -46
- package/es/core/Designer/ChatRobot/index.js +51 -14
- package/es/core/Designer/ChatRobot/index.less +11 -0
- package/es/core/Designer/ConfigPanel/index.js +2 -1
- package/es/core/Designer/FonixtreeGpt/index.js +32 -171
- package/es/core/Designer/LeftTitle/index.js +1 -1
- 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 +366 -0
- package/es/core/Designer/ToolBarModal/index.less +32 -0
- package/es/core/Designer/index.js +33 -10
- package/es/core/Renderer/index.js +20 -21
- package/es/decorator/index.js +38 -1
- package/es/decorator/lazyLoadDecorator.js +75 -0
- package/es/locale/en/en.json +6 -1
- package/es/locale/es/es.json +6 -1
- package/es/locale/id/id.json +6 -1
- package/es/meta-comp/components/Button/index.js +7 -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/fontStyle.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 +110 -372
- package/es/meta-comp/components/Text/index.less +57 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +30 -28
- package/es/meta-comp/config-panels/ImageConfig/index.js +3 -1
- 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 +9 -30
- package/es/meta-comp/config-panels/TextConfig/index.less +12 -16
- package/es/mobx/Frame.js +7 -1
- package/es/utils/androidUtil.js +6 -0
- package/es/utils/commonUtil.js +35 -7
- package/es/utils/coreUtil.js +15 -0
- package/es/utils/currencyUtil.js +29 -10
- package/lib/assets/fonts/magic-box-iconfont.css +23 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +23 -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/modal.less +1 -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/ImagePicker/index.js +50 -5
- package/lib/common/ImagePicker/index.less +1 -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 +12 -9
- package/lib/common/LinkModal/FilteredProductModal/index.less +1 -1
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.js +1 -1
- package/lib/common/ProductModal/index.js +25 -32
- package/lib/common/Video/index.js +11 -3
- package/lib/common/Video/index.less +11 -7
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +6 -0
- package/lib/composite-comp/bol/components/Carousel/index.js +27 -3
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +11 -20
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +4 -2
- 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/ImageText/pc/index.js +95 -3
- 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/Video/defaultJSON.js +24 -0
- 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/LocationConfig/index.js +149 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
- 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 +53 -2
- package/lib/composite-comp/common/components/ProductItem/index.js +8 -4
- package/lib/composite-comp/common/components/ProductItem/index.less +30 -15
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +16 -3
- 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/pc/index.js +2 -2
- package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +46 -37
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +0 -14
- package/lib/composite-comp/dito/components/SignBoard/pc/index.js +8 -11
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
- package/lib/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
- 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 +4 -4
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +14 -2
- package/lib/constants/component-types.js +10 -2
- package/lib/constants/index.js +10 -1
- package/lib/constants/layout.js +21 -1
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +6 -6
- 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 +18 -8
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +6 -0
- package/lib/core/Designer/AiImageGenerator/index.js +364 -63
- package/lib/core/Designer/AiImageGenerator/index.less +70 -46
- package/lib/core/Designer/ChatRobot/index.js +51 -14
- package/lib/core/Designer/ChatRobot/index.less +11 -0
- package/lib/core/Designer/ConfigPanel/index.js +2 -1
- package/lib/core/Designer/FonixtreeGpt/index.js +32 -171
- package/lib/core/Designer/LeftTitle/index.js +1 -1
- 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 +366 -0
- package/lib/core/Designer/ToolBarModal/index.less +32 -0
- package/lib/core/Designer/index.js +33 -10
- package/lib/core/Renderer/index.js +20 -21
- package/lib/decorator/index.js +38 -1
- package/lib/decorator/lazyLoadDecorator.js +75 -0
- package/lib/locale/en/en.json +6 -1
- package/lib/locale/es/es.json +6 -1
- package/lib/locale/id/id.json +6 -1
- package/lib/meta-comp/components/Button/index.js +7 -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/fontStyle.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 +110 -372
- package/lib/meta-comp/components/Text/index.less +57 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +30 -28
- package/lib/meta-comp/config-panels/ImageConfig/index.js +3 -1
- 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 +9 -30
- package/lib/meta-comp/config-panels/TextConfig/index.less +12 -16
- package/lib/mobx/Frame.js +7 -1
- package/lib/utils/androidUtil.js +6 -0
- package/lib/utils/commonUtil.js +35 -7
- package/lib/utils/coreUtil.js +15 -0
- package/lib/utils/currencyUtil.js +29 -10
- package/package.json +5 -2
|
@@ -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 = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _defaultJSON = require("./defaultJSON");
|
|
11
|
+
|
|
12
|
+
var _common = require("../../../../common");
|
|
13
|
+
|
|
14
|
+
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
15
|
+
|
|
16
|
+
require("./index.less");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
25
|
+
|
|
26
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
27
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
28
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
29
|
+
__proto__: []
|
|
30
|
+
} instanceof Array && function (d, b) {
|
|
31
|
+
d.__proto__ = b;
|
|
32
|
+
} || function (d, b) {
|
|
33
|
+
for (var p in b) {
|
|
34
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
return _extendStatics(d, b);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return function (d, b) {
|
|
42
|
+
_extendStatics(d, b);
|
|
43
|
+
|
|
44
|
+
function __() {
|
|
45
|
+
this.constructor = d;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49
|
+
};
|
|
50
|
+
}();
|
|
51
|
+
|
|
52
|
+
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
53
|
+
var c = arguments.length,
|
|
54
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
55
|
+
d;
|
|
56
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
57
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
58
|
+
}
|
|
59
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
var CustomCode =
|
|
63
|
+
/** @class */
|
|
64
|
+
function (_super) {
|
|
65
|
+
__extends(CustomCode, _super);
|
|
66
|
+
|
|
67
|
+
function CustomCode() {
|
|
68
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
CustomCode.prototype.componentDidMount = function () {};
|
|
72
|
+
|
|
73
|
+
CustomCode.prototype.render = function () {
|
|
74
|
+
var nodeData = this.props.nodeData;
|
|
75
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
|
+
className: "location-mobile"
|
|
77
|
+
}, nodeData.logo.open && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
78
|
+
className: "logo",
|
|
79
|
+
color: nodeData.logo.color,
|
|
80
|
+
size: 20,
|
|
81
|
+
type: "icon-MapPin"
|
|
82
|
+
}), nodeData.address.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
83
|
+
className: "address"
|
|
84
|
+
}, "Display Location Address"), nodeData.icon.open && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
85
|
+
className: "logo",
|
|
86
|
+
color: nodeData.icon.color,
|
|
87
|
+
size: 16,
|
|
88
|
+
type: "icon-outlined-right"
|
|
89
|
+
})));
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
CustomCode.defaultProps = {};
|
|
93
|
+
CustomCode.type = 'LOCATION';
|
|
94
|
+
CustomCode.getDefaultJSON = _defaultJSON.getDefaultJSON;
|
|
95
|
+
CustomCode = __decorate([_compositeDecorator["default"]], CustomCode);
|
|
96
|
+
return CustomCode;
|
|
97
|
+
}(_react.Component);
|
|
98
|
+
|
|
99
|
+
var _default = CustomCode;
|
|
100
|
+
exports["default"] = _default;
|
|
@@ -101,6 +101,18 @@ var videoGroupSourceJSON = function videoGroupSourceJSON(parentId) {
|
|
|
101
101
|
iconUrl: '',
|
|
102
102
|
layout: 'right'
|
|
103
103
|
},
|
|
104
|
+
spacing: {
|
|
105
|
+
pc: {
|
|
106
|
+
paddingTop: 0,
|
|
107
|
+
paddingBottom: 0,
|
|
108
|
+
marginBottom: 0
|
|
109
|
+
},
|
|
110
|
+
mobile: {
|
|
111
|
+
paddingTop: 0,
|
|
112
|
+
paddingBottom: 0,
|
|
113
|
+
marginBottom: 0
|
|
114
|
+
}
|
|
115
|
+
},
|
|
104
116
|
text: 'Button Tag'
|
|
105
117
|
},
|
|
106
118
|
secondButtonTag: {
|
|
@@ -126,6 +138,18 @@ var videoGroupSourceJSON = function videoGroupSourceJSON(parentId) {
|
|
|
126
138
|
borderColor: '',
|
|
127
139
|
borderRadius: 4
|
|
128
140
|
},
|
|
141
|
+
spacing: {
|
|
142
|
+
pc: {
|
|
143
|
+
paddingTop: 0,
|
|
144
|
+
paddingBottom: 0,
|
|
145
|
+
marginBottom: 0
|
|
146
|
+
},
|
|
147
|
+
mobile: {
|
|
148
|
+
paddingTop: 0,
|
|
149
|
+
paddingBottom: 0,
|
|
150
|
+
marginBottom: 0
|
|
151
|
+
}
|
|
152
|
+
},
|
|
129
153
|
buttonIcon: {
|
|
130
154
|
iconUrl: '',
|
|
131
155
|
layout: 'right'
|
|
@@ -0,0 +1,42 @@
|
|
|
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 _reactAce = _interopRequireDefault(require("react-ace"));
|
|
11
|
+
|
|
12
|
+
require("ace-builds/src-noconflict/mode-html");
|
|
13
|
+
|
|
14
|
+
require("ace-builds/src-noconflict/mode-javascript");
|
|
15
|
+
|
|
16
|
+
require("ace-builds/src-noconflict/theme-github");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
// 可选的主题样式
|
|
21
|
+
var MyEditor = function MyEditor(props) {
|
|
22
|
+
var value = props.value,
|
|
23
|
+
changeVal = props.changeVal,
|
|
24
|
+
blurArea = props.blurArea;
|
|
25
|
+
return /*#__PURE__*/_react["default"].createElement(_reactAce["default"], {
|
|
26
|
+
editorProps: {
|
|
27
|
+
$blockScrolling: true
|
|
28
|
+
},
|
|
29
|
+
mode: "html",
|
|
30
|
+
name: "editor",
|
|
31
|
+
onBlur: blurArea,
|
|
32
|
+
onChange: changeVal,
|
|
33
|
+
style: {
|
|
34
|
+
width: '100%'
|
|
35
|
+
},
|
|
36
|
+
theme: "github",
|
|
37
|
+
value: value
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
var _default = MyEditor;
|
|
42
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,111 @@
|
|
|
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 _MyEditor = _interopRequireDefault(require("./MyEditor"));
|
|
11
|
+
|
|
12
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
13
|
+
|
|
14
|
+
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
15
|
+
|
|
16
|
+
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
17
|
+
|
|
18
|
+
var _locale = require("../../../../locale");
|
|
19
|
+
|
|
20
|
+
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
21
|
+
|
|
22
|
+
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
27
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
28
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
29
|
+
__proto__: []
|
|
30
|
+
} instanceof Array && function (d, b) {
|
|
31
|
+
d.__proto__ = b;
|
|
32
|
+
} || function (d, b) {
|
|
33
|
+
for (var p in b) {
|
|
34
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
return _extendStatics(d, b);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return function (d, b) {
|
|
42
|
+
_extendStatics(d, b);
|
|
43
|
+
|
|
44
|
+
function __() {
|
|
45
|
+
this.constructor = d;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49
|
+
};
|
|
50
|
+
}();
|
|
51
|
+
|
|
52
|
+
var CustomCodeConfig =
|
|
53
|
+
/** @class */
|
|
54
|
+
function (_super) {
|
|
55
|
+
__extends(CustomCodeConfig, _super);
|
|
56
|
+
|
|
57
|
+
function CustomCodeConfig() {
|
|
58
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
59
|
+
|
|
60
|
+
_this.changeVal = function (v) {
|
|
61
|
+
var data = _this.props.data;
|
|
62
|
+
|
|
63
|
+
if ((0, _coreUtil.isPc)()) {
|
|
64
|
+
data.content.pcHtml = v;
|
|
65
|
+
} else {
|
|
66
|
+
data.content.h5Html = v;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
_this.blurArea = function () {
|
|
71
|
+
_this.selfRender();
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
return _this;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
CustomCodeConfig.prototype.render = function () {
|
|
78
|
+
var data = this.props.data;
|
|
79
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
80
|
+
divider: "bold",
|
|
81
|
+
headerSize: "large",
|
|
82
|
+
source: [{
|
|
83
|
+
key: 'content',
|
|
84
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
85
|
+
value: /*#__PURE__*/_react["default"].createElement(_MyEditor["default"], {
|
|
86
|
+
blurArea: this.blurArea,
|
|
87
|
+
changeVal: this.changeVal,
|
|
88
|
+
value: (0, _coreUtil.isPc)() ? data.content.pcHtml : data.content.h5Html
|
|
89
|
+
})
|
|
90
|
+
}, {
|
|
91
|
+
key: 'spacing',
|
|
92
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
93
|
+
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
94
|
+
data: data.spacing
|
|
95
|
+
})
|
|
96
|
+
}, {
|
|
97
|
+
key: 'background',
|
|
98
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
99
|
+
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
100
|
+
data: data.background
|
|
101
|
+
})
|
|
102
|
+
}],
|
|
103
|
+
type: "triangle"
|
|
104
|
+
}));
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
return CustomCodeConfig;
|
|
108
|
+
}(_BaseConfig["default"]);
|
|
109
|
+
|
|
110
|
+
var _default = CustomCodeConfig;
|
|
111
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,149 @@
|
|
|
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 _common = require("../../../../common");
|
|
11
|
+
|
|
12
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
13
|
+
|
|
14
|
+
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
15
|
+
|
|
16
|
+
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
17
|
+
|
|
18
|
+
var _locale = require("../../../../locale");
|
|
19
|
+
|
|
20
|
+
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
21
|
+
|
|
22
|
+
var _layout = require("../../../../constants/layout");
|
|
23
|
+
|
|
24
|
+
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
25
|
+
|
|
26
|
+
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
27
|
+
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
|
+
|
|
30
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
31
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
32
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
33
|
+
__proto__: []
|
|
34
|
+
} instanceof Array && function (d, b) {
|
|
35
|
+
d.__proto__ = b;
|
|
36
|
+
} || function (d, b) {
|
|
37
|
+
for (var p in b) {
|
|
38
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return _extendStatics(d, b);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
return function (d, b) {
|
|
46
|
+
_extendStatics(d, b);
|
|
47
|
+
|
|
48
|
+
function __() {
|
|
49
|
+
this.constructor = d;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
53
|
+
};
|
|
54
|
+
}();
|
|
55
|
+
|
|
56
|
+
var LocationConfig =
|
|
57
|
+
/** @class */
|
|
58
|
+
function (_super) {
|
|
59
|
+
__extends(LocationConfig, _super);
|
|
60
|
+
|
|
61
|
+
function LocationConfig() {
|
|
62
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
63
|
+
|
|
64
|
+
_this.getContentPanel = function () {
|
|
65
|
+
var data = _this.props.data;
|
|
66
|
+
var source = [{
|
|
67
|
+
key: data.logo.id,
|
|
68
|
+
name: (0, _locale.i18n)('LOCATION_LOGO'),
|
|
69
|
+
value: /*#__PURE__*/_react["default"].createElement(_common.Field, null, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
70
|
+
colorType: "rgba",
|
|
71
|
+
onChange: function onChange(v) {
|
|
72
|
+
data.logo.color = v;
|
|
73
|
+
|
|
74
|
+
_this.selfRender();
|
|
75
|
+
},
|
|
76
|
+
value: data.logo.color
|
|
77
|
+
})),
|
|
78
|
+
metaOption: data.logo
|
|
79
|
+
}, {
|
|
80
|
+
key: data.address.id,
|
|
81
|
+
name: (0, _locale.i18n)('ADDRESS'),
|
|
82
|
+
metaOption: data.address
|
|
83
|
+
}, {
|
|
84
|
+
key: data.icon.id,
|
|
85
|
+
name: (0, _locale.i18n)('ICON'),
|
|
86
|
+
value: /*#__PURE__*/_react["default"].createElement(_common.Field, null, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
87
|
+
colorType: "rgba",
|
|
88
|
+
onChange: function onChange(v) {
|
|
89
|
+
data.icon.color = v;
|
|
90
|
+
|
|
91
|
+
_this.selfRender();
|
|
92
|
+
},
|
|
93
|
+
value: data.icon.color
|
|
94
|
+
})),
|
|
95
|
+
metaOption: data.icon
|
|
96
|
+
}];
|
|
97
|
+
return /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
98
|
+
headerSize: "middle",
|
|
99
|
+
onRefresh: function onRefresh() {
|
|
100
|
+
return (0, _coreUtil.renderPreview)();
|
|
101
|
+
},
|
|
102
|
+
showActiveColor: true,
|
|
103
|
+
source: source,
|
|
104
|
+
type: "switch"
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
return _this;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
LocationConfig.prototype.render = function () {
|
|
112
|
+
var data = this.props.data;
|
|
113
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
114
|
+
divider: "bold",
|
|
115
|
+
headerSize: "large",
|
|
116
|
+
source: [{
|
|
117
|
+
key: 'content',
|
|
118
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
119
|
+
value: this.getContentPanel()
|
|
120
|
+
}, {
|
|
121
|
+
key: 'spacing',
|
|
122
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
123
|
+
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
124
|
+
data: data.spacing
|
|
125
|
+
})
|
|
126
|
+
}, {
|
|
127
|
+
key: 'customize',
|
|
128
|
+
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
129
|
+
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
130
|
+
data: data.customize,
|
|
131
|
+
isHideAlign: true,
|
|
132
|
+
layoutSource: _layout.locationLayout
|
|
133
|
+
})
|
|
134
|
+
}, {
|
|
135
|
+
key: 'background',
|
|
136
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
137
|
+
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
138
|
+
data: data.background
|
|
139
|
+
})
|
|
140
|
+
}],
|
|
141
|
+
type: "triangle"
|
|
142
|
+
}));
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
return LocationConfig;
|
|
146
|
+
}(_BaseConfig["default"]);
|
|
147
|
+
|
|
148
|
+
var _default = LocationConfig;
|
|
149
|
+
exports["default"] = _default;
|
|
Binary file
|
|
@@ -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'
|