@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
|
@@ -15,10 +15,16 @@ var _componentTypes = require("../../constants/component-types");
|
|
|
15
15
|
|
|
16
16
|
var _coreUtil = require("../../utils/coreUtil");
|
|
17
17
|
|
|
18
|
+
var _mobx = require("../../mobx");
|
|
19
|
+
|
|
20
|
+
var _common = require("../../common");
|
|
21
|
+
|
|
18
22
|
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); }
|
|
19
23
|
|
|
20
24
|
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; }
|
|
21
25
|
|
|
26
|
+
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); }
|
|
27
|
+
|
|
22
28
|
var __assign = void 0 && (void 0).__assign || function () {
|
|
23
29
|
__assign = Object.assign || function (t) {
|
|
24
30
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -37,11 +43,13 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
37
43
|
|
|
38
44
|
var setDesignConfig = function setDesignConfig(props) {
|
|
39
45
|
var config = props.config,
|
|
40
|
-
device = props.device
|
|
46
|
+
device = props.device,
|
|
47
|
+
isPreview = props.isPreview;
|
|
41
48
|
window.magicDesign = __assign(__assign({
|
|
42
49
|
pageBackground: '#f2f2f2',
|
|
43
50
|
mode: 'renderer',
|
|
44
51
|
device: device,
|
|
52
|
+
designMode: isPreview,
|
|
45
53
|
navigatePreUrl: ''
|
|
46
54
|
}, config), {
|
|
47
55
|
compSpacing: Number(config.compSpacing),
|
|
@@ -56,40 +64,43 @@ var setDesignConfig = function setDesignConfig(props) {
|
|
|
56
64
|
var Renderer = function Renderer(props) {
|
|
57
65
|
var pageData = props.pageData,
|
|
58
66
|
outputType = props.outputType,
|
|
59
|
-
noSetWindow = props.noSetWindow
|
|
67
|
+
noSetWindow = props.noSetWindow,
|
|
68
|
+
isPreview = props.isPreview;
|
|
69
|
+
|
|
70
|
+
var _a = (0, _react.useState)([]),
|
|
71
|
+
floors = _a[0],
|
|
72
|
+
setFloors = _a[1];
|
|
73
|
+
|
|
74
|
+
var _b = (0, _react.useState)(_mobx.frameStore.modalState),
|
|
75
|
+
modalState = _b[0],
|
|
76
|
+
setModalState = _b[1];
|
|
60
77
|
|
|
61
78
|
if (!noSetWindow) {
|
|
62
79
|
setDesignConfig(props);
|
|
63
80
|
}
|
|
64
81
|
|
|
65
82
|
window.magicDesignPageData = pageData;
|
|
66
|
-
var pageBackground = window.magicDesign.pageBackground;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
var
|
|
83
|
+
var pageBackground = window.magicDesign.pageBackground;
|
|
84
|
+
(0, _react.useEffect)(function () {
|
|
85
|
+
console.log('----pageData change', pageData);
|
|
86
|
+
var filterData = [];
|
|
70
87
|
|
|
71
88
|
if (pageData && pageData.childNodes && pageData.childNodes.length) {
|
|
72
|
-
|
|
89
|
+
filterData = pageData.childNodes.filter(function (node) {
|
|
73
90
|
return (0, _coreUtil.isActiveFloor)(node.activeTerminal);
|
|
74
91
|
});
|
|
75
|
-
}
|
|
92
|
+
} // 首页组建分批渲染按5个一组
|
|
76
93
|
|
|
77
|
-
return source;
|
|
78
|
-
};
|
|
79
94
|
|
|
95
|
+
setFloors(filterData.slice(0, 5));
|
|
96
|
+
setTimeout(function () {
|
|
97
|
+
setFloors(filterData.slice(0, 10));
|
|
98
|
+
setTimeout(function () {
|
|
99
|
+
setFloors(filterData);
|
|
100
|
+
}, 200);
|
|
101
|
+
}, 200);
|
|
102
|
+
}, [pageData]);
|
|
80
103
|
(0, _react.useEffect)(function () {
|
|
81
|
-
// const data = await fishFetch('/h5/ga/mediaid', {}, 'GET');
|
|
82
|
-
(0, _commonUtil.importAsync)('https://www.googletagmanager.com/gtag/js?id=G-7B9GSSLVX3', 'js').then(function () {
|
|
83
|
-
window.dataLayer = window.dataLayer || [];
|
|
84
|
-
|
|
85
|
-
function gtag() {
|
|
86
|
-
dataLayer.push(arguments);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
gtag('js', new Date());
|
|
90
|
-
gtag('config', 'G-7B9GSSLVX3');
|
|
91
|
-
window.gtag = gtag;
|
|
92
|
-
});
|
|
93
104
|
setTimeout(function () {
|
|
94
105
|
var _a;
|
|
95
106
|
|
|
@@ -99,14 +110,44 @@ var Renderer = function Renderer(props) {
|
|
|
99
110
|
});
|
|
100
111
|
}, 300);
|
|
101
112
|
});
|
|
113
|
+
(0, _react.useEffect)(function () {
|
|
114
|
+
var disposer = (0, _mobx.autorun)(function () {
|
|
115
|
+
setModalState(_mobx.frameStore.modalState);
|
|
116
|
+
});
|
|
117
|
+
return function () {
|
|
118
|
+
disposer();
|
|
119
|
+
};
|
|
120
|
+
}, []); // 传入空数组表示仅在组件挂载和卸载时执行
|
|
121
|
+
|
|
122
|
+
/** 弹窗关闭 */
|
|
123
|
+
|
|
124
|
+
var onCloseModal = function onCloseModal() {
|
|
125
|
+
_mobx.frameStore.setState({
|
|
126
|
+
modalState: {
|
|
127
|
+
visible: false
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
var getRestStyle = function getRestStyle() {
|
|
133
|
+
if (modalState.visible) {
|
|
134
|
+
return {
|
|
135
|
+
position: 'relative',
|
|
136
|
+
overflow: 'hidden'
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return {};
|
|
141
|
+
};
|
|
142
|
+
|
|
102
143
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
103
144
|
className: "render_wrap",
|
|
104
145
|
magic_design: "",
|
|
105
|
-
style: {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
},
|
|
146
|
+
style: __assign({
|
|
147
|
+
height: '100%',
|
|
148
|
+
background: pageBackground
|
|
149
|
+
}, getRestStyle())
|
|
150
|
+
}, floors.length > 0 && floors.map(function (nodeData, moduleIndex) {
|
|
110
151
|
var Clazz = _componentTypes.componentMap[nodeData.type];
|
|
111
152
|
|
|
112
153
|
if (!Clazz) {
|
|
@@ -128,13 +169,18 @@ var Renderer = function Renderer(props) {
|
|
|
128
169
|
key: nodeData.id,
|
|
129
170
|
id: 'node-' + nodeData.id
|
|
130
171
|
}, /*#__PURE__*/_react["default"].createElement(Clazz, __assign({}, newInstanceProps), null));
|
|
131
|
-
})
|
|
172
|
+
}), modalState.visible && /*#__PURE__*/_react["default"].createElement(_common.MyModal, _extends({
|
|
173
|
+
isPreview: isPreview
|
|
174
|
+
}, modalState, {
|
|
175
|
+
onClose: onCloseModal
|
|
176
|
+
})));
|
|
132
177
|
};
|
|
133
178
|
|
|
134
179
|
Renderer.defaultProps = {
|
|
135
180
|
pageData: {},
|
|
136
181
|
device: 'pc',
|
|
137
|
-
config: {}
|
|
182
|
+
config: {},
|
|
183
|
+
isPreview: false
|
|
138
184
|
};
|
|
139
185
|
var _default = Renderer;
|
|
140
186
|
exports["default"] = _default;
|
|
@@ -153,6 +153,19 @@ function compositeDecorator(WrappedComponent) {
|
|
|
153
153
|
|
|
154
154
|
if (device === _constants.deviceTypeMap.PC && compWidth && !((_a = spacing === null || spacing === void 0 ? void 0 : spacing.pc) === null || _a === void 0 ? void 0 : _a.fillUp)) {
|
|
155
155
|
wrapStyle.width = compWidth;
|
|
156
|
+
} // 如果是菜单 则需要设为fixed
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
if (nodeData.type === 'HEAD_NAVIGATION' || nodeData.type === 'MENU_NAVIGATION') {
|
|
160
|
+
wrapStyle.position = 'absolute';
|
|
161
|
+
wrapStyle.left = 0;
|
|
162
|
+
wrapStyle.width = '100%';
|
|
163
|
+
|
|
164
|
+
if (nodeData.type === 'HEAD_NAVIGATION') {
|
|
165
|
+
wrapStyle.top = 0;
|
|
166
|
+
} else {
|
|
167
|
+
wrapStyle.bottom = 0;
|
|
168
|
+
}
|
|
156
169
|
}
|
|
157
170
|
|
|
158
171
|
return wrapStyle;
|
|
@@ -228,6 +241,15 @@ function compositeDecorator(WrappedComponent) {
|
|
|
228
241
|
});
|
|
229
242
|
};
|
|
230
243
|
|
|
244
|
+
_this.getOuterWrapStyle = function () {
|
|
245
|
+
var nodeData = _this.props.nodeData;
|
|
246
|
+
|
|
247
|
+
if (window.magicDesign.designMode && (nodeData.type === 'HEAD_NAVIGATION' || nodeData.type === 'MENU_NAVIGATION')) {
|
|
248
|
+
var element = document.querySelector('.phone_view_area .device_border') || document.querySelector('#root .render_wrap');
|
|
249
|
+
element.style.position = 'relative';
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
|
|
231
253
|
return _this;
|
|
232
254
|
}
|
|
233
255
|
|
|
@@ -240,6 +262,7 @@ function compositeDecorator(WrappedComponent) {
|
|
|
240
262
|
hoveredFloor: _mobx.store.hoveredFloor
|
|
241
263
|
});
|
|
242
264
|
});
|
|
265
|
+
this.getOuterWrapStyle();
|
|
243
266
|
};
|
|
244
267
|
|
|
245
268
|
Wrapper.prototype.componentWillUnmount = function () {
|
package/lib/decorator/index.js
CHANGED
|
@@ -9,12 +9,25 @@ Object.defineProperty(exports, "compositeDecorator", {
|
|
|
9
9
|
return _compositeDecorator["default"];
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
Object.defineProperty(exports, "lazy", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _lazyLoadDecorator.lazy;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "lazyDestroy", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _lazyLoadDecorator.lazyDestroy;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
12
24
|
Object.defineProperty(exports, "metaDecorator", {
|
|
13
25
|
enumerable: true,
|
|
14
26
|
get: function get() {
|
|
15
27
|
return _metaDecorator["default"];
|
|
16
28
|
}
|
|
17
29
|
});
|
|
30
|
+
exports.shouldUpdate = shouldUpdate;
|
|
18
31
|
Object.defineProperty(exports, "updateConfigDecorator", {
|
|
19
32
|
enumerable: true,
|
|
20
33
|
get: function get() {
|
|
@@ -28,4 +41,28 @@ var _metaDecorator = _interopRequireDefault(require("./metaDecorator"));
|
|
|
28
41
|
|
|
29
42
|
var _updateConfigDecorator = _interopRequireDefault(require("./updateConfigDecorator"));
|
|
30
43
|
|
|
31
|
-
|
|
44
|
+
var _lazyLoadDecorator = require("./lazyLoadDecorator");
|
|
45
|
+
|
|
46
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
47
|
+
|
|
48
|
+
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
|
49
|
+
|
|
50
|
+
/** props 和 state 改变时才会render */
|
|
51
|
+
function shouldUpdate() {
|
|
52
|
+
return function (target, name, descriptor) {
|
|
53
|
+
var fn = descriptor.value;
|
|
54
|
+
|
|
55
|
+
descriptor.value = function (nextProps, nextState) {
|
|
56
|
+
var nowPropsJson = JSON.stringify(nextProps);
|
|
57
|
+
var nowStateJson = JSON.stringify(nextState);
|
|
58
|
+
var should1 = nowPropsJson != this.preProps;
|
|
59
|
+
var should2 = nowStateJson != this.preState;
|
|
60
|
+
this.preProps = nowPropsJson;
|
|
61
|
+
this.preState = nowStateJson;
|
|
62
|
+
var result = should1 || should2;
|
|
63
|
+
return result && fn.apply(this, {
|
|
64
|
+
nextProps: nextProps
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.lazy = lazy;
|
|
7
|
+
exports.lazyDestroy = void 0;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 组件懒加载
|
|
11
|
+
* @param refName 所需懒加载的组件ref名
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
function lazy(refName) {
|
|
15
|
+
return function (target, name, descriptor) {
|
|
16
|
+
var fn = descriptor.value;
|
|
17
|
+
|
|
18
|
+
descriptor.value = function () {
|
|
19
|
+
var _this = this;
|
|
20
|
+
|
|
21
|
+
var rest = [];
|
|
22
|
+
|
|
23
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
24
|
+
rest[_i] = arguments[_i];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
this.intersectionObserver = new IntersectionObserver(function (entries) {
|
|
28
|
+
if (entries[0].isIntersecting) {
|
|
29
|
+
if (!_this.state.lazyShow) {
|
|
30
|
+
_this.setState({
|
|
31
|
+
lazyShow: true
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}, {
|
|
36
|
+
root: null,
|
|
37
|
+
// threshold: 0.8,
|
|
38
|
+
rootMargin: '0px 0px 100px 0px'
|
|
39
|
+
});
|
|
40
|
+
this.intersectionObserver.observe(this[refName].current);
|
|
41
|
+
/** 监听状态变化 */
|
|
42
|
+
|
|
43
|
+
this._intersectionObserverDestroy = function () {
|
|
44
|
+
_this.intersectionObserver.disconnect(_this[refName].current);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
fn.apply(this, rest);
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* 销毁lazy监听
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
var lazyDestroy = function lazyDestroy(target, name, descriptor) {
|
|
57
|
+
var fn = descriptor.value;
|
|
58
|
+
|
|
59
|
+
descriptor.value = function () {
|
|
60
|
+
var rest = [];
|
|
61
|
+
|
|
62
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
63
|
+
rest[_i] = arguments[_i];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (this._intersectionObserverDestroy) {
|
|
67
|
+
this._intersectionObserverDestroy();
|
|
68
|
+
} // this._intersectionObserverDestroy && this._intersectionObserverDestroy();
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
fn.apply(this, rest);
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
exports.lazyDestroy = lazyDestroy;
|
package/lib/locale/en/en.json
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
+
"DISPLAY_PAGE": "Display page",
|
|
3
|
+
"NAME": "Name",
|
|
4
|
+
"ADD_MENU": "Add Menu",
|
|
5
|
+
"TIPS": "Tips",
|
|
6
|
+
"AL": "AL",
|
|
7
|
+
"PEEK": "Peek",
|
|
8
|
+
"ADDRESS": "Address",
|
|
9
|
+
"LOCATION_LOGO": "Location Logo",
|
|
10
|
+
"MESSAGE_ICON": "Message icon",
|
|
11
|
+
"CART_ICON": "Cart icon",
|
|
12
|
+
"RECOMMENDED_SIZE": "Recommended Size",
|
|
2
13
|
"BOLD": "Bold",
|
|
3
14
|
"SEMIBOLD": "Semibold",
|
|
4
15
|
"DARK": "Dark",
|
|
5
16
|
"LIGHT": "Light",
|
|
6
17
|
"URL_IMAGE": "url image",
|
|
7
|
-
"AI_IMAGE": "AI Image",
|
|
8
18
|
"IMAGE_URL": "Image URL",
|
|
9
19
|
"UPLOAD": "Upload",
|
|
10
20
|
"HOW_LONG_BETWEEN_SLIDES_(SECS)": "How long between slides (secs)",
|
|
@@ -49,7 +59,7 @@
|
|
|
49
59
|
"ADD_CLICKABLE_AREA": "Add Clickable Area",
|
|
50
60
|
"ADD_AREA": "Add Area",
|
|
51
61
|
"CLICKABLE_AREA": "Clickable Area",
|
|
52
|
-
"VOUCHER_SUCCESS": "
|
|
62
|
+
"VOUCHER_SUCCESS": "Coupon received successfully!",
|
|
53
63
|
"NAVIGATION_NAME": "Navigation Name",
|
|
54
64
|
"ADD_NAVIGATION": "Add Navigation",
|
|
55
65
|
"SAVE": "Save",
|
package/lib/locale/es/es.json
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
+
"DISPLAY_PAGE": "Display page",
|
|
3
|
+
"NAME": "Name",
|
|
4
|
+
"ADD_MENU": "Add Menu",
|
|
5
|
+
"TIPS": "Tips",
|
|
6
|
+
"AL": "AL",
|
|
7
|
+
"PEEK": "Peek",
|
|
8
|
+
"ADDRESS": "Address",
|
|
9
|
+
"LOCATION_LOGO": "Location Logo",
|
|
10
|
+
"MESSAGE_ICON": "Message icon",
|
|
11
|
+
"CART_ICON": "Cart icon",
|
|
12
|
+
"RECOMMENDED_SIZE": "Recommended Size",
|
|
2
13
|
"BOLD": "Bold",
|
|
3
14
|
"SEMIBOLD": "Semibold",
|
|
4
15
|
"DARK": "Dark",
|
|
5
16
|
"LIGHT": "Light",
|
|
6
17
|
"URL_IMAGE": "url image",
|
|
7
|
-
"AI_IMAGE": "AI Image",
|
|
8
18
|
"IMAGE_URL": "Image URL",
|
|
9
19
|
"UPLOAD": "Upload",
|
|
10
20
|
"HOW_LONG_BETWEEN_SLIDES_(SECS)": "How long between slides (secs)",
|
|
@@ -49,7 +59,7 @@
|
|
|
49
59
|
"ADD_CLICKABLE_AREA": "Add Clickable Area",
|
|
50
60
|
"ADD_AREA": "Add Area",
|
|
51
61
|
"CLICKABLE_AREA": "Clickable Area",
|
|
52
|
-
"VOUCHER_SUCCESS": "
|
|
62
|
+
"VOUCHER_SUCCESS": "Coupon received successfully!",
|
|
53
63
|
"NAVIGATION_NAME": "Navigation Name",
|
|
54
64
|
"ADD_NAVIGATION": "Add Navigation",
|
|
55
65
|
"SAVE": "Guardar",
|
package/lib/locale/id/id.json
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
+
"DISPLAY_PAGE": "Display page",
|
|
3
|
+
"NAME": "Name",
|
|
4
|
+
"ADD_MENU": "Add Menu",
|
|
5
|
+
"TIPS": "Tips",
|
|
6
|
+
"AL": "AL",
|
|
7
|
+
"PEEK": "Peek",
|
|
8
|
+
"ADDRESS": "Address",
|
|
9
|
+
"LOCATION_LOGO": "Location Logo",
|
|
10
|
+
"MESSAGE_ICON": "Message icon",
|
|
11
|
+
"CART_ICON": "Cart icon",
|
|
12
|
+
"RECOMMENDED_SIZE": "Recommended Size",
|
|
2
13
|
"BOLD": "Bold",
|
|
3
14
|
"SEMIBOLD": "Semibold",
|
|
4
15
|
"DARK": "Dark",
|
|
5
16
|
"LIGHT": "Light",
|
|
6
17
|
"URL_IMAGE": "url image",
|
|
7
|
-
"AI_IMAGE": "AI Image",
|
|
8
18
|
"IMAGE_URL": "Image URL",
|
|
9
19
|
"UPLOAD": "Upload",
|
|
10
20
|
"HOW_LONG_BETWEEN_SLIDES_(SECS)": "How long between slides (secs)",
|
|
@@ -49,7 +59,7 @@
|
|
|
49
59
|
"ADD_CLICKABLE_AREA": "Add Clickable Area",
|
|
50
60
|
"ADD_AREA": "Add Area",
|
|
51
61
|
"CLICKABLE_AREA": "Clickable Area",
|
|
52
|
-
"VOUCHER_SUCCESS": "
|
|
62
|
+
"VOUCHER_SUCCESS": "Coupon received successfully!",
|
|
53
63
|
"NAVIGATION_NAME": "Navigation Name",
|
|
54
64
|
"ADD_NAVIGATION": "Add Navigation",
|
|
55
65
|
"SAVE": "Save",
|
|
@@ -93,6 +93,10 @@ function (_super) {
|
|
|
93
93
|
return _this;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
Button.prototype.shouldComponentUpdate = function () {
|
|
97
|
+
return true;
|
|
98
|
+
};
|
|
99
|
+
|
|
96
100
|
Button.prototype.render = function () {
|
|
97
101
|
var _this = this;
|
|
98
102
|
|
|
@@ -168,6 +172,9 @@ function (_super) {
|
|
|
168
172
|
className: '',
|
|
169
173
|
readonly: false
|
|
170
174
|
};
|
|
175
|
+
|
|
176
|
+
__decorate([(0, _decorator.shouldUpdate)()], Button.prototype, "shouldComponentUpdate", null);
|
|
177
|
+
|
|
171
178
|
Button = __decorate([_decorator.metaDecorator], Button);
|
|
172
179
|
return Button;
|
|
173
180
|
}(_react.Component);
|
|
@@ -21,6 +21,8 @@ var _commonUtil = require("../../../utils/commonUtil");
|
|
|
21
21
|
|
|
22
22
|
var _decorator = require("../../../decorator");
|
|
23
23
|
|
|
24
|
+
var _ImageLazy = _interopRequireDefault(require("../../../common/ImageLazy"));
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
27
|
|
|
26
28
|
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); }
|
|
@@ -77,19 +79,21 @@ function (_super) {
|
|
|
77
79
|
};
|
|
78
80
|
|
|
79
81
|
_this.getStyle = function () {
|
|
80
|
-
var _a
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
82
|
+
var _a, _b;
|
|
83
|
+
|
|
84
|
+
var _c = _this.props,
|
|
85
|
+
data = _c.data,
|
|
86
|
+
hoverState = _c.hoverState,
|
|
87
|
+
maxHeight = _c.maxHeight,
|
|
88
|
+
maxWidth = _c.maxWidth,
|
|
89
|
+
minHeight = _c.minHeight,
|
|
90
|
+
minWidth = _c.minWidth,
|
|
91
|
+
limitWidthHeight = _c.limitWidthHeight,
|
|
92
|
+
scale = _c.scale;
|
|
89
93
|
var hoverImgSrc = _this.state.hoverImgSrc;
|
|
90
94
|
var obj = {};
|
|
91
95
|
|
|
92
|
-
if (data.hover.open && data.hover.backgroundType === 'enlarge' && (hoverState || hoverImgSrc)) {
|
|
96
|
+
if (((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) && ((_b = data === null || data === void 0 ? void 0 : data.hover) === null || _b === void 0 ? void 0 : _b.backgroundType) === 'enlarge' && (hoverState || hoverImgSrc)) {
|
|
93
97
|
// return { transform: `scale(${data.hover.magnification})` };
|
|
94
98
|
obj.transform = "scale(" + data.hover.magnification + ")";
|
|
95
99
|
obj.zIndex = '1';
|
|
@@ -131,11 +135,13 @@ function (_super) {
|
|
|
131
135
|
};
|
|
132
136
|
|
|
133
137
|
_this.mouseEnterImg = function () {
|
|
134
|
-
var _a
|
|
135
|
-
|
|
136
|
-
|
|
138
|
+
var _a;
|
|
139
|
+
|
|
140
|
+
var _b = _this.props,
|
|
141
|
+
data = _b.data,
|
|
142
|
+
isBackground = _b.isBackground;
|
|
137
143
|
|
|
138
|
-
if (data.hover.open && !isBackground) {
|
|
144
|
+
if (((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) && !isBackground) {
|
|
139
145
|
_this.setState({
|
|
140
146
|
hoverImgSrc: true
|
|
141
147
|
});
|
|
@@ -143,11 +149,13 @@ function (_super) {
|
|
|
143
149
|
};
|
|
144
150
|
|
|
145
151
|
_this.mouseLeaveImg = function () {
|
|
146
|
-
var _a
|
|
147
|
-
|
|
148
|
-
|
|
152
|
+
var _a;
|
|
153
|
+
|
|
154
|
+
var _b = _this.props,
|
|
155
|
+
data = _b.data,
|
|
156
|
+
isBackground = _b.isBackground;
|
|
149
157
|
|
|
150
|
-
if (data.hover.open && !isBackground) {
|
|
158
|
+
if (((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) && !isBackground) {
|
|
151
159
|
_this.setState({
|
|
152
160
|
hoverImgSrc: false
|
|
153
161
|
});
|
|
@@ -160,18 +168,19 @@ function (_super) {
|
|
|
160
168
|
Image.prototype.render = function () {
|
|
161
169
|
var _this = this;
|
|
162
170
|
|
|
163
|
-
var _a, _b;
|
|
171
|
+
var _a, _b, _c, _d;
|
|
164
172
|
|
|
165
|
-
var
|
|
166
|
-
data =
|
|
167
|
-
isBackground =
|
|
168
|
-
hoverState =
|
|
173
|
+
var _e = this.props,
|
|
174
|
+
data = _e.data,
|
|
175
|
+
isBackground = _e.isBackground,
|
|
176
|
+
hoverState = _e.hoverState,
|
|
177
|
+
notNeedLazy = _e.notNeedLazy;
|
|
169
178
|
var hoverImgSrc = this.state.hoverImgSrc; // const { hoverSrc } = this.state;
|
|
170
179
|
// console.log('--metaImage ', this.props);
|
|
171
180
|
|
|
172
181
|
var srcImg = (0, _coreUtil.isPc)() ? (_a = data.content) === null || _a === void 0 ? void 0 : _a.pcImgSrc : (_b = data.content) === null || _b === void 0 ? void 0 : _b.h5ImgSrc;
|
|
173
182
|
|
|
174
|
-
if (data.hover.open && data.hover.backgroundType === 'new' && (hoverState || hoverImgSrc)) {
|
|
183
|
+
if (((_c = data === null || data === void 0 ? void 0 : data.hover) === null || _c === void 0 ? void 0 : _c.open) && ((_d = data === null || data === void 0 ? void 0 : data.hover) === null || _d === void 0 ? void 0 : _d.backgroundType) === 'new' && (hoverState || hoverImgSrc)) {
|
|
175
184
|
srcImg = (0, _coreUtil.isPc)() ? data.hover.pcImgHoverUrl : data.hover.h5ImgHoverUrl;
|
|
176
185
|
} // if (window.magicDesign.isShop && srcImg?.includes('ecommerce/static')) {
|
|
177
186
|
// srcImg = srcImg.replace('ecommerce/static', 'static');
|
|
@@ -190,7 +199,7 @@ function (_super) {
|
|
|
190
199
|
onClick: function onClick() {
|
|
191
200
|
(0, _coreUtil.clickUrl)(data.content.clickUrl);
|
|
192
201
|
}
|
|
193
|
-
}, srcImg && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
202
|
+
}, srcImg && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, notNeedLazy ? /*#__PURE__*/_react["default"].createElement("img", {
|
|
194
203
|
ref: this.imgRef,
|
|
195
204
|
onLoad: function onLoad() {
|
|
196
205
|
var scale = _this.imgRef.current.clientWidth / 600;
|
|
@@ -203,6 +212,18 @@ function (_super) {
|
|
|
203
212
|
onMouseLeave: this.mouseLeaveImg,
|
|
204
213
|
src: srcImg,
|
|
205
214
|
style: (0, _commonUtil.pxToRem)(this.getStyle())
|
|
215
|
+
}) : /*#__PURE__*/_react["default"].createElement(_ImageLazy["default"], {
|
|
216
|
+
onLoadFunc: function onLoadFunc(clientWidth) {
|
|
217
|
+
var scale = clientWidth / 600;
|
|
218
|
+
|
|
219
|
+
_this.setState({
|
|
220
|
+
scale: scale
|
|
221
|
+
});
|
|
222
|
+
},
|
|
223
|
+
onMouseEnter: this.mouseEnterImg,
|
|
224
|
+
onMouseLeave: this.mouseLeaveImg,
|
|
225
|
+
src: srcImg,
|
|
226
|
+
style: (0, _commonUtil.pxToRem)(this.getStyle())
|
|
206
227
|
}), areas && areas.length > 0 && areas.map(function (v, i) {
|
|
207
228
|
var aStyle = {
|
|
208
229
|
position: 'absolute',
|
|
@@ -230,7 +251,8 @@ function (_super) {
|
|
|
230
251
|
isBackground: false,
|
|
231
252
|
hoverState: false,
|
|
232
253
|
limitWidthHeight: false,
|
|
233
|
-
scale: 1
|
|
254
|
+
scale: 1,
|
|
255
|
+
notNeedLazy: false
|
|
234
256
|
};
|
|
235
257
|
Image = __decorate([_decorator.metaDecorator], Image);
|
|
236
258
|
return Image;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FontFamilyStyle = exports.FontFamilyAttributor = void 0;
|
|
7
|
+
|
|
8
|
+
var _quill = _interopRequireDefault(require("quill"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
13
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
14
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
15
|
+
__proto__: []
|
|
16
|
+
} instanceof Array && function (d, b) {
|
|
17
|
+
d.__proto__ = b;
|
|
18
|
+
} || function (d, b) {
|
|
19
|
+
for (var p in b) {
|
|
20
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return _extendStatics(d, b);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return function (d, b) {
|
|
28
|
+
_extendStatics(d, b);
|
|
29
|
+
|
|
30
|
+
function __() {
|
|
31
|
+
this.constructor = d;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35
|
+
};
|
|
36
|
+
}();
|
|
37
|
+
|
|
38
|
+
var Parchment = _quill["default"]["import"]('parchment');
|
|
39
|
+
|
|
40
|
+
var FontFamilyAttributor =
|
|
41
|
+
/** @class */
|
|
42
|
+
function (_super) {
|
|
43
|
+
__extends(FontFamilyAttributor, _super);
|
|
44
|
+
|
|
45
|
+
function FontFamilyAttributor() {
|
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return FontFamilyAttributor;
|
|
50
|
+
}(Parchment.Attributor.Style);
|
|
51
|
+
|
|
52
|
+
exports.FontFamilyAttributor = FontFamilyAttributor;
|
|
53
|
+
var FontFamilyStyle = new FontFamilyAttributor('font-family', 'font-family', {
|
|
54
|
+
scope: Parchment.Scope.INLINE
|
|
55
|
+
});
|
|
56
|
+
exports.FontFamilyStyle = FontFamilyStyle;
|
|
57
|
+
|
|
58
|
+
_quill["default"].register('formats/font-family', FontFamilyStyle, true);
|