@fonixtree/magic-design 0.1.77 → 0.1.79
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/Trueno-Light.otf +0 -0
- package/es/assets/fonts/Trueno-Regular.otf +0 -0
- package/es/assets/fonts/TruenoBd.otf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +51 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +51 -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/base64/index.js +36 -2
- 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/images/layout-icon/walletLayout2.png +0 -0
- package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/es/assets/less/cylon-antd.less +7246 -1686
- package/es/assets/less/font.less +22 -0
- package/es/assets/less/modal.less +1 -1
- package/es/common/AffiliateProductModal/index.js +582 -0
- package/es/common/AffiliateProductModal/index.less +146 -0
- package/es/common/CardCarousel/index.js +171 -0
- package/es/common/CardCarousel/index.less +28 -0
- package/es/common/ColorPicker/index.js +4 -1
- package/es/common/Field/index.js +20 -3
- package/es/common/GroupList/index.less +3 -0
- package/es/common/ImageLazy/index.js +172 -0
- package/es/common/ImageLazy/index.less +0 -0
- package/es/common/ImagePicker/index.js +50 -7
- 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 +13 -10
- package/es/common/LinkModal/FilteredProductModal/index.less +1 -1
- package/es/common/LinkModal/FunctionTable/index.js +2 -1
- package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/es/common/LinkModal/index.js +15 -3
- package/es/common/MyModal/index.js +417 -0
- package/es/common/MyModal/index.less +74 -0
- package/es/common/ProductModal/index.js +27 -35
- package/es/common/ProductSource/index.js +42 -10
- package/es/common/UrlPicker/index.js +3 -1
- package/es/common/Video/index.js +11 -3
- package/es/common/Video/index.less +11 -7
- package/es/common/index.js +16 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +9 -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 +97 -5
- 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/components/Video/index.js +1 -2
- package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
- package/es/composite-comp/bol/components/Wallet/index.js +11 -15
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
- package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
- package/es/composite-comp/bol/components/WalletNuri/index.js +84 -0
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -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/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -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 +121 -8
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +53 -2
- package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
- package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
- package/es/composite-comp/common/components/ImageLabel/index.less +9 -3
- package/es/composite-comp/common/components/ProductItem/index.js +32 -20
- package/es/composite-comp/common/components/ProductItem/index.less +43 -19
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
- package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
- package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
- package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
- package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
- package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +26 -12
- package/es/composite-comp/dito/components/Recommend/pc/index.js +14 -12
- 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/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -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/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
- package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
- package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
- 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 +35 -3
- package/es/constants/index.js +36 -2
- package/es/constants/layout.js +68 -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/components/SearchCondition/index.js +110 -0
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
- package/es/core/Designer/ChatRobot/index.js +84 -25
- package/es/core/Designer/ChatRobot/index.less +80 -28
- package/es/core/Designer/ConfigPanel/index.js +10 -4
- package/es/core/Designer/FonixtreeGpt/index.js +32 -171
- package/es/core/Designer/History/index.js +2 -2
- package/es/core/Designer/LeftTitle/index.js +1 -1
- package/es/core/Designer/PageCompList/index.js +8 -5
- package/es/core/Designer/QuickMenuBar/index.js +5 -3
- package/es/core/Designer/QuickMenuBar/index.less +4 -0
- package/es/core/Designer/RenderHtml/index.js +18 -15
- package/es/core/Designer/RenderHtml/index.less +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 +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +40 -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 +117 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +10 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +136 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +27 -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 +126 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +10 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -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 +176 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
- package/es/core/Designer/ToolBarModal/index.js +412 -0
- package/es/core/Designer/ToolBarModal/index.less +33 -0
- package/es/core/Designer/index.js +45 -11
- package/es/core/Renderer/index.js +75 -29
- package/es/decorator/compositeDecorator.js +23 -0
- package/es/decorator/index.js +38 -1
- package/es/decorator/lazyLoadDecorator.js +75 -0
- package/es/locale/en/en.json +12 -2
- package/es/locale/es/es.json +12 -2
- package/es/locale/id/id.json +12 -2
- package/es/meta-comp/components/Button/index.js +7 -0
- package/es/meta-comp/components/Image/index.js +48 -26
- 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/textAlign.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 +123 -366
- package/es/meta-comp/components/Text/index.less +65 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +30 -28
- package/es/meta-comp/config-panels/ImageConfig/index.js +50 -44
- 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 +22 -1
- package/es/utils/androidUtil.js +6 -0
- package/es/utils/businessUtil.js +17 -6
- package/es/utils/commonUtil.js +87 -9
- package/es/utils/coreUtil.js +15 -0
- package/es/utils/currencyUtil.js +37 -11
- package/lib/assets/fonts/Trueno-Light.otf +0 -0
- package/lib/assets/fonts/Trueno-Regular.otf +0 -0
- package/lib/assets/fonts/TruenoBd.otf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +51 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +51 -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/base64/index.js +36 -2
- 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/images/layout-icon/walletLayout2.png +0 -0
- package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/lib/assets/less/cylon-antd.less +7246 -1686
- package/lib/assets/less/font.less +22 -0
- package/lib/assets/less/modal.less +1 -1
- package/lib/common/AffiliateProductModal/index.js +582 -0
- package/lib/common/AffiliateProductModal/index.less +146 -0
- package/lib/common/CardCarousel/index.js +171 -0
- package/lib/common/CardCarousel/index.less +28 -0
- package/lib/common/ColorPicker/index.js +4 -1
- package/lib/common/Field/index.js +20 -3
- package/lib/common/GroupList/index.less +3 -0
- package/lib/common/ImageLazy/index.js +172 -0
- package/lib/common/ImageLazy/index.less +0 -0
- package/lib/common/ImagePicker/index.js +50 -7
- 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 +13 -10
- package/lib/common/LinkModal/FilteredProductModal/index.less +1 -1
- package/lib/common/LinkModal/FunctionTable/index.js +2 -1
- package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
- package/lib/common/LinkModal/index.js +15 -3
- package/lib/common/MyModal/index.js +417 -0
- package/lib/common/MyModal/index.less +74 -0
- package/lib/common/ProductModal/index.js +27 -35
- package/lib/common/ProductSource/index.js +42 -10
- package/lib/common/UrlPicker/index.js +3 -1
- package/lib/common/Video/index.js +11 -3
- package/lib/common/Video/index.less +11 -7
- package/lib/common/index.js +16 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +9 -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 +97 -5
- 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/components/Video/index.js +1 -2
- package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
- package/lib/composite-comp/bol/components/Wallet/index.js +11 -15
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
- package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
- package/lib/composite-comp/bol/components/WalletNuri/index.js +84 -0
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -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/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -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 +121 -8
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +53 -2
- package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
- package/lib/composite-comp/common/components/ImageLabel/index.less +9 -3
- package/lib/composite-comp/common/components/ProductItem/index.js +32 -20
- package/lib/composite-comp/common/components/ProductItem/index.less +43 -19
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
- package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
- package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
- package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
- package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
- package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +26 -12
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +14 -12
- 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/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -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/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
- package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
- package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
- 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 +35 -3
- package/lib/constants/index.js +36 -2
- package/lib/constants/layout.js +68 -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/components/SearchCondition/index.js +110 -0
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
- package/lib/core/Designer/ChatRobot/index.js +84 -25
- package/lib/core/Designer/ChatRobot/index.less +80 -28
- package/lib/core/Designer/ConfigPanel/index.js +10 -4
- package/lib/core/Designer/FonixtreeGpt/index.js +32 -171
- package/lib/core/Designer/History/index.js +2 -2
- package/lib/core/Designer/LeftTitle/index.js +1 -1
- package/lib/core/Designer/PageCompList/index.js +8 -5
- package/lib/core/Designer/QuickMenuBar/index.js +5 -3
- package/lib/core/Designer/QuickMenuBar/index.less +4 -0
- package/lib/core/Designer/RenderHtml/index.js +18 -15
- package/lib/core/Designer/RenderHtml/index.less +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 +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +40 -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 +117 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +10 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +136 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +27 -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 +126 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +10 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -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 +176 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
- package/lib/core/Designer/ToolBarModal/index.js +412 -0
- package/lib/core/Designer/ToolBarModal/index.less +33 -0
- package/lib/core/Designer/index.js +45 -11
- package/lib/core/Renderer/index.js +75 -29
- package/lib/decorator/compositeDecorator.js +23 -0
- package/lib/decorator/index.js +38 -1
- package/lib/decorator/lazyLoadDecorator.js +75 -0
- package/lib/locale/en/en.json +12 -2
- package/lib/locale/es/es.json +12 -2
- package/lib/locale/id/id.json +12 -2
- package/lib/meta-comp/components/Button/index.js +7 -0
- package/lib/meta-comp/components/Image/index.js +48 -26
- 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/textAlign.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 +123 -366
- package/lib/meta-comp/components/Text/index.less +65 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +30 -28
- package/lib/meta-comp/config-panels/ImageConfig/index.js +50 -44
- 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 +22 -1
- package/lib/utils/androidUtil.js +6 -0
- package/lib/utils/businessUtil.js +17 -6
- package/lib/utils/commonUtil.js +87 -9
- package/lib/utils/coreUtil.js +15 -0
- package/lib/utils/currencyUtil.js +37 -11
- package/package.json +5 -2
|
@@ -11,7 +11,7 @@ require("./index.less");
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
15
15
|
|
|
16
16
|
var _AlignSelector = require("../../../../../common/AlignSelector");
|
|
17
17
|
|
|
@@ -111,12 +111,24 @@ function (_super) {
|
|
|
111
111
|
_this.getCardStyle = function (source, i) {
|
|
112
112
|
var data = _this.props.data;
|
|
113
113
|
var cardStyle = {
|
|
114
|
-
width: _this.calcWidth(data.customize.pcRowNum),
|
|
115
|
-
marginRight: (1 + i) % data.customize.pcRowNum !== 0 ? '2%' : 0,
|
|
116
114
|
alignItems: _AlignSelector.alignItemMap[data.customize.align],
|
|
117
115
|
textAlign: data.customize.align
|
|
118
116
|
};
|
|
117
|
+
|
|
118
|
+
if (data.customize.layout.pcLayout === 'leftImage' || data.customize.layout.pcLayout === 'rightImage') {
|
|
119
|
+
if ((data === null || data === void 0 ? void 0 : data.groupSource.length) > 1 && i != (data === null || data === void 0 ? void 0 : data.groupSource.length) - 1) {
|
|
120
|
+
cardStyle.marginBottom = 48;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
cardStyle.alignItems = 'center';
|
|
124
|
+
} else {
|
|
125
|
+
cardStyle.marginRight = (1 + i) % data.customize.pcRowNum !== 0 ? '2%' : 0;
|
|
126
|
+
cardStyle.width = _this.calcWidth(data.customize.pcRowNum);
|
|
127
|
+
cardStyle.alignItems = _AlignSelector.alignItemMap[data.customize.align];
|
|
128
|
+
}
|
|
129
|
+
|
|
119
130
|
var wrapStyle = (0, _businessUtil.computeStyle)(source, window.magicDesign.device);
|
|
131
|
+
console.log('cc wrapStyle', source, wrapStyle);
|
|
120
132
|
var hoverIndex = _this.state.hoverIndex;
|
|
121
133
|
var hoverStyle = {};
|
|
122
134
|
|
|
@@ -127,6 +139,86 @@ function (_super) {
|
|
|
127
139
|
return __assign(__assign(__assign({}, cardStyle), wrapStyle), hoverStyle);
|
|
128
140
|
};
|
|
129
141
|
|
|
142
|
+
_this.getContentStyle = function () {
|
|
143
|
+
var data = _this.props.data;
|
|
144
|
+
return {
|
|
145
|
+
alignItems: _AlignSelector.alignItemMap[data.customize.align]
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
_this.getAnotherLayout = function () {
|
|
150
|
+
var data = _this.props.data;
|
|
151
|
+
var hoverIndex = _this.state.hoverIndex;
|
|
152
|
+
var GAData = (0, _commonUtil.getGAData)(data);
|
|
153
|
+
console.log('ff--image text', data);
|
|
154
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, (data === null || data === void 0 ? void 0 : data.groupSource.length) > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
|
+
className: "group-wrap"
|
|
156
|
+
}, data.groupSource.map(function (source, i) {
|
|
157
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
158
|
+
key: source.id,
|
|
159
|
+
className: "one-card",
|
|
160
|
+
onMouseEnter: function onMouseEnter() {
|
|
161
|
+
if (source.hover.open) {
|
|
162
|
+
_this.setState({
|
|
163
|
+
hoverIndex: i
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
onMouseLeave: function onMouseLeave() {
|
|
168
|
+
_this.setState({
|
|
169
|
+
hoverIndex: -1
|
|
170
|
+
});
|
|
171
|
+
},
|
|
172
|
+
style: _this.getCardStyle(source, i)
|
|
173
|
+
}, (source.image.open && hoverIndex != i || hoverIndex == i && source.hover.image.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
174
|
+
className: "card-image-wrap"
|
|
175
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
176
|
+
className: "card-image",
|
|
177
|
+
data: hoverIndex == i ? source.hover.image : source.image,
|
|
178
|
+
GAData: __assign(__assign({}, GAData), {
|
|
179
|
+
groupId: source.id,
|
|
180
|
+
groupName: (0, _ConfigPanel.getSecondConfigName)(data, source.id)
|
|
181
|
+
}),
|
|
182
|
+
maxWidth: 654,
|
|
183
|
+
minWidth: 300,
|
|
184
|
+
scale: 0.5
|
|
185
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
186
|
+
className: "content-wrap",
|
|
187
|
+
style: _this.getContentStyle()
|
|
188
|
+
}, (source.title.open && hoverIndex != i || hoverIndex == i && source.hover.title.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
189
|
+
className: "card-title",
|
|
190
|
+
data: hoverIndex == i ? source.hover.title : source.title,
|
|
191
|
+
GAData: __assign(__assign({}, GAData), {
|
|
192
|
+
groupId: source.id,
|
|
193
|
+
groupName: (0, _ConfigPanel.getSecondConfigName)(data, source.id)
|
|
194
|
+
})
|
|
195
|
+
}), (source.text.open && hoverIndex != i || hoverIndex == i && source.hover.text.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
196
|
+
className: "card-text",
|
|
197
|
+
data: hoverIndex == i ? source.hover.text : source.text,
|
|
198
|
+
GAData: __assign(__assign({}, GAData), {
|
|
199
|
+
groupId: source.id,
|
|
200
|
+
groupName: (0, _ConfigPanel.getSecondConfigName)(data, source.id)
|
|
201
|
+
})
|
|
202
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
203
|
+
className: "card-btn-wrap"
|
|
204
|
+
}, (source.button.open && hoverIndex != i || source.hover.button.open && hoverIndex == i) && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
205
|
+
className: "card-first-btn",
|
|
206
|
+
data: hoverIndex == i ? source.hover.button : source.button,
|
|
207
|
+
GAData: __assign(__assign({}, GAData), {
|
|
208
|
+
groupId: source.id,
|
|
209
|
+
groupName: (0, _ConfigPanel.getSecondConfigName)(data, source.id)
|
|
210
|
+
})
|
|
211
|
+
}), (source.secondButton.open && hoverIndex != i || source.hover.secondButton.open && hoverIndex == i) && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
212
|
+
className: "card-second-btn",
|
|
213
|
+
data: hoverIndex == i ? source.hover.secondButton : source.secondButton,
|
|
214
|
+
GAData: __assign(__assign({}, GAData), {
|
|
215
|
+
groupId: source.id,
|
|
216
|
+
groupName: (0, _ConfigPanel.getSecondConfigName)(data, source.id)
|
|
217
|
+
})
|
|
218
|
+
}))));
|
|
219
|
+
})));
|
|
220
|
+
};
|
|
221
|
+
|
|
130
222
|
return _this;
|
|
131
223
|
}
|
|
132
224
|
|
|
@@ -135,7 +227,7 @@ function (_super) {
|
|
|
135
227
|
this.layout = data.customize.layout.pcLayout;
|
|
136
228
|
this.pcRowNum = data.customize.pcRowNum;
|
|
137
229
|
this.listenCardWidth();
|
|
138
|
-
window.addEventListener('resize', (0,
|
|
230
|
+
window.addEventListener('resize', (0, _debounce["default"])(this.listenCardWidth));
|
|
139
231
|
};
|
|
140
232
|
|
|
141
233
|
ImageTextPc.prototype.componentWillUnmount = function () {
|
|
@@ -163,7 +255,7 @@ function (_super) {
|
|
|
163
255
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
164
256
|
className: (0, _classnames["default"])('image-text-pc', data.customize.layout.pcLayout),
|
|
165
257
|
style: wrapStyle
|
|
166
|
-
}, (data === null || data === void 0 ? void 0 : data.groupSource.length) > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
258
|
+
}, data.customize.layout.pcLayout === 'leftImage' || data.customize.layout.pcLayout === 'rightImage' ? this.getAnotherLayout() : (data === null || data === void 0 ? void 0 : data.groupSource.length) > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
167
259
|
className: "group-wrap"
|
|
168
260
|
}, data.groupSource.map(function (source, i) {
|
|
169
261
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -116,3 +116,35 @@
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
.leftImage .group-wrap .one-card {
|
|
122
|
+
flex-direction: row;
|
|
123
|
+
.card-image-wrap .card-image {
|
|
124
|
+
margin: 0 32px 0 0;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
.rightImage .group-wrap .one-card {
|
|
128
|
+
flex-direction: row-reverse;
|
|
129
|
+
.card-image-wrap .card-image {
|
|
130
|
+
margin: 0 0 0 32px;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.leftImage, .rightImage {
|
|
135
|
+
padding: 48px 108px;
|
|
136
|
+
.group-wrap {
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
.one-card {
|
|
139
|
+
// flex-direction: row;
|
|
140
|
+
.card-image-wrap {
|
|
141
|
+
width: fit-content;
|
|
142
|
+
}
|
|
143
|
+
.content-wrap {
|
|
144
|
+
flex: 1;
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDefaultJSON = void 0;
|
|
7
|
+
|
|
8
|
+
var _uuid = require("uuid");
|
|
9
|
+
|
|
10
|
+
var getDefaultJSON = function getDefaultJSON() {
|
|
11
|
+
var groupId = (0, _uuid.v4)();
|
|
12
|
+
return {
|
|
13
|
+
id: groupId,
|
|
14
|
+
type: 'LOCATION',
|
|
15
|
+
logo: {
|
|
16
|
+
parentId: groupId,
|
|
17
|
+
id: (0, _uuid.v4)(),
|
|
18
|
+
open: true,
|
|
19
|
+
color: '#fff'
|
|
20
|
+
},
|
|
21
|
+
address: {
|
|
22
|
+
parentId: groupId,
|
|
23
|
+
id: (0, _uuid.v4)(),
|
|
24
|
+
open: true
|
|
25
|
+
},
|
|
26
|
+
icon: {
|
|
27
|
+
parentId: groupId,
|
|
28
|
+
id: (0, _uuid.v4)(),
|
|
29
|
+
open: true,
|
|
30
|
+
color: '#fff'
|
|
31
|
+
},
|
|
32
|
+
spacing: {
|
|
33
|
+
pc: {
|
|
34
|
+
paddingTop: 10,
|
|
35
|
+
paddingBottom: 10,
|
|
36
|
+
marginBottom: 0
|
|
37
|
+
},
|
|
38
|
+
mobile: {
|
|
39
|
+
paddingTop: 12,
|
|
40
|
+
paddingBottom: 12,
|
|
41
|
+
paddingLeft: 12,
|
|
42
|
+
marginBottom: 0
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
customize: {
|
|
46
|
+
layout: {
|
|
47
|
+
pcLayout: 'top',
|
|
48
|
+
h5Layout: 'top'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
background: {
|
|
52
|
+
opacity: 100,
|
|
53
|
+
color: '#597EF7',
|
|
54
|
+
image: '',
|
|
55
|
+
bgType: 'color'
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
exports.getDefaultJSON = getDefaultJSON;
|
|
@@ -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'
|
|
@@ -91,8 +91,7 @@ function (_super) {
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
Video.prototype.render = function () {
|
|
94
|
-
var nodeData = this.props.nodeData;
|
|
95
|
-
|
|
94
|
+
var nodeData = this.props.nodeData;
|
|
96
95
|
return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
|
|
97
96
|
data: nodeData
|
|
98
97
|
}) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
@@ -12,39 +12,40 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
|
|
|
12
12
|
return {
|
|
13
13
|
id: groupId,
|
|
14
14
|
parentId: parentId,
|
|
15
|
-
|
|
15
|
+
title: {
|
|
16
16
|
parentId: groupId,
|
|
17
17
|
id: (0, _uuid.v4)(),
|
|
18
18
|
open: true,
|
|
19
|
-
type: '
|
|
19
|
+
type: 'TEXT',
|
|
20
|
+
specialContent: [],
|
|
21
|
+
text: 'Cashback',
|
|
20
22
|
content: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
sizeType: 'Customize font styles',
|
|
24
|
+
fontFamily: 'Open Sans',
|
|
25
|
+
fontWeight: 700,
|
|
26
|
+
fontSize: 18,
|
|
27
|
+
color: '#fff',
|
|
28
|
+
textAlign: 'center'
|
|
26
29
|
},
|
|
27
|
-
|
|
30
|
+
underline: {
|
|
28
31
|
open: false,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
32
|
+
textDecorationColor: '',
|
|
33
|
+
textDecorationStyle: 'solid'
|
|
34
|
+
},
|
|
35
|
+
vertical: {}
|
|
34
36
|
},
|
|
35
|
-
|
|
37
|
+
amount: {
|
|
36
38
|
parentId: groupId,
|
|
37
39
|
id: (0, _uuid.v4)(),
|
|
38
40
|
open: true,
|
|
39
41
|
type: 'TEXT',
|
|
40
42
|
specialContent: [],
|
|
41
|
-
text: '
|
|
43
|
+
text: 'RM1000',
|
|
42
44
|
content: {
|
|
43
45
|
sizeType: 'Customize font styles',
|
|
44
46
|
fontFamily: 'Open Sans',
|
|
45
|
-
fontWeight:
|
|
46
|
-
fontSize:
|
|
47
|
-
pcFontSize: 20,
|
|
47
|
+
fontWeight: 700,
|
|
48
|
+
fontSize: 38,
|
|
48
49
|
color: '#fff',
|
|
49
50
|
textAlign: 'center'
|
|
50
51
|
},
|
|
@@ -55,19 +56,19 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
|
|
|
55
56
|
},
|
|
56
57
|
vertical: {}
|
|
57
58
|
},
|
|
58
|
-
|
|
59
|
+
sourceType: 'Cashback',
|
|
60
|
+
text: {
|
|
59
61
|
parentId: groupId,
|
|
60
62
|
id: (0, _uuid.v4)(),
|
|
61
63
|
open: true,
|
|
62
64
|
type: 'TEXT',
|
|
63
65
|
specialContent: [],
|
|
64
|
-
text: '
|
|
66
|
+
text: 'Make money and shop on Cendol!',
|
|
65
67
|
content: {
|
|
66
68
|
sizeType: 'Customize font styles',
|
|
67
69
|
fontFamily: 'Open Sans',
|
|
68
|
-
fontWeight:
|
|
69
|
-
fontSize:
|
|
70
|
-
pcFontSize: 42,
|
|
70
|
+
fontWeight: 400,
|
|
71
|
+
fontSize: 14,
|
|
71
72
|
color: '#fff',
|
|
72
73
|
textAlign: 'center'
|
|
73
74
|
},
|
|
@@ -78,75 +79,75 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
|
|
|
78
79
|
},
|
|
79
80
|
vertical: {}
|
|
80
81
|
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
h5Name: 'Group Name',
|
|
91
|
-
pcName: 'Group Name',
|
|
92
|
-
h5ImgSrc: '',
|
|
93
|
-
pcImgSrc: '',
|
|
94
|
-
clickUrl: ''
|
|
95
|
-
},
|
|
96
|
-
hover: {
|
|
97
|
-
open: false,
|
|
98
|
-
backgroundType: 'enlarge',
|
|
99
|
-
magnification: 1.5,
|
|
100
|
-
pcImgHoverUrl: '',
|
|
101
|
-
h5ImgHoverUrl: ''
|
|
102
|
-
}
|
|
82
|
+
button: {
|
|
83
|
+
parentId: groupId,
|
|
84
|
+
id: (0, _uuid.v4)(),
|
|
85
|
+
open: true,
|
|
86
|
+
type: 'BUTTON',
|
|
87
|
+
text: 'Button',
|
|
88
|
+
content: {
|
|
89
|
+
url: '',
|
|
90
|
+
backgroundColor: '#fff'
|
|
103
91
|
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
content: {
|
|
112
|
-
sizeType: 'Customize font styles',
|
|
113
|
-
fontFamily: 'Open Sans',
|
|
114
|
-
fontWeight: 400,
|
|
115
|
-
fontSize: 14,
|
|
116
|
-
pcFontSize: 20,
|
|
117
|
-
color: '#fff',
|
|
118
|
-
textAlign: 'center'
|
|
119
|
-
},
|
|
120
|
-
underline: {
|
|
121
|
-
open: false,
|
|
122
|
-
textDecorationColor: '',
|
|
123
|
-
textDecorationStyle: 'solid'
|
|
124
|
-
},
|
|
125
|
-
vertical: {}
|
|
92
|
+
buttonText: {
|
|
93
|
+
sizeType: 'Customize font styles',
|
|
94
|
+
fontFamily: 'Open Sans',
|
|
95
|
+
fontWeight: 700,
|
|
96
|
+
fontSize: 13,
|
|
97
|
+
fontStyle: 'normal',
|
|
98
|
+
color: '#F52D85'
|
|
126
99
|
},
|
|
127
|
-
|
|
128
|
-
parentId: groupId,
|
|
129
|
-
id: (0, _uuid.v4)(),
|
|
100
|
+
buttonBorder: {
|
|
130
101
|
open: true,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
open: false,
|
|
145
|
-
textDecorationColor: '',
|
|
146
|
-
textDecorationStyle: 'solid'
|
|
102
|
+
borderColor: '',
|
|
103
|
+
borderRadius: 4
|
|
104
|
+
},
|
|
105
|
+
buttonIcon: {
|
|
106
|
+
iconUrl: '',
|
|
107
|
+
layout: 'right'
|
|
108
|
+
},
|
|
109
|
+
spacing: {
|
|
110
|
+
pc: {
|
|
111
|
+
paddingTop: 6,
|
|
112
|
+
paddingBottom: 6,
|
|
113
|
+
paddingLeft: 16,
|
|
114
|
+
paddingRight: 16
|
|
147
115
|
},
|
|
148
|
-
|
|
116
|
+
mobile: {
|
|
117
|
+
paddingTop: 6,
|
|
118
|
+
paddingBottom: 6,
|
|
119
|
+
paddingLeft: 16,
|
|
120
|
+
paddingRight: 16
|
|
121
|
+
}
|
|
149
122
|
}
|
|
123
|
+
},
|
|
124
|
+
peek: {
|
|
125
|
+
parentId: groupId,
|
|
126
|
+
id: (0, _uuid.v4)(),
|
|
127
|
+
open: true,
|
|
128
|
+
type: 'TEXT',
|
|
129
|
+
specialContent: [],
|
|
130
|
+
text: '',
|
|
131
|
+
content: {
|
|
132
|
+
sizeType: 'Customize font styles',
|
|
133
|
+
fontFamily: 'Open Sans',
|
|
134
|
+
fontWeight: 400,
|
|
135
|
+
fontSize: 12,
|
|
136
|
+
color: '#fff',
|
|
137
|
+
textAlign: 'center'
|
|
138
|
+
},
|
|
139
|
+
underline: {
|
|
140
|
+
open: false,
|
|
141
|
+
textDecorationColor: '',
|
|
142
|
+
textDecorationStyle: 'solid'
|
|
143
|
+
},
|
|
144
|
+
vertical: {}
|
|
145
|
+
},
|
|
146
|
+
background: {
|
|
147
|
+
opacity: 100,
|
|
148
|
+
color: '#F52D85',
|
|
149
|
+
image: '',
|
|
150
|
+
bgType: 'color'
|
|
150
151
|
}
|
|
151
152
|
};
|
|
152
153
|
};
|
|
@@ -185,7 +186,30 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
188
|
},
|
|
188
|
-
groupSource: [imagesGroupSourceJSON(groupId)
|
|
189
|
+
groupSource: [imagesGroupSourceJSON(groupId)],
|
|
190
|
+
setting: {
|
|
191
|
+
// 自动轮播
|
|
192
|
+
autoplay: {
|
|
193
|
+
open: true,
|
|
194
|
+
interval: 3
|
|
195
|
+
},
|
|
196
|
+
// 切换按钮
|
|
197
|
+
navigation: {
|
|
198
|
+
open: true,
|
|
199
|
+
size: 16,
|
|
200
|
+
hoverSize: 16,
|
|
201
|
+
color: '#eee',
|
|
202
|
+
hoverColor: '#fff'
|
|
203
|
+
},
|
|
204
|
+
// 面板指示点
|
|
205
|
+
dots: {
|
|
206
|
+
open: true,
|
|
207
|
+
color: '#eee',
|
|
208
|
+
hoverColor: '#fff',
|
|
209
|
+
size: 8,
|
|
210
|
+
hoverSize: 8
|
|
211
|
+
}
|
|
212
|
+
},
|
|
189
213
|
spacing: {
|
|
190
214
|
pc: {
|
|
191
215
|
paddingTop: 48,
|