@fonixtree/magic-design 0.1.78 → 0.1.80
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 +31 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +31 -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/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/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/GroupList/index.less +3 -0
- package/es/common/ImagePicker/index.js +1 -3
- package/es/common/LinkModal/FilteredProductModal/index.js +1 -1
- package/es/common/LinkModal/FunctionTable/index.js +2 -1
- package/es/common/LinkModal/index.js +14 -2
- package/es/common/MyModal/index.js +417 -0
- package/es/common/MyModal/index.less +74 -0
- package/es/common/ProductModal/index.js +2 -3
- package/es/common/ProductSource/index.js +42 -10
- package/es/common/UrlPicker/index.js +3 -1
- package/es/common/index.js +16 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -1
- package/es/composite-comp/bol/components/ImageText/pc/index.js +2 -2
- 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/Wallet/pc/index.js +0 -2
- package/es/composite-comp/bol/components/Wallet/pc/index.less +1 -40
- 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/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/ImageTextSecondConfig/index.js +8 -6
- 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 +25 -17
- package/es/composite-comp/common/components/ProductItem/index.less +17 -8
- 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/mobile/index.js +10 -9
- package/es/composite-comp/dito/components/Recommend/pc/index.js +12 -11
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- 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/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/constants/component-types.js +27 -3
- package/es/constants/index.js +26 -1
- package/es/constants/layout.js +48 -1
- 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 +36 -14
- package/es/core/Designer/ChatRobot/index.less +69 -28
- package/es/core/Designer/ConfigPanel/index.js +8 -3
- package/es/core/Designer/History/index.js +2 -2
- 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/images/AlignCenterSVG.js +19 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
- 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 +36 -5
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
- package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
- 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/index.js +28 -3
- package/es/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
- package/es/core/Designer/ToolBarModal/index.js +68 -22
- package/es/core/Designer/ToolBarModal/index.less +3 -2
- package/es/core/Designer/index.js +12 -1
- package/es/core/Renderer/index.js +55 -8
- package/es/decorator/compositeDecorator.js +23 -0
- package/es/locale/en/en.json +6 -1
- package/es/locale/es/es.json +6 -1
- package/es/locale/id/id.json +6 -1
- package/es/meta-comp/components/Image/index.js +31 -25
- package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
- package/es/meta-comp/components/Text/index.js +20 -1
- package/es/meta-comp/components/Text/index.less +8 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +5 -5
- package/es/meta-comp/config-panels/ImageConfig/index.js +48 -44
- package/es/mobx/Frame.js +17 -2
- package/es/utils/businessUtil.js +17 -6
- package/es/utils/commonUtil.js +54 -4
- package/es/utils/currencyUtil.js +9 -2
- 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 +31 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +31 -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/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/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/GroupList/index.less +3 -0
- package/lib/common/ImagePicker/index.js +1 -3
- package/lib/common/LinkModal/FilteredProductModal/index.js +1 -1
- package/lib/common/LinkModal/FunctionTable/index.js +2 -1
- package/lib/common/LinkModal/index.js +14 -2
- package/lib/common/MyModal/index.js +417 -0
- package/lib/common/MyModal/index.less +74 -0
- package/lib/common/ProductModal/index.js +2 -3
- package/lib/common/ProductSource/index.js +42 -10
- package/lib/common/UrlPicker/index.js +3 -1
- package/lib/common/index.js +16 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -1
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +2 -2
- 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/Wallet/pc/index.js +0 -2
- package/lib/composite-comp/bol/components/Wallet/pc/index.less +1 -40
- 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/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/ImageTextSecondConfig/index.js +8 -6
- 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 +25 -17
- package/lib/composite-comp/common/components/ProductItem/index.less +17 -8
- 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/mobile/index.js +10 -9
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +12 -11
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- 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/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/constants/component-types.js +27 -3
- package/lib/constants/index.js +26 -1
- package/lib/constants/layout.js +48 -1
- 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 +36 -14
- package/lib/core/Designer/ChatRobot/index.less +69 -28
- package/lib/core/Designer/ConfigPanel/index.js +8 -3
- package/lib/core/Designer/History/index.js +2 -2
- 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/images/AlignCenterSVG.js +19 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
- 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 +36 -5
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
- 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/index.js +28 -3
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
- package/lib/core/Designer/ToolBarModal/index.js +68 -22
- package/lib/core/Designer/ToolBarModal/index.less +3 -2
- package/lib/core/Designer/index.js +12 -1
- package/lib/core/Renderer/index.js +55 -8
- package/lib/decorator/compositeDecorator.js +23 -0
- package/lib/locale/en/en.json +6 -1
- package/lib/locale/es/es.json +6 -1
- package/lib/locale/id/id.json +6 -1
- package/lib/meta-comp/components/Image/index.js +31 -25
- package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
- package/lib/meta-comp/components/Text/index.js +20 -1
- package/lib/meta-comp/components/Text/index.less +8 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +5 -5
- package/lib/meta-comp/config-panels/ImageConfig/index.js +48 -44
- package/lib/mobx/Frame.js +17 -2
- package/lib/utils/businessUtil.js +17 -6
- package/lib/utils/commonUtil.js +54 -4
- package/lib/utils/currencyUtil.js +9 -2
- package/package.json +1 -1
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
.m-product-item-wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
background: #FFFFFF;
|
|
5
|
+
border: 1px solid #D2D9E5;
|
|
6
|
+
width: 142px;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
position: relative;
|
|
9
|
+
border-radius: 4px;
|
|
10
|
+
|
|
11
|
+
.product-img {
|
|
12
|
+
flex-shrink: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.productItemContent {
|
|
16
|
+
padding: 4px 4px 0;
|
|
17
|
+
|
|
18
|
+
.producItemName {
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
text-overflow: ellipsis;
|
|
21
|
+
display: -webkit-box;
|
|
22
|
+
-webkit-box-orient: vertical;
|
|
23
|
+
-webkit-line-clamp: 2;
|
|
24
|
+
line-height: 18px;
|
|
25
|
+
max-height: 40px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.cashBackBox {
|
|
31
|
+
width: 100%;
|
|
32
|
+
background: #F9F9F9;
|
|
33
|
+
padding: 4px;
|
|
34
|
+
|
|
35
|
+
.cashBackBox_cashBack {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
|
|
39
|
+
img {
|
|
40
|
+
width: 14px;
|
|
41
|
+
height: 14px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.cashBackBox_text {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
padding-left: 4px;
|
|
48
|
+
color: #279e2c;
|
|
49
|
+
font-family: Trueno;
|
|
50
|
+
font-size: 10px;
|
|
51
|
+
font-style: normal;
|
|
52
|
+
font-weight: 700;
|
|
53
|
+
line-height: 12px;
|
|
54
|
+
|
|
55
|
+
span {
|
|
56
|
+
padding-left: 2px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.custom_font {
|
|
61
|
+
font-size: 9px;
|
|
62
|
+
padding-left: 2px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.cashBackBox_koin {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
|
|
70
|
+
img {
|
|
71
|
+
width: 14px;
|
|
72
|
+
height: 14px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.cashBackBox_text {
|
|
76
|
+
color: #fa7539;
|
|
77
|
+
font-family: Trueno;
|
|
78
|
+
font-size: 10px;
|
|
79
|
+
font-style: normal;
|
|
80
|
+
font-weight: 700;
|
|
81
|
+
line-height: 12px;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
padding-left: 4px;
|
|
85
|
+
|
|
86
|
+
span {
|
|
87
|
+
padding: 0 2px;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.custom_font {
|
|
92
|
+
font-size: 9px;
|
|
93
|
+
padding-left: 2px;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.producItemPrice {
|
|
99
|
+
padding: 4px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.fixHeight {
|
|
103
|
+
.promotions-wrap {
|
|
104
|
+
height: 30px;
|
|
105
|
+
flex-wrap: nowrap;
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.producItemName {
|
|
110
|
+
height: 38px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.horizontal {
|
|
115
|
+
flex-direction: row;
|
|
116
|
+
|
|
117
|
+
.product-img {
|
|
118
|
+
width: 100px;
|
|
119
|
+
height: 100%;
|
|
120
|
+
min-height: 100px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.content-wrap {
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-direction: column;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
font-size: 12px;
|
|
5
5
|
|
|
6
6
|
&.img {
|
|
7
|
-
max-width:
|
|
8
|
-
max-height:
|
|
7
|
+
max-width: 75%;
|
|
8
|
+
max-height: 30px;
|
|
9
9
|
|
|
10
10
|
&.small {
|
|
11
|
-
max-width: 30px;
|
|
11
|
+
// max-width: 30px;
|
|
12
12
|
max-height: 30px;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -42,4 +42,10 @@
|
|
|
42
42
|
vertical-align: middle;
|
|
43
43
|
float: left;
|
|
44
44
|
}
|
|
45
|
+
|
|
46
|
+
&.position-7 {
|
|
47
|
+
position: unset;
|
|
48
|
+
// width: 56px;
|
|
49
|
+
height: 16px;
|
|
50
|
+
}
|
|
45
51
|
}
|
|
@@ -95,20 +95,20 @@ function (_super) {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
ProductItem.prototype.render = function () {
|
|
98
|
-
var _a, _b;
|
|
99
|
-
|
|
100
|
-
var
|
|
101
|
-
data =
|
|
102
|
-
panelProps =
|
|
103
|
-
onItemClick =
|
|
104
|
-
showProName =
|
|
105
|
-
showProgress =
|
|
106
|
-
fixHeight =
|
|
107
|
-
layout =
|
|
108
|
-
imgHeight =
|
|
109
|
-
imgWidth =
|
|
110
|
-
unknownPrice =
|
|
111
|
-
rest = __rest(
|
|
98
|
+
var _a, _b, _c;
|
|
99
|
+
|
|
100
|
+
var _d = this.props,
|
|
101
|
+
data = _d.data,
|
|
102
|
+
panelProps = _d.panelProps,
|
|
103
|
+
onItemClick = _d.onItemClick,
|
|
104
|
+
showProName = _d.showProName,
|
|
105
|
+
showProgress = _d.showProgress,
|
|
106
|
+
fixHeight = _d.fixHeight,
|
|
107
|
+
layout = _d.layout,
|
|
108
|
+
imgHeight = _d.imgHeight,
|
|
109
|
+
imgWidth = _d.imgWidth,
|
|
110
|
+
unknownPrice = _d.unknownPrice,
|
|
111
|
+
rest = __rest(_d, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "fixHeight", "layout", "imgHeight", "imgWidth", "unknownPrice"]);
|
|
112
112
|
|
|
113
113
|
var promotions = (0, _businessUtil.getPromotionList)(data);
|
|
114
114
|
var price = (0, _currencyUtil.formatCurrency)(data.salesPrice);
|
|
@@ -145,11 +145,14 @@ function (_super) {
|
|
|
145
145
|
if (imgWidth) imgStyle.width = imgWidth;
|
|
146
146
|
if (imgHeight) imgStyle.height = imgHeight;
|
|
147
147
|
var imgLabels = ((_a = data.labels) === null || _a === void 0 ? void 0 : _a.filter(function (f) {
|
|
148
|
-
return f.position !== '6';
|
|
148
|
+
return f.position !== '6' && f.position !== '7';
|
|
149
149
|
})) || [];
|
|
150
150
|
var prodLabels = ((_b = data.labels) === null || _b === void 0 ? void 0 : _b.filter(function (f) {
|
|
151
151
|
return f.position === '6';
|
|
152
152
|
})) || [];
|
|
153
|
+
var priceLabels = ((_c = data.labels) === null || _c === void 0 ? void 0 : _c.filter(function (f) {
|
|
154
|
+
return f.position === '7';
|
|
155
|
+
})) || [];
|
|
153
156
|
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
154
157
|
className: (0, _classnames["default"])('m-product-item-wrap', {
|
|
155
158
|
fixHeight: fixHeight,
|
|
@@ -196,13 +199,18 @@ function (_super) {
|
|
|
196
199
|
text: data.offerName
|
|
197
200
|
}),
|
|
198
201
|
readonly: true
|
|
199
|
-
}))), panelProps.activityPrice.open && /*#__PURE__*/_react["default"].createElement(
|
|
202
|
+
}))), panelProps.activityPrice.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
203
|
+
className: "price-wrap"
|
|
204
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
200
205
|
className: "price",
|
|
201
206
|
data: __assign(__assign({}, panelProps.activityPrice), {
|
|
202
207
|
text: _price
|
|
203
208
|
}),
|
|
204
209
|
readonly: true
|
|
205
|
-
}),
|
|
210
|
+
}), priceLabels.length > 0 && /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
|
|
211
|
+
labels: priceLabels,
|
|
212
|
+
small: true
|
|
213
|
+
})), panelProps.salesPrice.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
206
214
|
className: "price-sold-wrap"
|
|
207
215
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
208
216
|
className: "old-price-wrap"
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
position: relative;
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
10
|
.img-wrap {
|
|
13
11
|
position: relative;
|
|
14
12
|
|
|
@@ -46,11 +44,19 @@
|
|
|
46
44
|
max-height: 40px;
|
|
47
45
|
}
|
|
48
46
|
|
|
49
|
-
.price {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
.price-wrap {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
flex-wrap: wrap;
|
|
51
|
+
margin-bottom: 5px;
|
|
52
|
+
|
|
53
|
+
.price {
|
|
54
|
+
width: auto !important;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
margin-right: 6px;
|
|
59
|
+
}
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
.price-sold-wrap {
|
|
@@ -62,9 +68,11 @@
|
|
|
62
68
|
text-overflow: ellipsis;
|
|
63
69
|
flex-wrap: wrap;
|
|
64
70
|
line-height: 15px;
|
|
71
|
+
|
|
65
72
|
.old-price-wrap {
|
|
66
73
|
display: flex;
|
|
67
74
|
line-height: 13px;
|
|
75
|
+
|
|
68
76
|
.discount {
|
|
69
77
|
margin-right: 3px;
|
|
70
78
|
font-family: 'Montserrat';
|
|
@@ -76,6 +84,7 @@
|
|
|
76
84
|
padding: 0 4px;
|
|
77
85
|
background-color: #CE1126;
|
|
78
86
|
}
|
|
87
|
+
|
|
79
88
|
.old-price {
|
|
80
89
|
text-decoration: line-through;
|
|
81
90
|
width: fit-content;
|
|
@@ -85,7 +94,7 @@
|
|
|
85
94
|
.sold-count {
|
|
86
95
|
color: #7b7b7b;
|
|
87
96
|
font-size: 12px;
|
|
88
|
-
text-align: right
|
|
97
|
+
text-align: right;
|
|
89
98
|
flex-grow: 1;
|
|
90
99
|
}
|
|
91
100
|
}
|
|
@@ -135,6 +135,19 @@ function (_super) {
|
|
|
135
135
|
showRowNum: false
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
+
} // wallet 第一种布局可选列数
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
if (component === 'wallet') {
|
|
142
|
+
if (v === 'layout2') {
|
|
143
|
+
_this.setState({
|
|
144
|
+
showRowNum: false
|
|
145
|
+
});
|
|
146
|
+
} else {
|
|
147
|
+
_this.setState({
|
|
148
|
+
showRowNum: true
|
|
149
|
+
});
|
|
150
|
+
}
|
|
138
151
|
} // 移动端导航特殊处理
|
|
139
152
|
// 更改需求,两个布局都需 可选行数
|
|
140
153
|
// if (component == 'mobileNavigation') {
|
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
justify-content: space-between;
|
|
5
5
|
align-items: center;
|
|
6
6
|
}
|
|
7
|
+
|
|
7
8
|
.selectWrap {
|
|
8
9
|
position: relative;
|
|
9
10
|
display: flex;
|
|
10
|
-
|
|
11
|
+
|
|
11
12
|
.iconNum {
|
|
12
13
|
position: absolute;
|
|
13
14
|
z-index: 9;
|
|
14
15
|
left: 15px;
|
|
15
|
-
top:
|
|
16
|
+
top: 8px;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.cylon-select {
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.recommendGroupSourceJSON = exports.getDefaultJSON = void 0;
|
|
7
|
+
|
|
8
|
+
var _uuid = require("uuid");
|
|
9
|
+
|
|
10
|
+
var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo, text) {
|
|
11
|
+
var groupId = (0, _uuid.v4)();
|
|
12
|
+
var imageId = (0, _uuid.v4)();
|
|
13
|
+
var groupNameId = (0, _uuid.v4)();
|
|
14
|
+
return {
|
|
15
|
+
id: groupId,
|
|
16
|
+
parentId: parentId,
|
|
17
|
+
image: {
|
|
18
|
+
parentId: groupId,
|
|
19
|
+
id: imageId,
|
|
20
|
+
open: true,
|
|
21
|
+
type: 'IMAGE',
|
|
22
|
+
content: {
|
|
23
|
+
h5Name: '',
|
|
24
|
+
pcName: '',
|
|
25
|
+
h5ImgSrc: logo,
|
|
26
|
+
pcImgSrc: logo,
|
|
27
|
+
clickUrl: ''
|
|
28
|
+
},
|
|
29
|
+
hover: {
|
|
30
|
+
open: false,
|
|
31
|
+
backgroundType: 'enlarge',
|
|
32
|
+
magnification: 1.5,
|
|
33
|
+
pcImgHoverUrl: '',
|
|
34
|
+
h5ImgHoverUrl: ''
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
groupName: {
|
|
38
|
+
parentId: groupId,
|
|
39
|
+
id: groupNameId,
|
|
40
|
+
open: true,
|
|
41
|
+
type: 'TEXT',
|
|
42
|
+
specialContent: [],
|
|
43
|
+
text: text,
|
|
44
|
+
content: {
|
|
45
|
+
sizeType: 'Customize font styles',
|
|
46
|
+
fontFamily: 'Open Sans',
|
|
47
|
+
fontWeight: 400,
|
|
48
|
+
fontSize: 14,
|
|
49
|
+
color: '#8493AF'
|
|
50
|
+
},
|
|
51
|
+
underline: {
|
|
52
|
+
open: false,
|
|
53
|
+
textDecorationColor: '',
|
|
54
|
+
textDecorationStyle: 'solid'
|
|
55
|
+
},
|
|
56
|
+
vertical: {}
|
|
57
|
+
},
|
|
58
|
+
seeAll: {
|
|
59
|
+
parentId: groupId,
|
|
60
|
+
id: (0, _uuid.v4)(),
|
|
61
|
+
open: true,
|
|
62
|
+
type: 'BUTTON',
|
|
63
|
+
text: 'See All',
|
|
64
|
+
content: {
|
|
65
|
+
url: '',
|
|
66
|
+
backgroundColor: '#fff'
|
|
67
|
+
},
|
|
68
|
+
buttonText: {
|
|
69
|
+
sizeType: 'Customize font styles',
|
|
70
|
+
fontFamily: 'Open Sans',
|
|
71
|
+
fontWeight: 400,
|
|
72
|
+
fontSize: 12,
|
|
73
|
+
fontStyle: 'normal',
|
|
74
|
+
color: '#232F46'
|
|
75
|
+
},
|
|
76
|
+
buttonBorder: {
|
|
77
|
+
open: true,
|
|
78
|
+
borderColor: '',
|
|
79
|
+
borderRadius: 0
|
|
80
|
+
},
|
|
81
|
+
spacing: {
|
|
82
|
+
pc: {
|
|
83
|
+
paddingTop: 0,
|
|
84
|
+
paddingBottom: 0,
|
|
85
|
+
paddingLeft: 0,
|
|
86
|
+
paddingRight: 0
|
|
87
|
+
},
|
|
88
|
+
mobile: {
|
|
89
|
+
paddingTop: 0,
|
|
90
|
+
paddingBottom: 0,
|
|
91
|
+
paddingLeft: 0,
|
|
92
|
+
paddingRight: 0
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
buttonIcon: {
|
|
96
|
+
iconUrl: '/get/resource/platform/conf/20220923/picture/Frame24271573200432656932864.png',
|
|
97
|
+
layout: 'left'
|
|
98
|
+
},
|
|
99
|
+
hover: null
|
|
100
|
+
},
|
|
101
|
+
prodIds: '',
|
|
102
|
+
intelligentType: 'Hot',
|
|
103
|
+
intelligentValue: [],
|
|
104
|
+
maxProdNum: 10,
|
|
105
|
+
hover: {
|
|
106
|
+
open: false,
|
|
107
|
+
image: {
|
|
108
|
+
parentId: groupId,
|
|
109
|
+
id: imageId,
|
|
110
|
+
open: false,
|
|
111
|
+
type: 'IMAGE',
|
|
112
|
+
content: {
|
|
113
|
+
h5Name: '',
|
|
114
|
+
pcName: '',
|
|
115
|
+
h5ImgSrc: logo,
|
|
116
|
+
pcImgSrc: logo,
|
|
117
|
+
clickUrl: ''
|
|
118
|
+
},
|
|
119
|
+
hover: {
|
|
120
|
+
open: false,
|
|
121
|
+
backgroundType: 'enlarge',
|
|
122
|
+
magnification: 1.5,
|
|
123
|
+
pcImgHoverUrl: '',
|
|
124
|
+
h5ImgHoverUrl: ''
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
groupName: {
|
|
128
|
+
parentId: groupId,
|
|
129
|
+
id: groupNameId,
|
|
130
|
+
open: false,
|
|
131
|
+
type: 'TEXT',
|
|
132
|
+
specialContent: [],
|
|
133
|
+
text: text,
|
|
134
|
+
content: {
|
|
135
|
+
sizeType: 'Customize font styles',
|
|
136
|
+
fontFamily: 'Open Sans',
|
|
137
|
+
fontWeight: 600,
|
|
138
|
+
fontSize: 14,
|
|
139
|
+
color: '#CE1126'
|
|
140
|
+
},
|
|
141
|
+
underline: {
|
|
142
|
+
open: false,
|
|
143
|
+
textDecorationColor: '',
|
|
144
|
+
textDecorationStyle: 'solid'
|
|
145
|
+
},
|
|
146
|
+
vertical: {}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
exports.recommendGroupSourceJSON = recommendGroupSourceJSON;
|
|
153
|
+
|
|
154
|
+
var getDefaultJSON = function getDefaultJSON() {
|
|
155
|
+
var groupId = (0, _uuid.v4)();
|
|
156
|
+
return {
|
|
157
|
+
id: groupId,
|
|
158
|
+
type: 'AFFILIATE_RECOMMEND',
|
|
159
|
+
groupSource: [recommendGroupSourceJSON(groupId, '', 'Tab1'), recommendGroupSourceJSON(groupId, '', 'Tab2')],
|
|
160
|
+
content: {
|
|
161
|
+
productName: {
|
|
162
|
+
id: (0, _uuid.v4)(),
|
|
163
|
+
open: true,
|
|
164
|
+
type: 'TEXT',
|
|
165
|
+
specialContent: [],
|
|
166
|
+
text: 'Flash Deal',
|
|
167
|
+
content: {
|
|
168
|
+
sizeType: 'Customize font styles',
|
|
169
|
+
fontFamily: 'Open Sans',
|
|
170
|
+
fontWeight: 400,
|
|
171
|
+
fontSize: 10,
|
|
172
|
+
color: '#282828'
|
|
173
|
+
},
|
|
174
|
+
underline: {
|
|
175
|
+
open: false,
|
|
176
|
+
textDecorationColor: '',
|
|
177
|
+
textDecorationStyle: 'solid'
|
|
178
|
+
},
|
|
179
|
+
vertical: {
|
|
180
|
+
open: false,
|
|
181
|
+
lineHeight: 18
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
salesPrice: {
|
|
185
|
+
id: (0, _uuid.v4)(),
|
|
186
|
+
open: true,
|
|
187
|
+
type: 'TEXT',
|
|
188
|
+
specialContent: [],
|
|
189
|
+
text: 'Flash Deal',
|
|
190
|
+
content: {
|
|
191
|
+
sizeType: 'Customize font styles',
|
|
192
|
+
fontFamily: 'Open Sans',
|
|
193
|
+
fontWeight: 800,
|
|
194
|
+
fontSize: 18,
|
|
195
|
+
color: '#333'
|
|
196
|
+
},
|
|
197
|
+
underline: {
|
|
198
|
+
open: false,
|
|
199
|
+
textDecorationColor: '',
|
|
200
|
+
textDecorationStyle: 'solid'
|
|
201
|
+
},
|
|
202
|
+
vertical: {
|
|
203
|
+
open: false,
|
|
204
|
+
lineHeight: 18
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
spacing: {
|
|
209
|
+
pc: {
|
|
210
|
+
paddingTop: 0,
|
|
211
|
+
paddingBottom: 0,
|
|
212
|
+
paddingLeft: 0,
|
|
213
|
+
paddingRight: 0,
|
|
214
|
+
marginBottom: window.magicDesign.compSpacing * 1.5
|
|
215
|
+
},
|
|
216
|
+
mobile: {
|
|
217
|
+
paddingTop: 0,
|
|
218
|
+
paddingBottom: 0,
|
|
219
|
+
paddingLeft: 0,
|
|
220
|
+
paddingRight: 0,
|
|
221
|
+
marginBottom: window.magicDesign.compSpacing
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
customize: {
|
|
225
|
+
layout: {
|
|
226
|
+
pcLayout: 'layout1',
|
|
227
|
+
h5Layout: 'layout1'
|
|
228
|
+
},
|
|
229
|
+
align: 'left',
|
|
230
|
+
pcRowNum: 6,
|
|
231
|
+
pcMaxRowNum: 6,
|
|
232
|
+
pcMinRowNum: 5
|
|
233
|
+
},
|
|
234
|
+
background: {
|
|
235
|
+
opacity: 100,
|
|
236
|
+
color: '#fff',
|
|
237
|
+
image: '',
|
|
238
|
+
bgType: 'color'
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
exports.getDefaultJSON = getDefaultJSON;
|
|
@@ -0,0 +1,90 @@
|
|
|
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 _mobile = _interopRequireDefault(require("./mobile"));
|
|
11
|
+
|
|
12
|
+
var _pc = _interopRequireDefault(require("./pc"));
|
|
13
|
+
|
|
14
|
+
var _defaultJSON = require("./defaultJSON");
|
|
15
|
+
|
|
16
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
17
|
+
|
|
18
|
+
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
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); }
|
|
23
|
+
|
|
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; }
|
|
25
|
+
|
|
26
|
+
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); }
|
|
27
|
+
|
|
28
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
30
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
31
|
+
__proto__: []
|
|
32
|
+
} instanceof Array && function (d, b) {
|
|
33
|
+
d.__proto__ = b;
|
|
34
|
+
} || function (d, b) {
|
|
35
|
+
for (var p in b) {
|
|
36
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return _extendStatics(d, b);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return function (d, b) {
|
|
44
|
+
_extendStatics(d, b);
|
|
45
|
+
|
|
46
|
+
function __() {
|
|
47
|
+
this.constructor = d;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51
|
+
};
|
|
52
|
+
}();
|
|
53
|
+
|
|
54
|
+
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
55
|
+
var c = arguments.length,
|
|
56
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
57
|
+
d;
|
|
58
|
+
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--) {
|
|
59
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
60
|
+
}
|
|
61
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var AffiliateRecommend =
|
|
65
|
+
/** @class */
|
|
66
|
+
function (_super) {
|
|
67
|
+
__extends(AffiliateRecommend, _super);
|
|
68
|
+
|
|
69
|
+
function AffiliateRecommend() {
|
|
70
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
AffiliateRecommend.prototype.render = function () {
|
|
74
|
+
var nodeData = this.props.nodeData;
|
|
75
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
|
|
76
|
+
panelProps: nodeData
|
|
77
|
+
}) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
|
|
78
|
+
panelProps: nodeData
|
|
79
|
+
}));
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
AffiliateRecommend.defaultProps = {};
|
|
83
|
+
AffiliateRecommend.type = 'AFFILIATE_RECOMMEND';
|
|
84
|
+
AffiliateRecommend.getDefaultJSON = _defaultJSON.getDefaultJSON;
|
|
85
|
+
AffiliateRecommend = __decorate([_compositeDecorator["default"]], AffiliateRecommend);
|
|
86
|
+
return AffiliateRecommend;
|
|
87
|
+
}(_react.Component);
|
|
88
|
+
|
|
89
|
+
var _default = AffiliateRecommend;
|
|
90
|
+
exports["default"] = _default;
|