@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
|
@@ -11,6 +11,8 @@ var _antd = require("antd");
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
+
var _lodash = require("lodash");
|
|
15
|
+
|
|
14
16
|
var _locale = require("../../../locale");
|
|
15
17
|
|
|
16
18
|
var _SpacingConfig = _interopRequireDefault(require("../../../composite-comp/common/config-panels/SpacingConfig"));
|
|
@@ -104,11 +106,11 @@ function (_super) {
|
|
|
104
106
|
|
|
105
107
|
_this.updateAttr(data, 'hover', {
|
|
106
108
|
open: true,
|
|
107
|
-
buttonBorder: data.buttonBorder,
|
|
108
|
-
buttonIcon: data.buttonIcon,
|
|
109
|
-
buttonText: data.buttonText,
|
|
109
|
+
buttonBorder: (0, _lodash.cloneDeep)(data.buttonBorder),
|
|
110
|
+
buttonIcon: (0, _lodash.cloneDeep)(data.buttonIcon),
|
|
111
|
+
buttonText: (0, _lodash.cloneDeep)(data.buttonText),
|
|
110
112
|
content: {
|
|
111
|
-
backgroundColor: data.content.backgroundColor
|
|
113
|
+
backgroundColor: (0, _lodash.cloneDeep)(data.content.backgroundColor)
|
|
112
114
|
}
|
|
113
115
|
}); // console.log('--ffd, button hover first click', data);
|
|
114
116
|
|
|
@@ -162,7 +164,7 @@ function (_super) {
|
|
|
162
164
|
|
|
163
165
|
var fontSizeKey = window.magicDesign.device == 'pc' ? 'pcFontSize' : 'fontSize';
|
|
164
166
|
|
|
165
|
-
var ButtonTextSetting = function ButtonTextSetting(
|
|
167
|
+
var ButtonTextSetting = function ButtonTextSetting(_data) {
|
|
166
168
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
167
169
|
title: (0, _locale.i18n)('FONT_STYLE')
|
|
168
170
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
@@ -171,24 +173,24 @@ function (_super) {
|
|
|
171
173
|
return t.key == v;
|
|
172
174
|
});
|
|
173
175
|
|
|
174
|
-
_extends(
|
|
176
|
+
_extends(_data, __assign(__assign({}, findOne), {
|
|
175
177
|
sizeType: findOne === null || findOne === void 0 ? void 0 : findOne.key
|
|
176
178
|
}));
|
|
177
179
|
|
|
178
180
|
_this.selfRender();
|
|
179
181
|
},
|
|
180
|
-
value:
|
|
182
|
+
value: _data.sizeType
|
|
181
183
|
}, _TextConfig.sizeTypeList.map(function (sizeType) {
|
|
182
184
|
return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
183
185
|
value: sizeType.key
|
|
184
186
|
}, sizeType.key);
|
|
185
|
-
}))),
|
|
187
|
+
}))), _data.sizeType == 'Customize font styles' && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
186
188
|
title: (0, _locale.i18n)('FONT_FAMILY')
|
|
187
189
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
188
190
|
onChange: function onChange(v) {
|
|
189
|
-
_this.updateAttr(
|
|
191
|
+
_this.updateAttr(_data, 'fontFamily', v);
|
|
190
192
|
},
|
|
191
|
-
value:
|
|
193
|
+
value: _data.fontFamily
|
|
192
194
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
193
195
|
value: "Montserrat"
|
|
194
196
|
}, "Montserrat"), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
@@ -197,9 +199,9 @@ function (_super) {
|
|
|
197
199
|
title: (0, _locale.i18n)('FONT_WEIGHT')
|
|
198
200
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
199
201
|
onChange: function onChange(v) {
|
|
200
|
-
_this.updateAttr(
|
|
202
|
+
_this.updateAttr(_data, 'fontWeight', v);
|
|
201
203
|
},
|
|
202
|
-
value:
|
|
204
|
+
value: _data.fontWeight
|
|
203
205
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
204
206
|
value: 400
|
|
205
207
|
}, (0, _locale.i18n)('REGULAR')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
@@ -210,34 +212,34 @@ function (_super) {
|
|
|
210
212
|
onChange: function onChange(_a) {
|
|
211
213
|
var count = _a.count;
|
|
212
214
|
|
|
213
|
-
_this.updateAttr(
|
|
215
|
+
_this.updateAttr(_data, fontSizeKey, count);
|
|
214
216
|
},
|
|
215
217
|
unit: "px",
|
|
216
218
|
value: {
|
|
217
|
-
count:
|
|
219
|
+
count: _data[fontSizeKey]
|
|
218
220
|
}
|
|
219
221
|
}))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
220
222
|
title: ""
|
|
221
223
|
}, /*#__PURE__*/_react["default"].createElement(_common.FontStyles, {
|
|
222
224
|
onChange: function onChange(value) {
|
|
223
|
-
_extends(
|
|
225
|
+
_extends(_data, value);
|
|
224
226
|
|
|
225
227
|
_this.selfRender();
|
|
226
228
|
},
|
|
227
|
-
value:
|
|
229
|
+
value: _data
|
|
228
230
|
})));
|
|
229
231
|
};
|
|
230
232
|
|
|
231
|
-
var ButtonBorderSetting = function ButtonBorderSetting(
|
|
233
|
+
var ButtonBorderSetting = function ButtonBorderSetting(_data) {
|
|
232
234
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
233
235
|
split: true,
|
|
234
236
|
title: (0, _locale.i18n)('BORDER_COLOR')
|
|
235
237
|
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
236
238
|
colorType: "rgba",
|
|
237
239
|
onChange: function onChange(value) {
|
|
238
|
-
_this.updateAttr(
|
|
240
|
+
_this.updateAttr(_data, 'borderColor', value);
|
|
239
241
|
},
|
|
240
|
-
value:
|
|
242
|
+
value: _data.borderColor
|
|
241
243
|
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
242
244
|
title: (0, _locale.i18n)('BORDER_RADIUS')
|
|
243
245
|
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
@@ -245,15 +247,15 @@ function (_super) {
|
|
|
245
247
|
onChange: function onChange(_a) {
|
|
246
248
|
var count = _a.count;
|
|
247
249
|
|
|
248
|
-
_this.updateAttr(
|
|
250
|
+
_this.updateAttr(_data, 'borderRadius', count);
|
|
249
251
|
},
|
|
250
252
|
value: {
|
|
251
|
-
count:
|
|
253
|
+
count: _data.borderRadius
|
|
252
254
|
}
|
|
253
255
|
})));
|
|
254
256
|
};
|
|
255
257
|
|
|
256
|
-
var ButtonIconSetting = function ButtonIconSetting(
|
|
258
|
+
var ButtonIconSetting = function ButtonIconSetting(_data) {
|
|
257
259
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
258
260
|
title: (0, _locale.i18n)('ICON')
|
|
259
261
|
}, /*#__PURE__*/_react["default"].createElement(_common.IconPicker, {
|
|
@@ -262,18 +264,18 @@ function (_super) {
|
|
|
262
264
|
},
|
|
263
265
|
onClick: function onClick() {
|
|
264
266
|
_this.setState({
|
|
265
|
-
isHover:
|
|
267
|
+
isHover: _data == _this.props._data.hover.buttonIcon
|
|
266
268
|
});
|
|
267
269
|
},
|
|
268
|
-
value:
|
|
269
|
-
})),
|
|
270
|
+
value: _data.iconUrl
|
|
271
|
+
})), _data.iconUrl && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
270
272
|
title: (0, _locale.i18n)('ICON_PLACEMENT')
|
|
271
273
|
}, /*#__PURE__*/_react["default"].createElement(_common.ButtonIconLayout, {
|
|
272
|
-
icon:
|
|
274
|
+
icon: _data.iconUrl,
|
|
273
275
|
onChange: function onChange(value) {
|
|
274
|
-
return _this.updateAttr(
|
|
276
|
+
return _this.updateAttr(_data, 'layout', value);
|
|
275
277
|
},
|
|
276
|
-
value:
|
|
278
|
+
value: _data.layout
|
|
277
279
|
})));
|
|
278
280
|
};
|
|
279
281
|
|
|
@@ -319,7 +319,8 @@ function (_super) {
|
|
|
319
319
|
data = _a.data,
|
|
320
320
|
needHover = _a.needHover,
|
|
321
321
|
needClickArea = _a.needClickArea,
|
|
322
|
-
needURL = _a.needURL
|
|
322
|
+
needURL = _a.needURL,
|
|
323
|
+
recommendImgSize = _a.recommendImgSize;
|
|
323
324
|
var selectImg = this.getSelectedImg(data);
|
|
324
325
|
|
|
325
326
|
var ContentSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
|
|
@@ -330,6 +331,7 @@ function (_super) {
|
|
|
330
331
|
onChange: function onChange(v, way) {
|
|
331
332
|
_this.getImg(v, way);
|
|
332
333
|
},
|
|
334
|
+
recommendImgSize: recommendImgSize,
|
|
333
335
|
value: selectImg
|
|
334
336
|
}), needClickArea && selectImg && /*#__PURE__*/_react["default"].createElement(_HotAreaConfig["default"], {
|
|
335
337
|
imgUrl: selectImg,
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _reactQuill = _interopRequireDefault(require("react-quill"));
|
|
11
|
+
|
|
12
|
+
require("react-quill/dist/quill.snow.css");
|
|
13
|
+
|
|
14
|
+
var _antd = require("antd");
|
|
15
|
+
|
|
16
|
+
require("./index.less");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
21
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
22
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
23
|
+
__proto__: []
|
|
24
|
+
} instanceof Array && function (d, b) {
|
|
25
|
+
d.__proto__ = b;
|
|
26
|
+
} || function (d, b) {
|
|
27
|
+
for (var p in b) {
|
|
28
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
return _extendStatics(d, b);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return function (d, b) {
|
|
36
|
+
_extendStatics(d, b);
|
|
37
|
+
|
|
38
|
+
function __() {
|
|
39
|
+
this.constructor = d;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43
|
+
};
|
|
44
|
+
}();
|
|
45
|
+
|
|
46
|
+
var TextEditModal =
|
|
47
|
+
/** @class */
|
|
48
|
+
function (_super) {
|
|
49
|
+
__extends(TextEditModal, _super);
|
|
50
|
+
|
|
51
|
+
function TextEditModal() {
|
|
52
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53
|
+
|
|
54
|
+
_this.state = {
|
|
55
|
+
value: ''
|
|
56
|
+
};
|
|
57
|
+
_this.reactQuillRef = null;
|
|
58
|
+
_this.quillRef = null;
|
|
59
|
+
|
|
60
|
+
_this.getHtml = function () {
|
|
61
|
+
return _this.quillRef.root.innerHTML;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
return _this;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
TextEditModal.prototype.componentDidMount = function () {
|
|
68
|
+
this.quillRef = this.reactQuillRef.getEditor();
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
TextEditModal.prototype.render = function () {
|
|
72
|
+
var _this = this;
|
|
73
|
+
|
|
74
|
+
var _a = this.props,
|
|
75
|
+
onCancel = _a.onCancel,
|
|
76
|
+
onOk = _a.onOk;
|
|
77
|
+
var value = this.state.value;
|
|
78
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Modal, {
|
|
79
|
+
closable: false,
|
|
80
|
+
onCancel: onCancel,
|
|
81
|
+
onOk: onOk,
|
|
82
|
+
visible: true,
|
|
83
|
+
width: 1000
|
|
84
|
+
}, /*#__PURE__*/_react["default"].createElement(_reactQuill["default"], {
|
|
85
|
+
ref: function ref(el) {
|
|
86
|
+
_this.reactQuillRef = el;
|
|
87
|
+
},
|
|
88
|
+
style: {
|
|
89
|
+
height: 600
|
|
90
|
+
},
|
|
91
|
+
value: value
|
|
92
|
+
}));
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
TextEditModal.defaultProps = {};
|
|
96
|
+
return TextEditModal;
|
|
97
|
+
}(_react["default"].Component);
|
|
98
|
+
|
|
99
|
+
var _default = TextEditModal;
|
|
100
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.text-label-content {
|
|
2
|
+
background-color: #f5f6f7;
|
|
3
|
+
|
|
4
|
+
.label-wrap {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
|
|
9
|
+
.label-item {
|
|
10
|
+
padding: 5px 11px;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
border-radius: 5px;
|
|
16
|
+
background-color: #fff;
|
|
17
|
+
margin: 8px;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
background-color: #f6f6f7;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _antd = require("antd");
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
require("./index.less");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
|
|
18
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
19
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
20
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
21
|
+
__proto__: []
|
|
22
|
+
} instanceof Array && function (d, b) {
|
|
23
|
+
d.__proto__ = b;
|
|
24
|
+
} || function (d, b) {
|
|
25
|
+
for (var p in b) {
|
|
26
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
return _extendStatics(d, b);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
return function (d, b) {
|
|
34
|
+
_extendStatics(d, b);
|
|
35
|
+
|
|
36
|
+
function __() {
|
|
37
|
+
this.constructor = d;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
41
|
+
};
|
|
42
|
+
}();
|
|
43
|
+
/* eslint-disable react/no-danger */
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
var UnderlineSelect =
|
|
47
|
+
/** @class */
|
|
48
|
+
function (_super) {
|
|
49
|
+
__extends(UnderlineSelect, _super);
|
|
50
|
+
|
|
51
|
+
function UnderlineSelect() {
|
|
52
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53
|
+
|
|
54
|
+
_this.containerRef = /*#__PURE__*/_react["default"].createRef();
|
|
55
|
+
return _this;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
UnderlineSelect.prototype.render = function () {
|
|
59
|
+
var _this = this;
|
|
60
|
+
|
|
61
|
+
var _a = this.props.repeatCount,
|
|
62
|
+
repeatCount = _a === void 0 ? 50 : _a;
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
64
|
+
ref: this.containerRef,
|
|
65
|
+
className: "underline-select-wrap"
|
|
66
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, _extends({
|
|
67
|
+
getPopupContainer: function getPopupContainer() {
|
|
68
|
+
return _this.containerRef.current;
|
|
69
|
+
}
|
|
70
|
+
}, this.props), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
71
|
+
value: "solid"
|
|
72
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
+
className: "line-config line-solid",
|
|
74
|
+
dangerouslySetInnerHTML: {
|
|
75
|
+
__html: ' '.repeat(repeatCount)
|
|
76
|
+
}
|
|
77
|
+
})), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
78
|
+
value: "dashed"
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
|
+
className: "line-config dashed-line",
|
|
81
|
+
dangerouslySetInnerHTML: {
|
|
82
|
+
__html: ' '.repeat(repeatCount)
|
|
83
|
+
}
|
|
84
|
+
})), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
85
|
+
value: "double"
|
|
86
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
87
|
+
className: "line-config double-line",
|
|
88
|
+
dangerouslySetInnerHTML: {
|
|
89
|
+
__html: ' '.repeat(repeatCount)
|
|
90
|
+
}
|
|
91
|
+
})), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
92
|
+
value: "wavy"
|
|
93
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
94
|
+
className: "line-config wavy-line",
|
|
95
|
+
dangerouslySetInnerHTML: {
|
|
96
|
+
__html: ' '.repeat(repeatCount)
|
|
97
|
+
}
|
|
98
|
+
}))));
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
UnderlineSelect.defaultProps = {
|
|
102
|
+
repeatCount: 50
|
|
103
|
+
};
|
|
104
|
+
return UnderlineSelect;
|
|
105
|
+
}(_react["default"].Component);
|
|
106
|
+
|
|
107
|
+
var _default = UnderlineSelect;
|
|
108
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.underline-select-wrap {
|
|
2
|
+
.line-config {
|
|
3
|
+
text-decoration-line: line-through;
|
|
4
|
+
text-decoration-color: #000;
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
font-weight: 600;
|
|
7
|
+
|
|
8
|
+
&.line-solid {
|
|
9
|
+
text-decoration-style: solid;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.dashed-line {
|
|
13
|
+
text-decoration-style: dashed;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.double-line {
|
|
17
|
+
text-decoration-style: double;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.wavy-line {
|
|
21
|
+
text-decoration-style: wavy;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
}
|
|
@@ -13,6 +13,8 @@ var _antd = require("antd");
|
|
|
13
13
|
|
|
14
14
|
var _TextLabel = _interopRequireDefault(require("./TextLabel"));
|
|
15
15
|
|
|
16
|
+
var _UnderlineSelect = _interopRequireDefault(require("./UnderlineSelect"));
|
|
17
|
+
|
|
16
18
|
var _coreUtil = require("../../../utils/coreUtil");
|
|
17
19
|
|
|
18
20
|
var _locale = require("../../../locale");
|
|
@@ -146,6 +148,7 @@ function (_super) {
|
|
|
146
148
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
147
149
|
|
|
148
150
|
_this.state = {};
|
|
151
|
+
_this.containerRef = /*#__PURE__*/_react["default"].createRef();
|
|
149
152
|
|
|
150
153
|
_this.onSizeTypeChange = function (v, obj) {
|
|
151
154
|
_extends(obj, sizeTypeMap[v]);
|
|
@@ -329,42 +332,17 @@ function (_super) {
|
|
|
329
332
|
value: data.underline.textDecorationColor
|
|
330
333
|
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
331
334
|
title: (0, _locale.i18n)('UNDERLINE_STYLE')
|
|
332
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
335
|
+
}, /*#__PURE__*/_react["default"].createElement(_UnderlineSelect["default"], {
|
|
333
336
|
onChange: function onChange(v) {
|
|
334
337
|
data.underline.textDecorationStyle = v;
|
|
335
338
|
|
|
336
339
|
_this.selfRender();
|
|
337
340
|
},
|
|
341
|
+
style: {
|
|
342
|
+
width: '100%'
|
|
343
|
+
},
|
|
338
344
|
value: data.underline.textDecorationStyle
|
|
339
|
-
},
|
|
340
|
-
value: "solid"
|
|
341
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
342
|
-
className: "line-config line-solid",
|
|
343
|
-
dangerouslySetInnerHTML: {
|
|
344
|
-
__html: ' '.repeat(50)
|
|
345
|
-
}
|
|
346
|
-
})), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
347
|
-
value: "dashed"
|
|
348
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
349
|
-
className: "line-config dashed-line",
|
|
350
|
-
dangerouslySetInnerHTML: {
|
|
351
|
-
__html: ' '.repeat(50)
|
|
352
|
-
}
|
|
353
|
-
})), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
354
|
-
value: "double"
|
|
355
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
356
|
-
className: "line-config double-line",
|
|
357
|
-
dangerouslySetInnerHTML: {
|
|
358
|
-
__html: ' '.repeat(50)
|
|
359
|
-
}
|
|
360
|
-
})), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
361
|
-
value: "wavy"
|
|
362
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
363
|
-
className: "line-config wavy-line",
|
|
364
|
-
dangerouslySetInnerHTML: {
|
|
365
|
-
__html: ' '.repeat(50)
|
|
366
|
-
}
|
|
367
|
-
}))))),
|
|
345
|
+
}))),
|
|
368
346
|
metaOption: data.underline,
|
|
369
347
|
toggleType: 'checkbox'
|
|
370
348
|
}];
|
|
@@ -380,6 +358,7 @@ function (_super) {
|
|
|
380
358
|
}
|
|
381
359
|
|
|
382
360
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
361
|
+
ref: this.containerRef,
|
|
383
362
|
className: "m-text-config"
|
|
384
363
|
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse // divider="dashed"
|
|
385
364
|
// headerSize="small"
|
|
@@ -3,22 +3,18 @@
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
padding: 0 12px;
|
|
5
5
|
background-color: #F5F6F7;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
|
|
7
|
+
.edit-text-btn {
|
|
8
|
+
margin: 8px auto;
|
|
9
|
+
padding: 6px 16px;
|
|
10
|
+
background-color: #2e54eb;
|
|
11
|
+
color: #fff;
|
|
9
12
|
font-size: 14px;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
text-decoration-style: dashed;
|
|
17
|
-
}
|
|
18
|
-
.double-line {
|
|
19
|
-
text-decoration-style: double;
|
|
20
|
-
}
|
|
21
|
-
.wavy-line {
|
|
22
|
-
text-decoration-style: wavy;
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
background-color: #0837f4;
|
|
18
|
+
}
|
|
23
19
|
}
|
|
24
20
|
}
|
package/lib/mobx/Frame.js
CHANGED
|
@@ -38,11 +38,17 @@ function () {
|
|
|
38
38
|
content: '',
|
|
39
39
|
okText: 'Ok',
|
|
40
40
|
cancelText: 'Cancel',
|
|
41
|
+
quillRef: null,
|
|
41
42
|
onOk: function onOk() {},
|
|
42
43
|
onCancel: function onCancel() {}
|
|
43
44
|
};
|
|
45
|
+
this.textModalState = {
|
|
46
|
+
visible: false,
|
|
47
|
+
onOk: function onOk() {}
|
|
48
|
+
};
|
|
44
49
|
(0, _mobx.makeObservable)(this, {
|
|
45
|
-
confirmState: _mobx.observable
|
|
50
|
+
confirmState: _mobx.observable,
|
|
51
|
+
textModalState: _mobx.observable
|
|
46
52
|
});
|
|
47
53
|
}
|
|
48
54
|
/** 修改状态 */
|
package/lib/utils/androidUtil.js
CHANGED
|
@@ -117,6 +117,12 @@ var sendToApp = function sendToApp(params) {
|
|
|
117
117
|
// 对接flutter版本
|
|
118
118
|
if (window.flutter_inject_js_bridge && window.flutter_inject_js_bridge.postMessage) {
|
|
119
119
|
window.flutter_inject_js_bridge.postMessage(JSON.stringify(params));
|
|
120
|
+
} // 对接Nuri App
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
if (window.WebViewJavascriptBridge) {
|
|
124
|
+
window.WebViewJavascriptBridge.callHandler('action', // 调用java的函数名字
|
|
125
|
+
params);
|
|
120
126
|
} // 对接mpaas版本
|
|
121
127
|
|
|
122
128
|
|
package/lib/utils/commonUtil.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.addZero = exports.addUrlQuery = void 0;
|
|
|
7
7
|
exports.asyncDataURLtoImage = asyncDataURLtoImage;
|
|
8
8
|
exports.checkFileName = exports.calcLastTime = exports.asyncNextTick = void 0;
|
|
9
9
|
exports.commonFetch = commonFetch;
|
|
10
|
-
exports.compatibleNewPageData = void 0;
|
|
10
|
+
exports.convertCount = exports.compatibleNewPageData = void 0;
|
|
11
11
|
exports.convertImageUrl = convertImageUrl;
|
|
12
12
|
exports.convertToRem = void 0;
|
|
13
13
|
exports.copy2ClipBoard = copy2ClipBoard;
|
|
@@ -744,12 +744,12 @@ exports.asyncNextTick = asyncNextTick;
|
|
|
744
744
|
|
|
745
745
|
var convertToRem = function convertToRem(value) {
|
|
746
746
|
// return value; // PTO项目 解开注释
|
|
747
|
-
if (window.magicDesign.device === 'pc'
|
|
747
|
+
if (window.magicDesign.device === 'pc') {
|
|
748
748
|
return value + "px";
|
|
749
749
|
}
|
|
750
750
|
|
|
751
751
|
var baseFont = ensure(function () {
|
|
752
|
-
return window.getComputedStyle(document.getElementsByTagName('html')[0]).fontSize.replace('px');
|
|
752
|
+
return window.getComputedStyle(document.getElementsByTagName('html')[0]).fontSize.replace('px', '');
|
|
753
753
|
}, 50);
|
|
754
754
|
var pxValue = parseFloat(value);
|
|
755
755
|
var remValue = pxValue / baseFont; // 假设1rem = 50px
|
|
@@ -763,7 +763,7 @@ exports.convertToRem = convertToRem;
|
|
|
763
763
|
|
|
764
764
|
var pxToRem = function pxToRem(styleObj) {
|
|
765
765
|
// return styleObj; // PTO项目 解开注释
|
|
766
|
-
if (window.magicDesign.device === 'pc'
|
|
766
|
+
if (window.magicDesign.device === 'pc') {
|
|
767
767
|
return styleObj;
|
|
768
768
|
}
|
|
769
769
|
|
|
@@ -774,9 +774,9 @@ var pxToRem = function pxToRem(styleObj) {
|
|
|
774
774
|
var value = styleObj[key];
|
|
775
775
|
|
|
776
776
|
if (typeof value === 'string' && value.endsWith('px')) {
|
|
777
|
-
remObj[key] =
|
|
777
|
+
remObj[key] = convertToRem(value.split('px')[0]);
|
|
778
778
|
} else if (typeof value === 'number') {
|
|
779
|
-
remObj[key] = convertToRem(value);
|
|
779
|
+
remObj[key] = ['opacity', 'lineHeight', 'zIndex', 'fontWeight'].includes(key) ? value : convertToRem(value);
|
|
780
780
|
} else if ((key === 'padding' || key === 'margin') && typeof value === 'string') {
|
|
781
781
|
var paddingValues = value.split(' ');
|
|
782
782
|
var remPaddingValues = paddingValues.map(function (paddingValue) {
|
|
@@ -843,6 +843,20 @@ var compatibleNewPageData = function compatibleNewPageData(pageData) {
|
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
845
|
}); // console.log('--compatibleNewPageData -- video add group.playIcon ', child.groupSource);
|
|
846
|
+
} // 兼容新功能:SEARCH 新增控制购物车和消息图标的开关
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
if (child.type === 'SEARCH') {
|
|
850
|
+
if (!child.content.icon.cartIcon || !child.content.icon.messageIcon) {
|
|
851
|
+
child.content.icon.cartIcon = {
|
|
852
|
+
pc: true,
|
|
853
|
+
mobile: false
|
|
854
|
+
};
|
|
855
|
+
child.content.icon.messageIcon = {
|
|
856
|
+
pc: false,
|
|
857
|
+
mobile: true
|
|
858
|
+
};
|
|
859
|
+
}
|
|
846
860
|
}
|
|
847
861
|
});
|
|
848
862
|
}
|
|
@@ -870,4 +884,18 @@ var downloadBase64Image = function downloadBase64Image(base64String, filename) {
|
|
|
870
884
|
link.click();
|
|
871
885
|
};
|
|
872
886
|
|
|
873
|
-
exports.downloadBase64Image = downloadBase64Image;
|
|
887
|
+
exports.downloadBase64Image = downloadBase64Image;
|
|
888
|
+
|
|
889
|
+
var convertCount = function convertCount(value) {
|
|
890
|
+
var newValue = value;
|
|
891
|
+
|
|
892
|
+
if (value >= 1000000) {
|
|
893
|
+
newValue = Number(value / 1000000).toFixed(1) + "M";
|
|
894
|
+
} else if (value >= 1000) {
|
|
895
|
+
newValue = Number(value / 1000).toFixed(1) + "K";
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
return newValue;
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
exports.convertCount = convertCount;
|