@fonixtree/magic-design 0.0.11 → 0.0.16
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/.DS_Store +0 -0
- package/es/assets/fonts/Montserrat-Bold.ttf +0 -0
- package/es/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/es/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/es/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/es/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/es/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/es/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +299 -0
- package/es/assets/fonts/magic-box-iconfont.css.bak +299 -0
- package/es/assets/fonts/magic-box-iconfont.js +1 -0
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -0
- 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/icon/index.js +68 -0
- package/es/assets/images/layout-icon/carouselLayout1.png +0 -0
- package/es/assets/images/layout-icon/carouselLayout2.png +0 -0
- package/es/assets/images/layout-icon/dividerLayout.svg +4 -0
- package/es/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m3-1.svg +18 -0
- package/es/assets/images/layout-icon/layout-imagetext-m3-2.svg +9 -0
- package/es/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
- package/es/assets/images/layout-icon/layout-search.png +0 -0
- package/es/assets/images/layout-icon/newsletter.svg +7 -0
- package/es/assets/less/button.less +9 -0
- package/es/assets/less/common.less +82 -0
- package/es/assets/less/cylon-antd.less +32534 -0
- package/es/assets/less/font.less +50 -0
- package/es/assets/less/global.less +8 -0
- package/es/assets/less/index.less +11 -0
- package/es/assets/less/input.less +8 -0
- package/es/assets/less/menu.less +21 -0
- package/es/assets/less/modal.less +16 -0
- package/es/assets/less/select.less +19 -0
- package/es/assets/less/slider.less +21 -0
- package/es/assets/less/switch.less +20 -0
- package/es/assets/less/table.less +40 -0
- package/es/assets/less/variables.less +4 -0
- package/es/common/AlignSelector/index.js +104 -0
- package/es/common/AlignSelector/index.less +28 -0
- package/es/common/Button/index.js +134 -0
- package/es/common/Button/index.less +68 -0
- package/es/common/ButtonIconLayout/index.js +103 -0
- package/es/common/ButtonIconLayout/index.less +53 -0
- package/{src/components → es}/common/Collapse/index.js +97 -36
- package/es/common/Collapse/index.less +97 -0
- package/es/common/ColorPicker/imgs/no-color.png +0 -0
- package/{src/components → es}/common/ColorPicker/index.js +50 -13
- package/es/common/ColorPicker/index.less +26 -0
- package/es/common/ColorPickerInput/imgs/code.png +0 -0
- package/es/common/ColorPickerInput/index.js +114 -0
- package/es/common/ColorPickerInput/index.less +50 -0
- package/es/common/CountDown/index.js +151 -0
- package/es/common/CountDown/index.less +23 -0
- package/es/common/Field/index.js +80 -0
- package/es/common/Field/index.less +37 -0
- package/es/common/FontStyles/index.js +178 -0
- package/es/common/FontStyles/index.less +63 -0
- package/es/common/GroupList/defaultImg.png +0 -0
- package/{src/components → es}/common/GroupList/index.js +76 -36
- package/es/common/GroupList/index.less +85 -0
- package/es/common/IconPicker/index.js +147 -0
- package/es/common/IconPicker/index.less +46 -0
- package/es/common/Iconfont/index.js +148 -0
- package/es/common/Iconfont/index.less +20 -0
- package/{src/components → es}/common/ImageModal/CommonModal/const.js +14 -8
- package/es/common/ImageModal/CommonModal/index.js +46 -0
- package/es/common/ImageModal/CommonSelPicCard/index.js +80 -0
- package/es/common/ImageModal/CommonSelPicCard/index.less +40 -0
- package/es/common/ImageModal/const.js +24 -0
- package/es/common/ImageModal/index.js +748 -0
- package/es/common/ImageModal/index.less +21 -0
- package/es/common/ImagePicker/index.js +162 -0
- package/es/common/ImagePicker/index.less +104 -0
- package/es/common/InputNumber/index.js +91 -0
- package/es/common/InputNumber/index.less +33 -0
- package/es/common/LayoutSelector/imgs/center.png +0 -0
- package/es/common/LayoutSelector/imgs/left.png +0 -0
- package/es/common/LayoutSelector/imgs/right.png +0 -0
- package/es/common/LayoutSelector/index.js +111 -0
- package/es/common/LayoutSelector/index.less +34 -0
- package/es/common/LinkModal/CatgTable/index.js +234 -0
- package/es/common/LinkModal/CouponTable/index.js +299 -0
- package/es/common/LinkModal/CustomTable/index.js +227 -0
- package/es/common/LinkModal/FilteredProductModal/index.js +640 -0
- package/es/common/LinkModal/FilteredProductModal/index.less +113 -0
- package/es/common/LinkModal/FunctionTable/index.js +221 -0
- package/es/common/LinkModal/ProductDetailPage/index.js +433 -0
- package/es/common/LinkModal/ProductDetailPage/index.less +21 -0
- package/es/common/LinkModal/index.js +136 -0
- package/es/common/LinkModal/index.less +108 -0
- package/es/common/NewImg/index.js +165 -0
- package/es/common/NewImg/index.less +0 -0
- package/es/common/ProductModal/index.js +760 -0
- package/es/common/ProductModal/index.less +238 -0
- package/es/common/ProductSource/index.js +250 -0
- package/es/common/ProductSource/index.less +12 -0
- package/{src/components → es}/common/RcCollapse/Collapse.js +81 -17
- package/es/common/RcCollapse/Panel.js +193 -0
- package/es/common/RcCollapse/PanelContent.js +59 -0
- package/es/common/RcCollapse/index.js +15 -0
- package/es/common/RcCollapse/index.less +108 -0
- package/es/common/RcCollapse/interface.js +1 -0
- package/es/common/RcCollapse/motion.less +12 -0
- package/{src/components → es}/common/RcCollapse/motionUtil.js +13 -6
- package/es/common/Slider/index.js +151 -0
- package/es/common/Slider/index.less +45 -0
- package/{src/components → es}/common/SwitchCollapse/index.js +74 -20
- package/es/common/SwitchCollapse/index.less +40 -0
- package/es/common/UrlPicker/index.js +119 -0
- package/es/common/UrlPicker/index.less +72 -0
- package/es/common/index.js +127 -0
- package/{src/components → es}/composite-comp/bol/components/Banner/defaultJSON.js +30 -20
- package/es/composite-comp/bol/components/Banner/index.js +89 -0
- package/{src/components → es}/composite-comp/bol/components/Button/defaultJSON.js +31 -10
- package/es/composite-comp/bol/components/Button/index.js +0 -0
- package/{src/components → es}/composite-comp/bol/components/Carousel/defaultJSON.js +36 -27
- package/{src/components → es}/composite-comp/bol/components/Divider/defaultJSON.js +11 -4
- package/{src/components → es}/composite-comp/bol/components/ImageGallery/defaultJSON.js +18 -8
- package/{src/components → es}/composite-comp/bol/components/ImageText/defaultJSON.js +31 -20
- package/{src/components → es}/composite-comp/bol/components/Newsletter/defaultJSON.js +35 -14
- package/{src/components → es}/composite-comp/bol/components/Tag/defaultJSON.js +32 -11
- package/{src/components → es}/composite-comp/bol/components/Text/defaultJSON.js +38 -14
- package/{src/components → es}/composite-comp/dito/components/FlashDeal/defaultJSON.js +17 -10
- package/{src/components → es}/composite-comp/dito/components/Recommend/defaultJSON.js +24 -14
- package/{src/components → es}/composite-comp/dito/components/SearchBar/defaultJSON.js +19 -7
- package/es/constants/component-types.js +87 -0
- package/es/constants/index.js +144 -0
- package/es/constants/layout.js +120 -0
- package/es/core/Designer/CompListPanel/index.js +156 -0
- package/es/core/Designer/CompListPanel/index.less +69 -0
- package/es/core/Designer/ConfigPanel/index.js +294 -0
- package/es/core/Designer/ConfigPanel/index.less +139 -0
- package/{src/components → es}/core/Designer/History/index.js +29 -20
- package/es/core/Designer/PageCompList/index.js +266 -0
- package/es/core/Designer/PageCompList/index.less +114 -0
- package/es/core/Designer/QuickMenuBar/index.js +176 -0
- package/es/core/Designer/QuickMenuBar/index.less +67 -0
- package/es/core/Designer/ViewArea/index.js +150 -0
- package/es/core/Designer/ViewArea/index.less +53 -0
- package/{src/components → es}/core/Designer/index.js +156 -66
- package/es/core/Designer/index.less +6 -0
- package/es/core/Renderer/index.js +82 -0
- package/es/decorator/compositeDecorator.js +130 -0
- package/es/decorator/index.js +23 -0
- package/{src/components → es}/decorator/metaDecorator.js +68 -19
- package/es/index.js +27 -0
- package/es/meta-comp/components/Button/index.js +189 -0
- package/es/meta-comp/components/Button/index.less +19 -0
- package/es/meta-comp/components/Image/index.js +183 -0
- package/{src/components → es}/meta-comp/components/Text/index.js +141 -48
- package/es/meta-comp/components/index.js +31 -0
- package/es/meta-comp/config-panels/BaseConfig.js +87 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +356 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +395 -0
- package/es/meta-comp/config-panels/TextConfig/index.js +358 -0
- package/{src/components → es}/mobx/Store.js +23 -16
- package/es/mobx/index.js +36 -0
- package/es/utils/androidUtil.js +113 -0
- package/{src/components → es}/utils/businessUtil.js +48 -27
- package/{src/components → es}/utils/commonUtil.js +108 -42
- package/es/utils/compJsonUtil.js +240 -0
- package/es/utils/coreUtil.js +156 -0
- package/es/utils/currencyUtil.js +190 -0
- package/{src/components → es}/utils/dataTreeUtils.js +36 -24
- package/es/utils/dateUtil.js +70 -0
- package/es/utils/storeUtil.js +258 -0
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/Montserrat-Bold.ttf +0 -0
- package/lib/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/lib/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/lib/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/lib/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/lib/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/lib/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +299 -0
- package/lib/assets/fonts/magic-box-iconfont.css.bak +299 -0
- package/lib/assets/fonts/magic-box-iconfont.js +1 -0
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -0
- 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/icon/index.js +68 -0
- package/lib/assets/images/layout-icon/carouselLayout1.png +0 -0
- package/lib/assets/images/layout-icon/carouselLayout2.png +0 -0
- package/lib/assets/images/layout-icon/dividerLayout.svg +4 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m3-1.svg +18 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m3-2.svg +9 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
- package/lib/assets/images/layout-icon/layout-search.png +0 -0
- package/lib/assets/images/layout-icon/newsletter.svg +7 -0
- package/lib/assets/less/button.less +9 -0
- package/lib/assets/less/common.less +82 -0
- package/lib/assets/less/cylon-antd.less +32534 -0
- package/lib/assets/less/font.less +50 -0
- package/lib/assets/less/global.less +8 -0
- package/lib/assets/less/index.less +11 -0
- package/lib/assets/less/input.less +8 -0
- package/lib/assets/less/menu.less +21 -0
- package/lib/assets/less/modal.less +16 -0
- package/lib/assets/less/select.less +19 -0
- package/lib/assets/less/slider.less +21 -0
- package/lib/assets/less/switch.less +20 -0
- package/lib/assets/less/table.less +40 -0
- package/lib/assets/less/variables.less +4 -0
- package/lib/common/AlignSelector/index.js +104 -0
- package/lib/common/AlignSelector/index.less +28 -0
- package/lib/common/Button/index.js +134 -0
- package/lib/common/Button/index.less +68 -0
- package/lib/common/ButtonIconLayout/index.js +103 -0
- package/lib/common/ButtonIconLayout/index.less +53 -0
- package/lib/common/Collapse/index.js +384 -0
- package/lib/common/Collapse/index.less +97 -0
- package/lib/common/ColorPicker/imgs/no-color.png +0 -0
- package/lib/common/ColorPicker/index.js +131 -0
- package/lib/common/ColorPicker/index.less +26 -0
- package/lib/common/ColorPickerInput/imgs/code.png +0 -0
- package/lib/common/ColorPickerInput/index.js +114 -0
- package/lib/common/ColorPickerInput/index.less +50 -0
- package/lib/common/CountDown/index.js +151 -0
- package/lib/common/CountDown/index.less +23 -0
- package/lib/common/Field/index.js +80 -0
- package/lib/common/Field/index.less +37 -0
- package/lib/common/FontStyles/index.js +178 -0
- package/lib/common/FontStyles/index.less +63 -0
- package/lib/common/GroupList/defaultImg.png +0 -0
- package/lib/common/GroupList/index.js +210 -0
- package/lib/common/GroupList/index.less +85 -0
- package/lib/common/IconPicker/index.js +147 -0
- package/lib/common/IconPicker/index.less +46 -0
- package/lib/common/Iconfont/index.js +148 -0
- package/lib/common/Iconfont/index.less +20 -0
- package/lib/common/ImageModal/CommonModal/const.js +22 -0
- package/lib/common/ImageModal/CommonModal/index.js +46 -0
- package/lib/common/ImageModal/CommonSelPicCard/index.js +80 -0
- package/lib/common/ImageModal/CommonSelPicCard/index.less +40 -0
- package/lib/common/ImageModal/const.js +24 -0
- package/lib/common/ImageModal/index.js +748 -0
- package/lib/common/ImageModal/index.less +21 -0
- package/lib/common/ImagePicker/index.js +162 -0
- package/lib/common/ImagePicker/index.less +104 -0
- package/lib/common/InputNumber/index.js +91 -0
- package/lib/common/InputNumber/index.less +33 -0
- package/lib/common/LayoutSelector/imgs/center.png +0 -0
- package/lib/common/LayoutSelector/imgs/left.png +0 -0
- package/lib/common/LayoutSelector/imgs/right.png +0 -0
- package/lib/common/LayoutSelector/index.js +111 -0
- package/lib/common/LayoutSelector/index.less +34 -0
- package/lib/common/LinkModal/CatgTable/index.js +234 -0
- package/lib/common/LinkModal/CouponTable/index.js +299 -0
- package/lib/common/LinkModal/CustomTable/index.js +227 -0
- package/lib/common/LinkModal/FilteredProductModal/index.js +640 -0
- package/lib/common/LinkModal/FilteredProductModal/index.less +113 -0
- package/lib/common/LinkModal/FunctionTable/index.js +221 -0
- package/lib/common/LinkModal/ProductDetailPage/index.js +433 -0
- package/lib/common/LinkModal/ProductDetailPage/index.less +21 -0
- package/lib/common/LinkModal/index.js +136 -0
- package/lib/common/LinkModal/index.less +108 -0
- package/lib/common/NewImg/index.js +165 -0
- package/lib/common/NewImg/index.less +0 -0
- package/lib/common/ProductModal/index.js +760 -0
- package/lib/common/ProductModal/index.less +238 -0
- package/lib/common/ProductSource/index.js +250 -0
- package/lib/common/ProductSource/index.less +12 -0
- package/lib/common/RcCollapse/Collapse.js +240 -0
- package/lib/common/RcCollapse/Panel.js +193 -0
- package/lib/common/RcCollapse/PanelContent.js +59 -0
- package/lib/common/RcCollapse/index.js +15 -0
- package/lib/common/RcCollapse/index.less +108 -0
- package/lib/common/RcCollapse/interface.js +1 -0
- package/lib/common/RcCollapse/motion.less +12 -0
- package/lib/common/RcCollapse/motionUtil.js +44 -0
- package/lib/common/Slider/index.js +151 -0
- package/lib/common/Slider/index.less +45 -0
- package/lib/common/SwitchCollapse/index.js +216 -0
- package/lib/common/SwitchCollapse/index.less +40 -0
- package/lib/common/UrlPicker/index.js +119 -0
- package/lib/common/UrlPicker/index.less +72 -0
- package/lib/common/index.js +127 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +268 -0
- package/lib/composite-comp/bol/components/Banner/index.js +89 -0
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +114 -0
- package/lib/composite-comp/bol/components/Button/index.js +103 -0
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +295 -0
- package/lib/composite-comp/bol/components/Divider/defaultJSON.js +47 -0
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +74 -0
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +546 -0
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +135 -0
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +112 -0
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +149 -0
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +183 -0
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +220 -0
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +56 -0
- package/lib/constants/component-types.js +87 -0
- package/lib/constants/index.js +144 -0
- package/lib/constants/layout.js +120 -0
- package/lib/core/Designer/CompListPanel/index.js +156 -0
- package/lib/core/Designer/CompListPanel/index.less +69 -0
- package/lib/core/Designer/ConfigPanel/index.js +294 -0
- package/lib/core/Designer/ConfigPanel/index.less +139 -0
- package/lib/core/Designer/History/index.js +91 -0
- package/lib/core/Designer/PageCompList/index.js +266 -0
- package/lib/core/Designer/PageCompList/index.less +114 -0
- package/lib/core/Designer/QuickMenuBar/index.js +176 -0
- package/lib/core/Designer/QuickMenuBar/index.less +67 -0
- package/lib/core/Designer/ViewArea/index.js +150 -0
- package/lib/core/Designer/ViewArea/index.less +53 -0
- package/lib/core/Designer/index.js +454 -0
- package/lib/core/Designer/index.less +6 -0
- package/lib/core/Renderer/index.js +82 -0
- package/lib/decorator/compositeDecorator.js +130 -0
- package/lib/decorator/index.js +23 -0
- package/lib/decorator/metaDecorator.js +199 -0
- package/lib/index.js +27 -0
- package/lib/meta-comp/components/Button/index.js +189 -0
- package/lib/meta-comp/components/Button/index.less +0 -0
- package/lib/meta-comp/components/Image/index.js +183 -0
- package/lib/meta-comp/components/Text/index.js +478 -0
- package/lib/meta-comp/components/index.js +31 -0
- package/lib/meta-comp/config-panels/BaseConfig.js +87 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +356 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +395 -0
- package/lib/meta-comp/config-panels/TextConfig/index.js +358 -0
- package/lib/mobx/Store.js +95 -0
- package/lib/mobx/index.js +36 -0
- package/lib/utils/androidUtil.js +113 -0
- package/lib/utils/businessUtil.js +235 -0
- package/lib/utils/commonUtil.js +289 -0
- package/lib/utils/compJsonUtil.js +240 -0
- package/lib/utils/coreUtil.js +156 -0
- package/lib/utils/currencyUtil.js +190 -0
- package/lib/utils/dataTreeUtils.js +105 -0
- package/lib/utils/dateUtil.js +70 -0
- package/lib/utils/storeUtil.js +258 -0
- package/package.json +45 -6
- package/_virtual/__node-resolve_empty.js +0 -6
- package/_virtual/_cloneBuffer.js +0 -3
- package/_virtual/_commonjsHelpers.js +0 -24
- package/_virtual/_node-resolve_empty.js +0 -3
- package/_virtual/_nodeUtil.js +0 -3
- package/_virtual/_rollupPluginBabelHelpers.js +0 -18
- package/_virtual/index.js +0 -3
- package/_virtual/index2.js +0 -3
- package/_virtual/index3.js +0 -3
- package/_virtual/index4.js +0 -3
- package/_virtual/index5.js +0 -5
- package/_virtual/interopRequireDefault.js +0 -3
- package/_virtual/isBuffer.js +0 -3
- package/_virtual/react-is.development.js +0 -3
- package/_virtual/react-is.production.min.js +0 -3
- package/_virtual/rng-browser.js +0 -3
- package/_virtual/toArray.js +0 -3
- package/src/components/assets/images/layout-icon/carouselLayout1.png.js +0 -3
- package/src/components/assets/images/layout-icon/carouselLayout2.png.js +0 -3
- package/src/components/assets/images/layout-icon/dividerLayout.svg.js +0 -3
- package/src/components/assets/images/layout-icon/imageGalleryLayout1.png.js +0 -3
- package/src/components/assets/images/layout-icon/imageGalleryLayout2.png.js +0 -3
- package/src/components/assets/images/layout-icon/imageGalleryLayout3.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-1.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-2.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-3.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m2.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m3.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-p1.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-p2.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-p4.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-search.png.js +0 -3
- package/src/components/assets/images/layout-icon/newsletter.svg.js +0 -3
- package/src/components/assets/less/cylon-antd.less.js +0 -3
- package/src/components/assets/less/index.less.js +0 -4
- package/src/components/common/AlignSelector/index.js +0 -65
- package/src/components/common/AlignSelector/index.less.js +0 -4
- package/src/components/common/Button/index.js +0 -75
- package/src/components/common/Button/index.less.js +0 -4
- package/src/components/common/ButtonIconLayout/index.js +0 -66
- package/src/components/common/ButtonIconLayout/index.less.js +0 -4
- package/src/components/common/Collapse/index.less.js +0 -4
- package/src/components/common/ColorPicker/index.less.js +0 -4
- package/src/components/common/ColorPickerInput/index.js +0 -76
- package/src/components/common/ColorPickerInput/index.less.js +0 -4
- package/src/components/common/CountDown/index.js +0 -110
- package/src/components/common/CountDown/index.less.js +0 -4
- package/src/components/common/Field/index.js +0 -43
- package/src/components/common/Field/index.less.js +0 -4
- package/src/components/common/FontStyles/index.js +0 -124
- package/src/components/common/FontStyles/index.less.js +0 -4
- package/src/components/common/GroupList/defaultImg.png.js +0 -3
- package/src/components/common/GroupList/index.less.js +0 -4
- package/src/components/common/IconPicker/index.js +0 -93
- package/src/components/common/IconPicker/index.less.js +0 -4
- package/src/components/common/Iconfont/index.js +0 -74
- package/src/components/common/Iconfont/index.less.js +0 -4
- package/src/components/common/ImageModal/CommonModal/index.js +0 -33
- package/src/components/common/ImageModal/CommonSelPicCard/index.js +0 -66
- package/src/components/common/ImageModal/CommonSelPicCard/index.less.js +0 -4
- package/src/components/common/ImageModal/const.js +0 -18
- package/src/components/common/ImageModal/index.js +0 -547
- package/src/components/common/ImageModal/index.less.js +0 -4
- package/src/components/common/ImagePicker/index.js +0 -124
- package/src/components/common/ImagePicker/index.less.js +0 -4
- package/src/components/common/InputNumber/index.js +0 -54
- package/src/components/common/InputNumber/index.less.js +0 -4
- package/src/components/common/LayoutSelector/imgs/center.png.js +0 -3
- package/src/components/common/LayoutSelector/imgs/left.png.js +0 -3
- package/src/components/common/LayoutSelector/imgs/right.png.js +0 -3
- package/src/components/common/LayoutSelector/index.js +0 -70
- package/src/components/common/LayoutSelector/index.less.js +0 -4
- package/src/components/common/LinkModal/CatgTable/index.js +0 -78
- package/src/components/common/LinkModal/CouponTable/index.js +0 -111
- package/src/components/common/LinkModal/CustomTable/index.js +0 -72
- package/src/components/common/LinkModal/FilteredProductModal/index.js +0 -463
- package/src/components/common/LinkModal/FilteredProductModal/index.less.js +0 -4
- package/src/components/common/LinkModal/FunctionTable/index.js +0 -66
- package/src/components/common/LinkModal/ProductDetailPage/index.js +0 -241
- package/src/components/common/LinkModal/ProductDetailPage/index.less.js +0 -4
- package/src/components/common/LinkModal/index.js +0 -112
- package/src/components/common/LinkModal/index.less.js +0 -4
- package/src/components/common/NewImg/index.js +0 -91
- package/src/components/common/ProductModal/index.js +0 -556
- package/src/components/common/ProductModal/index.less.js +0 -4
- package/src/components/common/ProductSource/index.js +0 -91
- package/src/components/common/ProductSource/index.less.js +0 -4
- package/src/components/common/RcCollapse/Panel.js +0 -146
- package/src/components/common/RcCollapse/PanelContent.js +0 -41
- package/src/components/common/RcCollapse/index.js +0 -6
- package/src/components/common/RcCollapse/index.less.js +0 -4
- package/src/components/common/Slider/index.js +0 -95
- package/src/components/common/Slider/index.less.js +0 -4
- package/src/components/common/SwitchCollapse/index.less.js +0 -4
- package/src/components/common/UrlPicker/index.js +0 -81
- package/src/components/common/UrlPicker/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Banner/imgs/banner.png.js +0 -3
- package/src/components/composite-comp/bol/components/Banner/index.js +0 -34
- package/src/components/composite-comp/bol/components/Banner/mobile/index.js +0 -176
- package/src/components/composite-comp/bol/components/Banner/mobile/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Banner/pc/index.js +0 -254
- package/src/components/composite-comp/bol/components/Banner/pc/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Button/index.js +0 -48
- package/src/components/composite-comp/bol/components/Button/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Carousel/imgs/defaultImg.png.js +0 -3
- package/src/components/composite-comp/bol/components/Carousel/index.js +0 -37
- package/src/components/composite-comp/bol/components/Carousel/mobile/index.js +0 -217
- package/src/components/composite-comp/bol/components/Carousel/mobile/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Carousel/pc/index.js +0 -208
- package/src/components/composite-comp/bol/components/Carousel/pc/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Divider/index.js +0 -48
- package/src/components/composite-comp/bol/components/ImageGallery/index.js +0 -30
- package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.js +0 -47
- package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/ImageText/index.js +0 -33
- package/src/components/composite-comp/bol/components/ImageText/mobile/index.js +0 -143
- package/src/components/composite-comp/bol/components/ImageText/mobile/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/ImageText/pc/index.js +0 -112
- package/src/components/composite-comp/bol/components/ImageText/pc/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Newsletter/index.js +0 -65
- package/src/components/composite-comp/bol/components/Newsletter/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Tag/index.js +0 -52
- package/src/components/composite-comp/bol/components/Tag/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Text/index.js +0 -68
- package/src/components/composite-comp/bol/components/Text/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +0 -73
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +0 -200
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/BannerConfig/index.js +0 -35
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +0 -79
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/index.js +0 -53
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +0 -91
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +0 -175
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -54
- package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +0 -153
- package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +0 -66
- package/src/components/composite-comp/bol/config-panels/DividerConfig/index.js +0 -44
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +0 -91
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/imgs/defaultImg.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +0 -44
- package/src/components/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -74
- package/src/components/composite-comp/bol/config-panels/ImageTextConfig/index.js +0 -170
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -143
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +0 -89
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/index.js +0 -44
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +0 -88
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/index.js +0 -48
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +0 -79
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +0 -85
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/index.js +0 -55
- package/src/components/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +0 -109
- package/src/components/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +0 -107
- package/src/components/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +0 -116
- package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +0 -79
- package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +0 -70
- package/src/components/composite-comp/common/components/ImageLabel/index.js +0 -47
- package/src/components/composite-comp/common/components/ImageLabel/index.less.js +0 -4
- package/src/components/composite-comp/common/components/ProductItem/index.js +0 -121
- package/src/components/composite-comp/common/components/ProductItem/index.less.js +0 -4
- package/src/components/composite-comp/common/config-panels/BackgroundConfig/index.js +0 -89
- package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -182
- package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.less.js +0 -4
- package/src/components/composite-comp/common/config-panels/SpacingConfig/index.js +0 -133
- package/src/components/composite-comp/common/config-panels/SpacingConfig/index.less.js +0 -4
- package/src/components/composite-comp/dito/components/FlashDeal/index.js +0 -31
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg1.png.js +0 -3
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg2.png.js +0 -3
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg3.png.js +0 -3
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.js +0 -233
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.less.js +0 -4
- package/src/components/composite-comp/dito/components/Recommend/index.js +0 -31
- package/src/components/composite-comp/dito/components/Recommend/mobile/index.js +0 -317
- package/src/components/composite-comp/dito/components/Recommend/mobile/index.less.js +0 -4
- package/src/components/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg.js +0 -3
- package/src/components/composite-comp/dito/components/SearchBar/index.js +0 -31
- package/src/components/composite-comp/dito/components/SearchBar/mobile/index.js +0 -89
- package/src/components/composite-comp/dito/components/SearchBar/mobile/index.less.js +0 -4
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +0 -121
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -102
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/index.js +0 -49
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +0 -97
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +0 -89
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less.js +0 -4
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png.js +0 -3
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -49
- package/src/components/composite-comp/dito/config-panels/SearchBarConfig/index.js +0 -115
- package/src/components/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +0 -156
- package/src/components/constants/component-types.js +0 -48
- package/src/components/constants/index.js +0 -74
- package/src/components/constants/layout.js +0 -90
- package/src/components/core/Designer/CompListPanel/CompCard/index.js +0 -33
- package/src/components/core/Designer/CompListPanel/CompCard/index.less.js +0 -4
- package/src/components/core/Designer/CompListPanel/index.js +0 -109
- package/src/components/core/Designer/CompListPanel/index.less.js +0 -4
- package/src/components/core/Designer/ConfigPanel/index.js +0 -246
- package/src/components/core/Designer/ConfigPanel/index.less.js +0 -4
- package/src/components/core/Designer/PageCompList/index.js +0 -248
- package/src/components/core/Designer/PageCompList/index.less.js +0 -4
- package/src/components/core/Designer/QuickMenuBar/index.js +0 -130
- package/src/components/core/Designer/QuickMenuBar/index.less.js +0 -4
- package/src/components/core/Designer/ViewArea/index.js +0 -86
- package/src/components/core/Designer/ViewArea/index.less.js +0 -4
- package/src/components/core/Designer/index.less.js +0 -4
- package/src/components/core/Renderer/index.js +0 -55
- package/src/components/decorator/compositeDecorator.js +0 -94
- package/src/components/index.js +0 -4
- package/src/components/meta-comp/components/Button/index.js +0 -113
- package/src/components/meta-comp/components/Button/index.less.js +0 -4
- package/src/components/meta-comp/components/Image/index.js +0 -121
- package/src/components/meta-comp/components/Image/index.less.js +0 -4
- package/src/components/meta-comp/components/Text/index.less.js +0 -4
- package/src/components/meta-comp/config-panels/BaseConfig.js +0 -47
- package/src/components/meta-comp/config-panels/ButtonConfig/index.js +0 -308
- package/src/components/meta-comp/config-panels/ButtonConfig/index.less.js +0 -4
- package/src/components/meta-comp/config-panels/ImageConfig/index.js +0 -179
- package/src/components/meta-comp/config-panels/ImageConfig/index.less.js +0 -4
- package/src/components/meta-comp/config-panels/TextConfig/index.js +0 -310
- package/src/components/meta-comp/config-panels/TextConfig/index.less.js +0 -4
- package/src/components/mobx/index.js +0 -12
- package/src/components/utils/androidUtil.js +0 -22
- package/src/components/utils/coreUtil.js +0 -108
- package/src/components/utils/currencyUtil.js +0 -110
- package/src/components/utils/dateUtil.js +0 -30
- package/src/components/utils/storeUtil.js +0 -113
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { __extends, __assign } from '../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import classNames from '../../../../../node_modules/classnames/index.js';
|
|
3
|
-
import React__default, { Component } from 'react';
|
|
4
|
-
import isEmpty_1 from '../../../../../node_modules/lodash/isEmpty.js';
|
|
5
|
-
import { deviceTypeMap } from '../../../constants/index.js';
|
|
6
|
-
import { componentMap } from '../../../constants/component-types.js';
|
|
7
|
-
import './index.less.js';
|
|
8
|
-
import { store } from '../../../mobx/index.js';
|
|
9
|
-
import { autorun } from 'mobx';
|
|
10
|
-
|
|
11
|
-
var ViewArea =
|
|
12
|
-
/** @class */
|
|
13
|
-
function (_super) {
|
|
14
|
-
__extends(ViewArea, _super);
|
|
15
|
-
|
|
16
|
-
function ViewArea() {
|
|
17
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
18
|
-
|
|
19
|
-
_this.state = {
|
|
20
|
-
clickedFloor: ''
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
_this.isPhoneEdit = function () {
|
|
24
|
-
var device = _this.props.device;
|
|
25
|
-
return device === deviceTypeMap.PHONE && !isEmpty_1(_this.state.clickedFloor);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
_this.renderView = function () {
|
|
29
|
-
_this.setState({});
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
ViewArea.prototype.componentDidMount = function () {
|
|
36
|
-
var _this = this;
|
|
37
|
-
|
|
38
|
-
this.distroy = autorun(function () {
|
|
39
|
-
_this.setState({
|
|
40
|
-
clickedFloor: store.clickedFloor
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
ViewArea.prototype.componentWillUnmount = function () {
|
|
46
|
-
this.distroy();
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
ViewArea.prototype.render = function () {
|
|
50
|
-
var _a = this.props,
|
|
51
|
-
device = _a.device,
|
|
52
|
-
renderHeader = _a.renderHeader,
|
|
53
|
-
pageData = _a.pageData;
|
|
54
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
55
|
-
className: classNames('design-area-wrap', {
|
|
56
|
-
'phone-edit': this.isPhoneEdit()
|
|
57
|
-
})
|
|
58
|
-
}, renderHeader(), /*#__PURE__*/React__default.createElement("div", {
|
|
59
|
-
className: device === deviceTypeMap.PC ? 'pc_view_area' : 'phone_view_area'
|
|
60
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
61
|
-
className: "device_border",
|
|
62
|
-
style: {
|
|
63
|
-
background: window.magicDesign.pageBackground
|
|
64
|
-
}
|
|
65
|
-
}, pageData && pageData.map(function (nodeData) {
|
|
66
|
-
var Clazz = componentMap[nodeData.type];
|
|
67
|
-
|
|
68
|
-
if (!Clazz) {
|
|
69
|
-
console.error("[MagicBox] Can not find type ".concat(nodeData.type));
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
var newInstanceProps = {
|
|
74
|
-
nodeData: nodeData
|
|
75
|
-
};
|
|
76
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
77
|
-
key: nodeData.id,
|
|
78
|
-
id: "view".concat(nodeData.id)
|
|
79
|
-
}, /*#__PURE__*/React__default.createElement(Clazz, __assign({}, newInstanceProps), null));
|
|
80
|
-
}))));
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
return ViewArea;
|
|
84
|
-
}(Component);
|
|
85
|
-
|
|
86
|
-
export { ViewArea as default };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import styleInject from '../../../../../node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
-
|
|
3
|
-
var css_248z = ".index_design-area-wrap__1UMY8 {\n width: calc(100vw - 354px);\n flex: auto;\n background: #F5F6F7;\n display: flex;\n flex-direction: column;\n padding-left: 1px;\n transition-property: all;\n transition-duration: 0.3s;\n transition-timing-function: ease;\n}\n.index_design-area-wrap__1UMY8.index_phone-edit__-2SG9 {\n margin-left: 355px;\n}\n.index_design-area-wrap__1UMY8 .index_phone_view_area__Jv0A0 {\n flex-grow: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 24px 0;\n}\n.index_design-area-wrap__1UMY8 .index_phone_view_area__Jv0A0 .index_device_border__I7Vyh {\n width: 375px;\n max-height: 691px;\n height: calc(100vh - 150px);\n overflow: scroll;\n overflow-x: hidden;\n border: 10px solid #FFF;\n background-color: #F2F2F2;\n border-radius: 12px;\n box-sizing: content-box;\n}\n.index_design-area-wrap__1UMY8 .index_pc_view_area__3s0Hi {\n flex-grow: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 24px;\n}\n.index_design-area-wrap__1UMY8 .index_pc_view_area__3s0Hi .index_device_border__I7Vyh {\n padding: 1px;\n max-width: 1240px;\n width: 100%;\n min-height: 70vh;\n border: 16px solid #FFF;\n border-radius: 12px;\n max-height: calc(100vh - 180px);\n height: 100%;\n overflow: scroll;\n box-sizing: content-box;\n}\n";
|
|
4
|
-
styleInject(css_248z);
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { __assign } from '../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { componentMap } from '../../constants/component-types.js';
|
|
4
|
-
|
|
5
|
-
var setDesignConfig = function setDesignConfig(props) {
|
|
6
|
-
var config = props.config,
|
|
7
|
-
device = props.device,
|
|
8
|
-
isShop = props.isShop;
|
|
9
|
-
window.magicDesign = __assign({
|
|
10
|
-
pageBackground: '#f2f2f2',
|
|
11
|
-
compSpacing: '16',
|
|
12
|
-
mode: 'renderer',
|
|
13
|
-
device: device,
|
|
14
|
-
isShop: isShop
|
|
15
|
-
}, config);
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* @class Renderer 页面预览器,外部工程使用此类来渲染出页面。
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var Renderer = function Renderer(props) {
|
|
23
|
-
var pageData = props.pageData;
|
|
24
|
-
setDesignConfig(props);
|
|
25
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
26
|
-
className: "render_wrap",
|
|
27
|
-
magic_design: "",
|
|
28
|
-
style: {
|
|
29
|
-
background: window.magicDesign.pageBackground
|
|
30
|
-
}
|
|
31
|
-
}, pageData && pageData.childNodes && pageData.childNodes.map(function (nodeData) {
|
|
32
|
-
var Clazz = componentMap[nodeData.type];
|
|
33
|
-
|
|
34
|
-
if (!Clazz) {
|
|
35
|
-
console.error("[MagicBox] Can not find type ".concat(nodeData.type));
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
var newInstanceProps = __assign(__assign({}, nodeData), {
|
|
40
|
-
nodeData: nodeData
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
44
|
-
key: nodeData.id
|
|
45
|
-
}, /*#__PURE__*/React__default.createElement(Clazz, __assign({}, newInstanceProps), null));
|
|
46
|
-
}));
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
Renderer.defaultProps = {
|
|
50
|
-
pageData: {},
|
|
51
|
-
device: 'pc',
|
|
52
|
-
config: {}
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export { Renderer as default };
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { __extends } from '../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import React__default, { Component } from 'react';
|
|
3
|
-
import { store } from '../mobx/index.js';
|
|
4
|
-
import { autorun } from 'mobx';
|
|
5
|
-
|
|
6
|
-
function compositeDecorator(WrappedComponent) {
|
|
7
|
-
var Wrapper =
|
|
8
|
-
/** @class */
|
|
9
|
-
function (_super) {
|
|
10
|
-
__extends(Wrapper, _super);
|
|
11
|
-
|
|
12
|
-
function Wrapper() {
|
|
13
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
14
|
-
|
|
15
|
-
_this.state = {
|
|
16
|
-
clickedFloor: ''
|
|
17
|
-
}; // 复合组件点击事件
|
|
18
|
-
|
|
19
|
-
_this.onCompositeCompClick = function (event) {
|
|
20
|
-
// 触发左侧楼层的滚动
|
|
21
|
-
if (document.getElementById("card".concat(_this.props.nodeData.id))) {
|
|
22
|
-
document.getElementById("card".concat(_this.props.nodeData.id)).scrollIntoView({
|
|
23
|
-
behavior: 'smooth'
|
|
24
|
-
});
|
|
25
|
-
} // 这里必须阻止事件冒泡,然后再触发自定义的事件
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
event.preventDefault();
|
|
29
|
-
event.stopPropagation(); // 触发点击组件事件
|
|
30
|
-
|
|
31
|
-
var evt = new Event('component-click', {
|
|
32
|
-
bubbles: false
|
|
33
|
-
});
|
|
34
|
-
evt.data = _this.props.nodeData;
|
|
35
|
-
window.document.dispatchEvent(evt);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
_this.getStyle = function () {
|
|
39
|
-
var style = {
|
|
40
|
-
border: 'none'
|
|
41
|
-
}; // 处理复合组件的选中状态
|
|
42
|
-
|
|
43
|
-
if (window.magicDesign.mode === 'designer') {
|
|
44
|
-
// style.border = '1px solid transparent';
|
|
45
|
-
style.border = 'none';
|
|
46
|
-
|
|
47
|
-
if (_this.props.nodeData.id === _this.state.clickedFloor) {
|
|
48
|
-
style.border = '1px dashed red';
|
|
49
|
-
}
|
|
50
|
-
} // 处理复合组件的下边距
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
if (Wrapper.type !== 'DIVIDER') {
|
|
54
|
-
var rate = window.magicDesign.device === 'pc' ? 1.5 : 1;
|
|
55
|
-
style.marginBottom = "".concat(Number(window.magicDesign.compSpacing) * rate, "px");
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return style;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
return _this;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
Wrapper.prototype.componentDidMount = function () {
|
|
65
|
-
var _this = this;
|
|
66
|
-
|
|
67
|
-
this.distroy = autorun(function () {
|
|
68
|
-
_this.setState({
|
|
69
|
-
clickedFloor: store.clickedFloor
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
Wrapper.prototype.componentWillUnmount = function () {
|
|
75
|
-
this.distroy();
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
Wrapper.prototype.render = function () {
|
|
79
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
80
|
-
className: "composite_wrap",
|
|
81
|
-
onClick: this.onCompositeCompClick,
|
|
82
|
-
style: this.getStyle()
|
|
83
|
-
}, /*#__PURE__*/React__default.createElement(WrappedComponent, this.props));
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
Wrapper.getDefaultJSON = WrappedComponent.getDefaultJSON;
|
|
87
|
-
Wrapper.type = WrappedComponent.type;
|
|
88
|
-
return Wrapper;
|
|
89
|
-
}(Component);
|
|
90
|
-
|
|
91
|
-
return Wrapper;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export { compositeDecorator as default };
|
package/src/components/index.js
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { __extends, __assign, __decorate } from '../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import React__default, { Component } from 'react';
|
|
3
|
-
import classNames from '../../../../../node_modules/classnames/index.js';
|
|
4
|
-
import './index.less.js';
|
|
5
|
-
import { computeStyle } from '../../../utils/businessUtil.js';
|
|
6
|
-
import { isDesignMode, clickUrl } from '../../../utils/coreUtil.js';
|
|
7
|
-
import '../../../mobx/index.js';
|
|
8
|
-
import metaDecorator from '../../../decorator/metaDecorator.js';
|
|
9
|
-
|
|
10
|
-
var Button =
|
|
11
|
-
/** @class */
|
|
12
|
-
function (_super) {
|
|
13
|
-
__extends(Button, _super);
|
|
14
|
-
|
|
15
|
-
function Button() {
|
|
16
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
17
|
-
|
|
18
|
-
_this.state = {
|
|
19
|
-
hover: false
|
|
20
|
-
};
|
|
21
|
-
/** 备份历史数据 比对不一致时渲染 */
|
|
22
|
-
|
|
23
|
-
_this.preData = '';
|
|
24
|
-
return _this;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
Button.prototype.shouldComponentUpdate = function (nextProps) {
|
|
28
|
-
return JSON.stringify(nextProps.data) != this.preData;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
Button.prototype.render = function () {
|
|
32
|
-
var _this = this;
|
|
33
|
-
|
|
34
|
-
var _a;
|
|
35
|
-
|
|
36
|
-
var _b = this.props,
|
|
37
|
-
data = _b.data,
|
|
38
|
-
className = _b.className,
|
|
39
|
-
readonly = _b.readonly;
|
|
40
|
-
var hover = this.state.hover;
|
|
41
|
-
this.preData = JSON.stringify(data);
|
|
42
|
-
|
|
43
|
-
var style = __assign({
|
|
44
|
-
backgroundColor: data.content.backgroundColor,
|
|
45
|
-
border: data.buttonBorder.open && data.buttonBorder.borderColor ? "1px solid ".concat(data.buttonBorder.borderColor) : '1px solid transparent',
|
|
46
|
-
borderRadius: data.buttonBorder.open ? data.buttonBorder.borderRadius : 0
|
|
47
|
-
}, data.buttonText);
|
|
48
|
-
|
|
49
|
-
var iconUrl = data.buttonIcon.iconUrl;
|
|
50
|
-
var iconLayout = data.buttonIcon.layout;
|
|
51
|
-
|
|
52
|
-
if (hover && ((_a = data.hover) === null || _a === void 0 ? void 0 : _a.open)) {
|
|
53
|
-
style = __assign(__assign(__assign({}, style), {
|
|
54
|
-
backgroundColor: data.hover.content.backgroundColor,
|
|
55
|
-
border: data.hover.buttonBorder.open && data.hover.buttonBorder.borderColor ? "1px solid ".concat(data.hover.buttonBorder.borderColor) : '1px solid transparent',
|
|
56
|
-
borderRadius: data.hover.buttonBorder.open ? data.hover.buttonBorder.borderRadius : 0
|
|
57
|
-
}), data.hover.buttonText);
|
|
58
|
-
iconUrl = data.hover.buttonIcon.iconUrl;
|
|
59
|
-
iconLayout = data.hover.buttonIcon.layout;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
var btnText = /*#__PURE__*/React__default.createElement("span", {
|
|
63
|
-
className: "item",
|
|
64
|
-
contentEditable: isDesignMode() && !readonly,
|
|
65
|
-
onInput: function (e) {
|
|
66
|
-
var text = e.target.textContent;
|
|
67
|
-
data.text = text;
|
|
68
|
-
/** 主动更新历史数据避免render */
|
|
69
|
-
|
|
70
|
-
_this.preData = JSON.stringify(__assign(__assign({}, JSON.parse(_this.preData)), {
|
|
71
|
-
text: text
|
|
72
|
-
}));
|
|
73
|
-
},
|
|
74
|
-
suppressContentEditableWarning: true
|
|
75
|
-
}, data.text);
|
|
76
|
-
var wrapStyle = computeStyle(data, window.magicDesign.device);
|
|
77
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
78
|
-
className: classNames('m-meta-button', className),
|
|
79
|
-
onClick: function () {
|
|
80
|
-
return clickUrl(data.content.url);
|
|
81
|
-
},
|
|
82
|
-
onMouseEnter: function () {
|
|
83
|
-
return _this.setState({
|
|
84
|
-
hover: true
|
|
85
|
-
});
|
|
86
|
-
},
|
|
87
|
-
onMouseLeave: function () {
|
|
88
|
-
return _this.setState({
|
|
89
|
-
hover: false
|
|
90
|
-
});
|
|
91
|
-
},
|
|
92
|
-
style: __assign(__assign({}, style), wrapStyle)
|
|
93
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
94
|
-
className: classNames('btnContent', {
|
|
95
|
-
horizontal: iconLayout === 'left' || iconLayout === 'right'
|
|
96
|
-
})
|
|
97
|
-
}, (iconLayout === 'right' || iconLayout === 'bottom') && btnText, iconUrl && /*#__PURE__*/React__default.createElement("img", {
|
|
98
|
-
alt: "",
|
|
99
|
-
className: "item",
|
|
100
|
-
src: iconUrl
|
|
101
|
-
}), (iconLayout === 'left' || iconLayout === 'top') && btnText));
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
Button.defaultProps = {
|
|
105
|
-
data: {},
|
|
106
|
-
className: '',
|
|
107
|
-
readonly: false
|
|
108
|
-
};
|
|
109
|
-
Button = __decorate([metaDecorator], Button);
|
|
110
|
-
return Button;
|
|
111
|
-
}(Component);
|
|
112
|
-
|
|
113
|
-
export { Button as default };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import styleInject from '../../../../../node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
-
|
|
3
|
-
var css_248z = ".index_m-meta-button__xC3hx {\n transition: all 0.25s;\n}\n.index_m-meta-button__xC3hx .index_btnContent__EeMhF {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n}\n.index_m-meta-button__xC3hx .index_btnContent__EeMhF.index_horizontal__BTkyD {\n flex-direction: row;\n}\n.index_m-meta-button__xC3hx .index_btnContent__EeMhF img {\n height: 20px;\n}\n";
|
|
4
|
-
styleInject(css_248z);
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { __extends, __decorate } from '../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import classNames from '../../../../../node_modules/classnames/index.js';
|
|
4
|
-
import './index.less.js';
|
|
5
|
-
import { isPc, clickUrl } from '../../../utils/coreUtil.js';
|
|
6
|
-
import '../../../mobx/index.js';
|
|
7
|
-
import metaDecorator from '../../../decorator/metaDecorator.js';
|
|
8
|
-
|
|
9
|
-
var Image =
|
|
10
|
-
/** @class */
|
|
11
|
-
function (_super) {
|
|
12
|
-
__extends(Image, _super);
|
|
13
|
-
|
|
14
|
-
function Image() {
|
|
15
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
16
|
-
|
|
17
|
-
_this.state = {
|
|
18
|
-
// 当仅作为一个图片时,鼠标移上去,hover状态
|
|
19
|
-
hoverImgSrc: false
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
_this.getStyle = function () {
|
|
23
|
-
var _a = _this.props,
|
|
24
|
-
data = _a.data,
|
|
25
|
-
hoverState = _a.hoverState,
|
|
26
|
-
maxHeight = _a.maxHeight,
|
|
27
|
-
maxWidth = _a.maxWidth;
|
|
28
|
-
var hoverImgSrc = _this.state.hoverImgSrc;
|
|
29
|
-
var obj = {};
|
|
30
|
-
|
|
31
|
-
if (data.hover.open && data.hover.backgroundType === 'enlarge' && (hoverState || hoverImgSrc)) {
|
|
32
|
-
// return { transform: `scale(${data.hover.magnification})` };
|
|
33
|
-
obj.transform = "scale(".concat(data.hover.magnification / 2, ")");
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (maxHeight) {
|
|
37
|
-
obj.maxHeight = maxHeight;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
if (maxWidth) {
|
|
41
|
-
obj.maxWidth = maxWidth;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return obj;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
_this.mouseEnterImg = function () {
|
|
48
|
-
var _a = _this.props,
|
|
49
|
-
data = _a.data,
|
|
50
|
-
isBackground = _a.isBackground;
|
|
51
|
-
|
|
52
|
-
if (data.hover.open && !isBackground) {
|
|
53
|
-
_this.setState({
|
|
54
|
-
hoverImgSrc: true
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
_this.mouseLeaveImg = function () {
|
|
60
|
-
var _a = _this.props,
|
|
61
|
-
data = _a.data,
|
|
62
|
-
isBackground = _a.isBackground;
|
|
63
|
-
|
|
64
|
-
if (data.hover.open && !isBackground) {
|
|
65
|
-
_this.setState({
|
|
66
|
-
hoverImgSrc: false
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
return _this;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
Image.prototype.render = function () {
|
|
75
|
-
var _a, _b;
|
|
76
|
-
|
|
77
|
-
var _c = this.props,
|
|
78
|
-
data = _c.data,
|
|
79
|
-
isBackground = _c.isBackground,
|
|
80
|
-
hoverState = _c.hoverState;
|
|
81
|
-
var hoverImgSrc = this.state.hoverImgSrc; // const { hoverSrc } = this.state;
|
|
82
|
-
// console.log('--metaImage ', this.props);
|
|
83
|
-
|
|
84
|
-
var srcImg = isPc() ? (_a = data.content) === null || _a === void 0 ? void 0 : _a.pcImgSrc : (_b = data.content) === null || _b === void 0 ? void 0 : _b.h5ImgSrc;
|
|
85
|
-
|
|
86
|
-
if (data.hover.open && data.hover.backgroundType === 'new' && (hoverState || hoverImgSrc)) {
|
|
87
|
-
srcImg = isPc() ? data.hover.pcImgHoverUrl : data.hover.h5ImgHoverUrl;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (window.magicDesign.isShop && (srcImg === null || srcImg === void 0 ? void 0 : srcImg.includes('ecommerce/static'))) {
|
|
91
|
-
srcImg = srcImg.replace('ecommerce/static', 'static');
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
95
|
-
className: classNames('m-meta-image', {
|
|
96
|
-
backgroundImg: isBackground
|
|
97
|
-
}),
|
|
98
|
-
onClick: function () {
|
|
99
|
-
clickUrl(data.content.clickUrl);
|
|
100
|
-
}
|
|
101
|
-
}, srcImg && /*#__PURE__*/React__default.createElement("img", {
|
|
102
|
-
onMouseEnter: this.mouseEnterImg,
|
|
103
|
-
onMouseLeave: this.mouseLeaveImg,
|
|
104
|
-
src: srcImg,
|
|
105
|
-
style: this.getStyle()
|
|
106
|
-
}));
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
Image.defaultProps = {
|
|
110
|
-
data: {
|
|
111
|
-
content: {},
|
|
112
|
-
hover: {}
|
|
113
|
-
},
|
|
114
|
-
isBackground: false,
|
|
115
|
-
hoverState: false
|
|
116
|
-
};
|
|
117
|
-
Image = __decorate([metaDecorator], Image);
|
|
118
|
-
return Image;
|
|
119
|
-
}(React__default.Component);
|
|
120
|
-
|
|
121
|
-
export { Image as default };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import styleInject from '../../../../../node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
-
|
|
3
|
-
var css_248z = ".index_m-meta-image__6oFhF {\n width: 100%;\n height: 100%;\n}\n.index_m-meta-image__6oFhF > img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n transition: all 0.2s linear;\n vertical-align: initial;\n}\n.index_m-meta-image__6oFhF.index_backgroundImg__-X-kA > img {\n object-fit: cover;\n}\n";
|
|
4
|
-
styleInject(css_248z);
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import styleInject from '../../../../../node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
-
|
|
3
|
-
var css_248z = ".index_m-meta-text__4g6d0 {\n display: block;\n}\n.index_m-meta-text__4g6d0 .index_select-container__tUvJE {\n position: relative;\n}\n.index_m-meta-text__4g6d0 .index_select-container__tUvJE .index_close-wrap__IItPw {\n user-select: none;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n border: 1px dashed #cccccc;\n}\n.index_m-meta-text__4g6d0 .index_select-container__tUvJE .index_close-wrap__IItPw .index_magic-box-iconfont__8UEh8 {\n position: absolute;\n top: 0;\n right: 0;\n font-size: 21px;\n transform: translate(50%, -50%);\n color: #ffffff;\n text-shadow: 1px 1px 4px #000;\n}\n.index_m-meta-text__4g6d0 .index_select-container__tUvJE .index_close-wrap__IItPw .index_magic-box-iconfont__8UEh8:hover {\n color: #f46868;\n cursor: pointer;\n}\n";
|
|
4
|
-
styleInject(css_248z);
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { __extends } from '../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import React__default, { Component } from 'react';
|
|
3
|
-
import { renderPreview } from '../../utils/coreUtil.js';
|
|
4
|
-
|
|
5
|
-
var BaseConfig =
|
|
6
|
-
/** @class */
|
|
7
|
-
function (_super) {
|
|
8
|
-
__extends(BaseConfig, _super);
|
|
9
|
-
|
|
10
|
-
function BaseConfig() {
|
|
11
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
12
|
-
/**
|
|
13
|
-
*重新渲染展示区域
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
_this.reRenderViewArea = function () {
|
|
18
|
-
renderPreview();
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* 重新渲染一级配置面板
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
_this.reRenderConfig = function () {};
|
|
26
|
-
/**
|
|
27
|
-
* 重新渲染当前面板
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
_this.selfRender = function () {
|
|
32
|
-
_this.setState({});
|
|
33
|
-
|
|
34
|
-
_this.reRenderViewArea();
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
BaseConfig.prototype.render = function () {
|
|
41
|
-
return /*#__PURE__*/React__default.createElement("div", null, "BaseMetaComponent");
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
return BaseConfig;
|
|
45
|
-
}(Component);
|
|
46
|
-
|
|
47
|
-
export { BaseConfig as default };
|