@fonixtree/magic-design 0.0.16 → 0.0.19
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/_virtual/__node-resolve_empty.js +6 -0
- package/_virtual/_cloneBuffer.js +3 -0
- package/_virtual/_commonjsHelpers.js +24 -0
- package/_virtual/_node-resolve_empty.js +3 -0
- package/_virtual/_nodeUtil.js +3 -0
- package/_virtual/_rollupPluginBabelHelpers.js +18 -0
- package/_virtual/index.js +3 -0
- package/_virtual/index2.js +3 -0
- package/_virtual/index3.js +3 -0
- package/_virtual/index4.js +3 -0
- package/_virtual/index5.js +5 -0
- package/_virtual/interopRequireDefault.js +3 -0
- package/_virtual/isBuffer.js +3 -0
- package/_virtual/react-is.development.js +3 -0
- package/_virtual/react-is.production.min.js +3 -0
- package/_virtual/rng-browser.js +3 -0
- package/_virtual/toArray.js +3 -0
- package/my_node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +11 -0
- package/my_node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +5 -0
- package/my_node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +9 -0
- package/my_node_modules/@babel/runtime/helpers/esm/classCallCheck.js +7 -0
- package/my_node_modules/@babel/runtime/helpers/esm/createClass.js +20 -0
- package/my_node_modules/@babel/runtime/helpers/esm/createSuper.js +22 -0
- package/my_node_modules/@babel/runtime/helpers/esm/defineProperty.js +16 -0
- package/my_node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +8 -0
- package/my_node_modules/@babel/runtime/helpers/esm/inherits.js +21 -0
- package/my_node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +14 -0
- package/my_node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +31 -0
- package/my_node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +5 -0
- package/my_node_modules/@babel/runtime/helpers/esm/objectSpread2.js +29 -0
- package/my_node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +14 -0
- package/my_node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +9 -0
- package/my_node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
- package/my_node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/my_node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +12 -0
- package/my_node_modules/@babel/runtime/helpers/interopRequireDefault.js +11 -0
- package/my_node_modules/call-bind/callBound.js +19 -0
- package/my_node_modules/call-bind/index.js +52 -0
- package/my_node_modules/classnames/index.js +61 -0
- package/my_node_modules/function-bind/implementation.js +52 -0
- package/my_node_modules/function-bind/index.js +7 -0
- package/my_node_modules/get-intrinsic/index.js +338 -0
- package/my_node_modules/has/src/index.js +7 -0
- package/my_node_modules/has-symbols/index.js +15 -0
- package/my_node_modules/has-symbols/shams.js +42 -0
- package/my_node_modules/lodash/_DataView.js +12 -0
- package/my_node_modules/lodash/_Hash.js +40 -0
- package/my_node_modules/lodash/_ListCache.js +40 -0
- package/my_node_modules/lodash/_Map.js +12 -0
- package/my_node_modules/lodash/_MapCache.js +40 -0
- package/my_node_modules/lodash/_Promise.js +12 -0
- package/my_node_modules/lodash/_Set.js +12 -0
- package/my_node_modules/lodash/_SetCache.js +33 -0
- package/my_node_modules/lodash/_Stack.js +36 -0
- package/my_node_modules/lodash/_Symbol.js +10 -0
- package/my_node_modules/lodash/_Uint8Array.js +10 -0
- package/my_node_modules/lodash/_WeakMap.js +12 -0
- package/my_node_modules/lodash/_arrayEach.js +25 -0
- package/my_node_modules/lodash/_arrayFilter.js +28 -0
- package/my_node_modules/lodash/_arrayLikeKeys.js +59 -0
- package/my_node_modules/lodash/_arrayMap.js +24 -0
- package/my_node_modules/lodash/_arrayPush.js +23 -0
- package/my_node_modules/lodash/_arraySome.js +26 -0
- package/my_node_modules/lodash/_assignValue.js +33 -0
- package/my_node_modules/lodash/_assocIndexOf.js +25 -0
- package/my_node_modules/lodash/_baseAssign.js +22 -0
- package/my_node_modules/lodash/_baseAssignIn.js +22 -0
- package/my_node_modules/lodash/_baseAssignValue.js +29 -0
- package/my_node_modules/lodash/_baseClone.js +193 -0
- package/my_node_modules/lodash/_baseCreate.js +34 -0
- package/my_node_modules/lodash/_baseFindIndex.js +27 -0
- package/my_node_modules/lodash/_baseFor.js +20 -0
- package/my_node_modules/lodash/_baseForOwn.js +21 -0
- package/my_node_modules/lodash/_baseGet.js +29 -0
- package/my_node_modules/lodash/_baseGetAllKeys.js +25 -0
- package/my_node_modules/lodash/_baseGetTag.js +34 -0
- package/my_node_modules/lodash/_baseHasIn.js +16 -0
- package/my_node_modules/lodash/_baseIsArguments.js +23 -0
- package/my_node_modules/lodash/_baseIsEqual.js +33 -0
- package/my_node_modules/lodash/_baseIsEqualDeep.js +95 -0
- package/my_node_modules/lodash/_baseIsMap.js +23 -0
- package/my_node_modules/lodash/_baseIsMatch.js +67 -0
- package/my_node_modules/lodash/_baseIsNative.js +54 -0
- package/my_node_modules/lodash/_baseIsSet.js +23 -0
- package/my_node_modules/lodash/_baseIsTypedArray.js +66 -0
- package/my_node_modules/lodash/_baseIteratee.js +39 -0
- package/my_node_modules/lodash/_baseKeys.js +35 -0
- package/my_node_modules/lodash/_baseKeysIn.js +39 -0
- package/my_node_modules/lodash/_baseMatches.js +28 -0
- package/my_node_modules/lodash/_baseMatchesProperty.js +43 -0
- package/my_node_modules/lodash/_baseProperty.js +17 -0
- package/my_node_modules/lodash/_basePropertyDeep.js +20 -0
- package/my_node_modules/lodash/_baseTimes.js +23 -0
- package/my_node_modules/lodash/_baseToNumber.js +28 -0
- package/my_node_modules/lodash/_baseToString.js +44 -0
- package/my_node_modules/lodash/_baseTrim.js +23 -0
- package/my_node_modules/lodash/_baseUnary.js +17 -0
- package/my_node_modules/lodash/_cacheHas.js +16 -0
- package/my_node_modules/lodash/_castPath.js +28 -0
- package/my_node_modules/lodash/_cloneArrayBuffer.js +20 -0
- package/my_node_modules/lodash/_cloneBuffer.js +40 -0
- package/my_node_modules/lodash/_cloneDataView.js +20 -0
- package/my_node_modules/lodash/_cloneRegExp.js +20 -0
- package/my_node_modules/lodash/_cloneSymbol.js +22 -0
- package/my_node_modules/lodash/_cloneTypedArray.js +20 -0
- package/my_node_modules/lodash/_copyArray.js +23 -0
- package/my_node_modules/lodash/_copyObject.js +45 -0
- package/my_node_modules/lodash/_copySymbols.js +21 -0
- package/my_node_modules/lodash/_copySymbolsIn.js +21 -0
- package/my_node_modules/lodash/_coreJsData.js +10 -0
- package/my_node_modules/lodash/_createBaseFor.js +28 -0
- package/my_node_modules/lodash/_createMathOperation.js +43 -0
- package/my_node_modules/lodash/_defineProperty.js +15 -0
- package/my_node_modules/lodash/_equalArrays.js +90 -0
- package/my_node_modules/lodash/_equalByTag.js +121 -0
- package/my_node_modules/lodash/_equalObjects.js +94 -0
- package/my_node_modules/lodash/_freeGlobal.js +9 -0
- package/my_node_modules/lodash/_getAllKeys.js +22 -0
- package/my_node_modules/lodash/_getAllKeysIn.js +23 -0
- package/my_node_modules/lodash/_getMapData.js +22 -0
- package/my_node_modules/lodash/_getMatchData.js +29 -0
- package/my_node_modules/lodash/_getNative.js +22 -0
- package/my_node_modules/lodash/_getPrototype.js +10 -0
- package/my_node_modules/lodash/_getRawTag.js +50 -0
- package/my_node_modules/lodash/_getSymbols.js +35 -0
- package/my_node_modules/lodash/_getSymbolsIn.js +32 -0
- package/my_node_modules/lodash/_getTag.js +68 -0
- package/my_node_modules/lodash/_getValue.js +16 -0
- package/my_node_modules/lodash/_hasPath.js +48 -0
- package/my_node_modules/lodash/_hashClear.js +19 -0
- package/my_node_modules/lodash/_hashDelete.js +20 -0
- package/my_node_modules/lodash/_hashGet.js +34 -0
- package/my_node_modules/lodash/_hashHas.js +27 -0
- package/my_node_modules/lodash/_hashSet.js +27 -0
- package/my_node_modules/lodash/_initCloneArray.js +29 -0
- package/my_node_modules/lodash/_initCloneByTag.js +85 -0
- package/my_node_modules/lodash/_initCloneObject.js +24 -0
- package/my_node_modules/lodash/_isIndex.js +28 -0
- package/my_node_modules/lodash/_isKey.js +34 -0
- package/my_node_modules/lodash/_isKeyable.js +18 -0
- package/my_node_modules/lodash/_isMasked.js +24 -0
- package/my_node_modules/lodash/_isPrototype.js +21 -0
- package/my_node_modules/lodash/_isStrictComparable.js +19 -0
- package/my_node_modules/lodash/_listCacheClear.js +16 -0
- package/my_node_modules/lodash/_listCacheDelete.js +39 -0
- package/my_node_modules/lodash/_listCacheGet.js +23 -0
- package/my_node_modules/lodash/_listCacheHas.js +20 -0
- package/my_node_modules/lodash/_listCacheSet.js +30 -0
- package/my_node_modules/lodash/_mapCacheClear.js +27 -0
- package/my_node_modules/lodash/_mapCacheDelete.js +22 -0
- package/my_node_modules/lodash/_mapCacheGet.js +20 -0
- package/my_node_modules/lodash/_mapCacheHas.js +20 -0
- package/my_node_modules/lodash/_mapCacheSet.js +26 -0
- package/my_node_modules/lodash/_mapToArray.js +21 -0
- package/my_node_modules/lodash/_matchesStrictComparable.js +23 -0
- package/my_node_modules/lodash/_memoizeCapped.js +30 -0
- package/my_node_modules/lodash/_nativeCreate.js +10 -0
- package/my_node_modules/lodash/_nativeKeys.js +10 -0
- package/my_node_modules/lodash/_nativeKeysIn.js +23 -0
- package/my_node_modules/lodash/_nodeUtil.js +35 -0
- package/my_node_modules/lodash/_objectToString.js +25 -0
- package/my_node_modules/lodash/_overArg.js +18 -0
- package/my_node_modules/lodash/_root.js +13 -0
- package/my_node_modules/lodash/_setCacheAdd.js +22 -0
- package/my_node_modules/lodash/_setCacheHas.js +17 -0
- package/my_node_modules/lodash/_setToArray.js +21 -0
- package/my_node_modules/lodash/_stackClear.js +19 -0
- package/my_node_modules/lodash/_stackDelete.js +21 -0
- package/my_node_modules/lodash/_stackGet.js +17 -0
- package/my_node_modules/lodash/_stackHas.js +17 -0
- package/my_node_modules/lodash/_stackSet.js +40 -0
- package/my_node_modules/lodash/_stringToPath.js +31 -0
- package/my_node_modules/lodash/_toKey.js +25 -0
- package/my_node_modules/lodash/_toSource.js +29 -0
- package/my_node_modules/lodash/_trimmedEndIndex.js +22 -0
- package/my_node_modules/lodash/cloneDeep.js +33 -0
- package/my_node_modules/lodash/divide.js +26 -0
- package/my_node_modules/lodash/eq.js +40 -0
- package/my_node_modules/lodash/findIndex.js +61 -0
- package/my_node_modules/lodash/get.js +37 -0
- package/my_node_modules/lodash/hasIn.js +39 -0
- package/my_node_modules/lodash/identity.js +24 -0
- package/my_node_modules/lodash/isArguments.js +41 -0
- package/my_node_modules/lodash/isArray.js +29 -0
- package/my_node_modules/lodash/isArrayLike.js +38 -0
- package/my_node_modules/lodash/isBuffer.js +44 -0
- package/my_node_modules/lodash/isEmpty.js +89 -0
- package/my_node_modules/lodash/isFunction.js +42 -0
- package/my_node_modules/lodash/isLength.js +38 -0
- package/my_node_modules/lodash/isMap.js +34 -0
- package/my_node_modules/lodash/isObject.js +34 -0
- package/my_node_modules/lodash/isObjectLike.js +32 -0
- package/my_node_modules/lodash/isSet.js +34 -0
- package/my_node_modules/lodash/isSymbol.js +34 -0
- package/my_node_modules/lodash/isTypedArray.js +34 -0
- package/my_node_modules/lodash/keys.js +43 -0
- package/my_node_modules/lodash/keysIn.js +38 -0
- package/my_node_modules/lodash/mapKeys.js +42 -0
- package/my_node_modules/lodash/memoize.js +77 -0
- package/my_node_modules/lodash/property.js +39 -0
- package/my_node_modules/lodash/stubArray.js +26 -0
- package/my_node_modules/lodash/stubFalse.js +21 -0
- package/my_node_modules/lodash/toFinite.js +46 -0
- package/my_node_modules/lodash/toInteger.js +40 -0
- package/my_node_modules/lodash/toNumber.js +70 -0
- package/my_node_modules/lodash/toString.js +32 -0
- package/my_node_modules/object-assign/index.js +99 -0
- package/my_node_modules/object-inspect/index.js +516 -0
- package/my_node_modules/prop-types/checkPropTypes.js +115 -0
- package/my_node_modules/prop-types/factoryWithThrowingShims.js +74 -0
- package/my_node_modules/prop-types/factoryWithTypeCheckers.js +625 -0
- package/my_node_modules/prop-types/index.js +27 -0
- package/my_node_modules/prop-types/lib/ReactPropTypesSecret.js +21 -0
- package/my_node_modules/prop-types/lib/has.js +11 -0
- package/my_node_modules/qs/lib/formats.js +23 -0
- package/my_node_modules/qs/lib/index.js +15 -0
- package/my_node_modules/qs/lib/parse.js +265 -0
- package/my_node_modules/qs/lib/stringify.js +330 -0
- package/my_node_modules/qs/lib/utils.js +254 -0
- package/my_node_modules/rc-motion/es/CSSMotion.js +149 -0
- package/my_node_modules/rc-motion/es/DomWrapper.js +28 -0
- package/my_node_modules/rc-motion/es/hooks/useDomMotionEvents.js +45 -0
- package/my_node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.js +6 -0
- package/my_node_modules/rc-motion/es/hooks/useNextFrame.js +36 -0
- package/my_node_modules/rc-motion/es/hooks/useStatus.js +232 -0
- package/my_node_modules/rc-motion/es/hooks/useStepQueue.js +69 -0
- package/my_node_modules/rc-motion/es/index.js +4 -0
- package/my_node_modules/rc-motion/es/interface.js +11 -0
- package/my_node_modules/rc-motion/es/util/motion.js +85 -0
- package/my_node_modules/rc-util/es/Dom/canUseDom.js +5 -0
- package/my_node_modules/rc-util/es/Dom/findDOMNode.js +15 -0
- package/my_node_modules/rc-util/es/hooks/useState.js +36 -0
- package/my_node_modules/rc-util/es/raf.js +57 -0
- package/my_node_modules/rc-util/es/ref.js +30 -0
- package/my_node_modules/rc-util/lib/Children/toArray.js +39 -0
- package/my_node_modules/react-is/cjs/react-is.development.js +190 -0
- package/my_node_modules/react-is/cjs/react-is.production.min.js +26 -0
- package/my_node_modules/react-is/index.js +21 -0
- package/my_node_modules/shallowequal/index.js +48 -0
- package/my_node_modules/side-channel/index.js +128 -0
- package/my_node_modules/slick-carousel/slick/slick-theme.css.js +6 -0
- package/my_node_modules/slick-carousel/slick/slick.css.js +6 -0
- package/my_node_modules/style-inject/dist/style-inject.es.js +28 -0
- package/my_node_modules/tslib/tslib.es6.js +110 -0
- package/my_node_modules/uuid/index.js +13 -0
- package/my_node_modules/uuid/lib/bytesToUuid.js +29 -0
- package/my_node_modules/uuid/lib/rng-browser.js +39 -0
- package/my_node_modules/uuid/v1.js +115 -0
- package/my_node_modules/uuid/v4.js +35 -0
- package/package.json +6 -44
- package/src/components/assets/images/layout-icon/carouselLayout1.png.js +3 -0
- package/src/components/assets/images/layout-icon/carouselLayout2.png.js +3 -0
- package/src/components/assets/images/layout-icon/dividerLayout.svg.js +3 -0
- package/src/components/assets/images/layout-icon/imageGalleryLayout1.png.js +3 -0
- package/src/components/assets/images/layout-icon/imageGalleryLayout2.png.js +3 -0
- package/src/components/assets/images/layout-icon/imageGalleryLayout3.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-1.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-2.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-3.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-m2.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-m3.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-p1.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-p2.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-imagetext-p4.png.js +3 -0
- package/src/components/assets/images/layout-icon/layout-search.png.js +3 -0
- package/src/components/assets/images/layout-icon/newsletter.svg.js +3 -0
- package/src/components/assets/less/cylon-antd.less.js +5 -0
- package/src/components/assets/less/index.less.js +6 -0
- package/src/components/common/AlignSelector/index.js +65 -0
- package/src/components/common/AlignSelector/index.less.js +6 -0
- package/src/components/common/Button/index.js +75 -0
- package/src/components/common/Button/index.less.js +6 -0
- package/src/components/common/ButtonIconLayout/index.js +66 -0
- package/src/components/common/ButtonIconLayout/index.less.js +6 -0
- package/src/components/common/Collapse/index.js +323 -0
- package/src/components/common/Collapse/index.less.js +6 -0
- package/src/components/common/ColorPicker/index.js +94 -0
- package/src/components/common/ColorPicker/index.less.js +6 -0
- package/src/components/common/ColorPickerInput/index.js +76 -0
- package/src/components/common/ColorPickerInput/index.less.js +6 -0
- package/src/components/common/CountDown/index.js +110 -0
- package/src/components/common/CountDown/index.less.js +6 -0
- package/src/components/common/Field/index.js +43 -0
- package/src/components/common/Field/index.less.js +6 -0
- package/src/components/common/FontStyles/index.js +124 -0
- package/src/components/common/FontStyles/index.less.js +6 -0
- package/src/components/common/GroupList/defaultImg.png.js +3 -0
- package/src/components/common/GroupList/index.js +170 -0
- package/src/components/common/GroupList/index.less.js +6 -0
- package/src/components/common/IconPicker/index.js +93 -0
- package/src/components/common/IconPicker/index.less.js +6 -0
- package/src/components/common/Iconfont/index.js +74 -0
- package/src/components/common/Iconfont/index.less.js +6 -0
- package/src/components/common/ImageModal/CommonModal/const.js +16 -0
- package/src/components/common/ImageModal/CommonModal/index.js +33 -0
- package/src/components/common/ImageModal/CommonSelPicCard/index.js +66 -0
- package/src/components/common/ImageModal/CommonSelPicCard/index.less.js +6 -0
- package/src/components/common/ImageModal/const.js +18 -0
- package/src/components/common/ImageModal/index.js +547 -0
- package/src/components/common/ImageModal/index.less.js +6 -0
- package/src/components/common/ImagePicker/index.js +124 -0
- package/src/components/common/ImagePicker/index.less.js +6 -0
- package/src/components/common/InputNumber/index.js +54 -0
- package/src/components/common/InputNumber/index.less.js +6 -0
- package/src/components/common/LayoutSelector/imgs/center.png.js +3 -0
- package/src/components/common/LayoutSelector/imgs/left.png.js +3 -0
- package/src/components/common/LayoutSelector/imgs/right.png.js +3 -0
- package/src/components/common/LayoutSelector/index.js +70 -0
- package/src/components/common/LayoutSelector/index.less.js +6 -0
- package/src/components/common/LinkModal/CatgTable/index.js +78 -0
- package/src/components/common/LinkModal/CouponTable/index.js +111 -0
- package/src/components/common/LinkModal/CustomTable/index.js +72 -0
- package/src/components/common/LinkModal/FilteredProductModal/index.js +463 -0
- package/src/components/common/LinkModal/FilteredProductModal/index.less.js +6 -0
- package/src/components/common/LinkModal/FunctionTable/index.js +66 -0
- package/src/components/common/LinkModal/ProductDetailPage/index.js +241 -0
- package/src/components/common/LinkModal/ProductDetailPage/index.less.js +6 -0
- package/src/components/common/LinkModal/index.js +112 -0
- package/src/components/common/LinkModal/index.less.js +6 -0
- package/src/components/common/NewImg/index.js +91 -0
- package/src/components/common/ProductModal/index.js +556 -0
- package/src/components/common/ProductModal/index.less.js +6 -0
- package/src/components/common/ProductSource/index.js +91 -0
- package/src/components/common/ProductSource/index.less.js +6 -0
- package/src/components/common/RcCollapse/Collapse.js +176 -0
- package/src/components/common/RcCollapse/Panel.js +146 -0
- package/src/components/common/RcCollapse/PanelContent.js +41 -0
- package/src/components/common/RcCollapse/index.js +6 -0
- package/src/components/common/RcCollapse/index.less.js +6 -0
- package/src/components/common/RcCollapse/motionUtil.js +37 -0
- package/src/components/common/Slider/index.js +95 -0
- package/src/components/common/Slider/index.less.js +6 -0
- package/src/components/common/SwitchCollapse/index.js +162 -0
- package/src/components/common/SwitchCollapse/index.less.js +6 -0
- package/src/components/common/UrlPicker/index.js +81 -0
- package/src/components/common/UrlPicker/index.less.js +6 -0
- package/src/components/composite-comp/bol/components/Banner/defaultJSON.js +258 -0
- package/src/components/composite-comp/bol/components/Banner/imgs/banner.png.js +3 -0
- package/src/components/composite-comp/bol/components/Banner/index.js +34 -0
- package/src/components/composite-comp/bol/components/Banner/mobile/index.js +176 -0
- package/src/components/composite-comp/bol/components/Banner/mobile/index.less.js +6 -0
- package/src/components/composite-comp/bol/components/Banner/pc/index.js +254 -0
- package/src/components/composite-comp/bol/components/Banner/pc/index.less.js +6 -0
- package/src/components/composite-comp/bol/components/Button/defaultJSON.js +93 -0
- package/src/components/composite-comp/bol/components/Button/index.js +48 -0
- package/src/components/composite-comp/bol/components/Button/index.less.js +6 -0
- package/src/components/composite-comp/bol/components/Carousel/defaultJSON.js +287 -0
- package/src/components/composite-comp/bol/components/Carousel/imgs/defaultImg.png.js +3 -0
- package/src/components/composite-comp/bol/components/Carousel/index.js +37 -0
- package/src/components/composite-comp/bol/components/Carousel/mobile/index.js +217 -0
- package/src/components/composite-comp/bol/components/Carousel/mobile/index.less.js +6 -0
- package/src/components/composite-comp/bol/components/Carousel/pc/index.js +208 -0
- package/src/components/composite-comp/bol/components/Carousel/pc/index.less.js +6 -0
- package/src/components/composite-comp/bol/components/Divider/defaultJSON.js +40 -0
- package/src/components/composite-comp/bol/components/Divider/index.js +48 -0
- package/src/components/composite-comp/bol/components/ImageGallery/defaultJSON.js +64 -0
- package/src/components/composite-comp/bol/components/ImageGallery/index.js +30 -0
- package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.js +47 -0
- package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.less.js +6 -0
- package/src/components/composite-comp/bol/components/ImageText/defaultJSON.js +537 -0
- package/src/components/composite-comp/bol/components/ImageText/index.js +33 -0
- package/src/components/composite-comp/bol/components/ImageText/mobile/index.js +145 -0
- package/src/components/composite-comp/bol/components/ImageText/mobile/index.less.js +6 -0
- package/src/components/composite-comp/bol/components/ImageText/pc/index.js +126 -0
- package/src/components/composite-comp/bol/components/ImageText/pc/index.less.js +6 -0
- package/src/components/composite-comp/bol/components/Newsletter/defaultJSON.js +114 -0
- package/src/components/composite-comp/bol/components/Newsletter/index.js +65 -0
- package/src/components/composite-comp/bol/components/Newsletter/index.less.js +6 -0
- package/src/components/composite-comp/bol/components/Tag/defaultJSON.js +91 -0
- package/src/components/composite-comp/bol/components/Tag/index.js +52 -0
- package/src/components/composite-comp/bol/components/Tag/index.less.js +6 -0
- package/src/components/composite-comp/bol/components/Text/defaultJSON.js +125 -0
- package/src/components/composite-comp/bol/components/Text/index.js +68 -0
- package/src/components/composite-comp/bol/components/Text/index.less.js +6 -0
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +73 -0
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less.js +6 -0
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +200 -0
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less.js +6 -0
- package/src/components/composite-comp/bol/config-panels/BannerConfig/index.js +35 -0
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +79 -0
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png.js +3 -0
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png.js +3 -0
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/index.js +53 -0
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +91 -0
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +175 -0
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less.js +6 -0
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png.js +3 -0
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/index.js +54 -0
- package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +153 -0
- package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +66 -0
- package/src/components/composite-comp/bol/config-panels/DividerConfig/index.js +44 -0
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +91 -0
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/imgs/defaultImg.png.js +3 -0
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +44 -0
- package/src/components/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +74 -0
- package/src/components/composite-comp/bol/config-panels/ImageTextConfig/index.js +170 -0
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +143 -0
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +89 -0
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/index.js +44 -0
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +88 -0
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png.js +3 -0
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/index.js +48 -0
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +79 -0
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +85 -0
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less.js +6 -0
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png.js +3 -0
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/index.js +55 -0
- package/src/components/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +109 -0
- package/src/components/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +107 -0
- package/src/components/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +118 -0
- package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +79 -0
- package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +70 -0
- package/src/components/composite-comp/common/components/ImageLabel/index.js +47 -0
- package/src/components/composite-comp/common/components/ImageLabel/index.less.js +6 -0
- package/src/components/composite-comp/common/components/ProductItem/index.js +121 -0
- package/src/components/composite-comp/common/components/ProductItem/index.less.js +6 -0
- package/src/components/composite-comp/common/config-panels/BackgroundConfig/index.js +89 -0
- package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.js +182 -0
- package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.less.js +6 -0
- package/src/components/composite-comp/common/config-panels/SpacingConfig/index.js +133 -0
- package/src/components/composite-comp/common/config-panels/SpacingConfig/index.less.js +6 -0
- package/src/components/composite-comp/dito/components/FlashDeal/defaultJSON.js +176 -0
- package/src/components/composite-comp/dito/components/FlashDeal/index.js +31 -0
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg1.png.js +3 -0
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg2.png.js +3 -0
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg3.png.js +3 -0
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.js +233 -0
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.less.js +6 -0
- package/src/components/composite-comp/dito/components/Recommend/defaultJSON.js +210 -0
- package/src/components/composite-comp/dito/components/Recommend/index.js +31 -0
- package/src/components/composite-comp/dito/components/Recommend/mobile/index.js +317 -0
- package/src/components/composite-comp/dito/components/Recommend/mobile/index.less.js +6 -0
- package/src/components/composite-comp/dito/components/SearchBar/defaultJSON.js +44 -0
- package/src/components/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg.js +3 -0
- package/src/components/composite-comp/dito/components/SearchBar/index.js +31 -0
- package/src/components/composite-comp/dito/components/SearchBar/mobile/index.js +89 -0
- package/src/components/composite-comp/dito/components/SearchBar/mobile/index.less.js +6 -0
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +121 -0
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +102 -0
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/imgs/layout1.png.js +3 -0
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/index.js +49 -0
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +97 -0
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +89 -0
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less.js +6 -0
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png.js +3 -0
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/layout1.png.js +3 -0
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/index.js +49 -0
- package/src/components/composite-comp/dito/config-panels/SearchBarConfig/index.js +115 -0
- package/src/components/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +156 -0
- package/src/components/constants/component-types.js +48 -0
- package/src/components/constants/index.js +74 -0
- package/src/components/constants/layout.js +90 -0
- package/src/components/core/Designer/CompListPanel/CompCard/index.js +33 -0
- package/src/components/core/Designer/CompListPanel/CompCard/index.less.js +6 -0
- package/src/components/core/Designer/CompListPanel/index.js +109 -0
- package/src/components/core/Designer/CompListPanel/index.less.js +6 -0
- package/src/components/core/Designer/ConfigPanel/index.js +246 -0
- package/src/components/core/Designer/ConfigPanel/index.less.js +6 -0
- package/src/components/core/Designer/History/index.js +82 -0
- package/src/components/core/Designer/PageCompList/index.js +248 -0
- package/src/components/core/Designer/PageCompList/index.less.js +6 -0
- package/src/components/core/Designer/QuickMenuBar/index.js +130 -0
- package/src/components/core/Designer/QuickMenuBar/index.less.js +6 -0
- package/src/components/core/Designer/ViewArea/index.js +86 -0
- package/src/components/core/Designer/ViewArea/index.less.js +6 -0
- package/src/components/core/Designer/index.js +364 -0
- package/src/components/core/Designer/index.less.js +6 -0
- package/src/components/core/Renderer/index.js +55 -0
- package/src/components/decorator/compositeDecorator.js +94 -0
- package/src/components/decorator/metaDecorator.js +150 -0
- package/src/components/index.js +4 -0
- package/src/components/meta-comp/components/Button/index.js +121 -0
- package/src/components/meta-comp/components/Button/index.less.js +6 -0
- package/src/components/meta-comp/components/Image/index.js +133 -0
- package/src/components/meta-comp/components/Image/index.less.js +6 -0
- package/src/components/meta-comp/components/Text/index.js +385 -0
- package/src/components/meta-comp/components/Text/index.less.js +6 -0
- package/src/components/meta-comp/config-panels/BaseConfig.js +47 -0
- package/src/components/meta-comp/config-panels/ButtonConfig/index.js +310 -0
- package/src/components/meta-comp/config-panels/ButtonConfig/index.less.js +6 -0
- package/src/components/meta-comp/config-panels/ImageConfig/index.js +224 -0
- package/src/components/meta-comp/config-panels/ImageConfig/index.less.js +6 -0
- package/src/components/meta-comp/config-panels/TextConfig/index.js +310 -0
- package/src/components/meta-comp/config-panels/TextConfig/index.less.js +6 -0
- package/src/components/mobx/Store.js +88 -0
- package/src/components/mobx/index.js +12 -0
- package/src/components/utils/androidUtil.js +22 -0
- package/src/components/utils/businessUtil.js +214 -0
- package/src/components/utils/commonUtil.js +240 -0
- package/src/components/utils/coreUtil.js +108 -0
- package/src/components/utils/currencyUtil.js +110 -0
- package/src/components/utils/dataTreeUtils.js +93 -0
- package/src/components/utils/dateUtil.js +30 -0
- package/src/components/utils/storeUtil.js +113 -0
- 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 +0 -299
- package/es/assets/fonts/magic-box-iconfont.css.bak +0 -299
- package/es/assets/fonts/magic-box-iconfont.js +0 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +0 -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/icon/index.js +0 -68
- 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 +0 -4
- 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 +0 -18
- package/es/assets/images/layout-icon/layout-imagetext-m3-2.svg +0 -9
- 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 +0 -7
- package/es/assets/less/button.less +0 -9
- package/es/assets/less/common.less +0 -82
- package/es/assets/less/cylon-antd.less +0 -32534
- package/es/assets/less/font.less +0 -50
- package/es/assets/less/global.less +0 -8
- package/es/assets/less/index.less +0 -11
- package/es/assets/less/input.less +0 -8
- package/es/assets/less/menu.less +0 -21
- package/es/assets/less/modal.less +0 -16
- package/es/assets/less/select.less +0 -19
- package/es/assets/less/slider.less +0 -21
- package/es/assets/less/switch.less +0 -20
- package/es/assets/less/table.less +0 -40
- package/es/assets/less/variables.less +0 -4
- package/es/common/AlignSelector/index.js +0 -104
- package/es/common/AlignSelector/index.less +0 -28
- package/es/common/Button/index.js +0 -134
- package/es/common/Button/index.less +0 -68
- package/es/common/ButtonIconLayout/index.js +0 -103
- package/es/common/ButtonIconLayout/index.less +0 -53
- package/es/common/Collapse/index.js +0 -384
- package/es/common/Collapse/index.less +0 -97
- package/es/common/ColorPicker/imgs/no-color.png +0 -0
- package/es/common/ColorPicker/index.js +0 -131
- package/es/common/ColorPicker/index.less +0 -26
- package/es/common/ColorPickerInput/imgs/code.png +0 -0
- package/es/common/ColorPickerInput/index.js +0 -114
- package/es/common/ColorPickerInput/index.less +0 -50
- package/es/common/CountDown/index.js +0 -151
- package/es/common/CountDown/index.less +0 -23
- package/es/common/Field/index.js +0 -80
- package/es/common/Field/index.less +0 -37
- package/es/common/FontStyles/index.js +0 -178
- package/es/common/FontStyles/index.less +0 -63
- package/es/common/GroupList/defaultImg.png +0 -0
- package/es/common/GroupList/index.js +0 -210
- package/es/common/GroupList/index.less +0 -85
- package/es/common/IconPicker/index.js +0 -147
- package/es/common/IconPicker/index.less +0 -46
- package/es/common/Iconfont/index.js +0 -148
- package/es/common/Iconfont/index.less +0 -20
- package/es/common/ImageModal/CommonModal/const.js +0 -22
- package/es/common/ImageModal/CommonModal/index.js +0 -46
- package/es/common/ImageModal/CommonSelPicCard/index.js +0 -80
- package/es/common/ImageModal/CommonSelPicCard/index.less +0 -40
- package/es/common/ImageModal/const.js +0 -24
- package/es/common/ImageModal/index.js +0 -748
- package/es/common/ImageModal/index.less +0 -21
- package/es/common/ImagePicker/index.js +0 -162
- package/es/common/ImagePicker/index.less +0 -104
- package/es/common/InputNumber/index.js +0 -91
- package/es/common/InputNumber/index.less +0 -33
- 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 +0 -111
- package/es/common/LayoutSelector/index.less +0 -34
- package/es/common/LinkModal/CatgTable/index.js +0 -234
- package/es/common/LinkModal/CouponTable/index.js +0 -299
- package/es/common/LinkModal/CustomTable/index.js +0 -227
- package/es/common/LinkModal/FilteredProductModal/index.js +0 -640
- package/es/common/LinkModal/FilteredProductModal/index.less +0 -113
- package/es/common/LinkModal/FunctionTable/index.js +0 -221
- package/es/common/LinkModal/ProductDetailPage/index.js +0 -433
- package/es/common/LinkModal/ProductDetailPage/index.less +0 -21
- package/es/common/LinkModal/index.js +0 -136
- package/es/common/LinkModal/index.less +0 -108
- package/es/common/NewImg/index.js +0 -165
- package/es/common/NewImg/index.less +0 -0
- package/es/common/ProductModal/index.js +0 -760
- package/es/common/ProductModal/index.less +0 -238
- package/es/common/ProductSource/index.js +0 -250
- package/es/common/ProductSource/index.less +0 -12
- package/es/common/RcCollapse/Collapse.js +0 -240
- package/es/common/RcCollapse/Panel.js +0 -193
- package/es/common/RcCollapse/PanelContent.js +0 -59
- package/es/common/RcCollapse/index.js +0 -15
- package/es/common/RcCollapse/index.less +0 -108
- package/es/common/RcCollapse/interface.js +0 -1
- package/es/common/RcCollapse/motion.less +0 -12
- package/es/common/RcCollapse/motionUtil.js +0 -44
- package/es/common/Slider/index.js +0 -151
- package/es/common/Slider/index.less +0 -45
- package/es/common/SwitchCollapse/index.js +0 -216
- package/es/common/SwitchCollapse/index.less +0 -40
- package/es/common/UrlPicker/index.js +0 -119
- package/es/common/UrlPicker/index.less +0 -72
- package/es/common/index.js +0 -127
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +0 -268
- package/es/composite-comp/bol/components/Banner/index.js +0 -89
- package/es/composite-comp/bol/components/Button/defaultJSON.js +0 -114
- package/es/composite-comp/bol/components/Button/index.js +0 -0
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +0 -295
- package/es/composite-comp/bol/components/Divider/defaultJSON.js +0 -47
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +0 -74
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +0 -546
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +0 -135
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +0 -112
- package/es/composite-comp/bol/components/Text/defaultJSON.js +0 -149
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +0 -183
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +0 -220
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +0 -56
- package/es/constants/component-types.js +0 -87
- package/es/constants/index.js +0 -144
- package/es/constants/layout.js +0 -120
- package/es/core/Designer/CompListPanel/index.js +0 -156
- package/es/core/Designer/CompListPanel/index.less +0 -69
- package/es/core/Designer/ConfigPanel/index.js +0 -294
- package/es/core/Designer/ConfigPanel/index.less +0 -139
- package/es/core/Designer/History/index.js +0 -91
- package/es/core/Designer/PageCompList/index.js +0 -266
- package/es/core/Designer/PageCompList/index.less +0 -114
- package/es/core/Designer/QuickMenuBar/index.js +0 -176
- package/es/core/Designer/QuickMenuBar/index.less +0 -67
- package/es/core/Designer/ViewArea/index.js +0 -150
- package/es/core/Designer/ViewArea/index.less +0 -53
- package/es/core/Designer/index.js +0 -454
- package/es/core/Designer/index.less +0 -6
- package/es/core/Renderer/index.js +0 -82
- package/es/decorator/compositeDecorator.js +0 -130
- package/es/decorator/index.js +0 -23
- package/es/decorator/metaDecorator.js +0 -199
- package/es/index.js +0 -27
- package/es/meta-comp/components/Button/index.js +0 -189
- package/es/meta-comp/components/Button/index.less +0 -19
- package/es/meta-comp/components/Image/index.js +0 -183
- package/es/meta-comp/components/Text/index.js +0 -478
- package/es/meta-comp/components/index.js +0 -31
- package/es/meta-comp/config-panels/BaseConfig.js +0 -87
- package/es/meta-comp/config-panels/ButtonConfig/index.js +0 -356
- package/es/meta-comp/config-panels/ImageConfig/index.js +0 -395
- package/es/meta-comp/config-panels/TextConfig/index.js +0 -358
- package/es/mobx/Store.js +0 -95
- package/es/mobx/index.js +0 -36
- package/es/utils/androidUtil.js +0 -113
- package/es/utils/businessUtil.js +0 -235
- package/es/utils/commonUtil.js +0 -289
- package/es/utils/compJsonUtil.js +0 -240
- package/es/utils/coreUtil.js +0 -156
- package/es/utils/currencyUtil.js +0 -190
- package/es/utils/dataTreeUtils.js +0 -105
- package/es/utils/dateUtil.js +0 -70
- package/es/utils/storeUtil.js +0 -258
- 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 +0 -299
- package/lib/assets/fonts/magic-box-iconfont.css.bak +0 -299
- package/lib/assets/fonts/magic-box-iconfont.js +0 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +0 -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/icon/index.js +0 -68
- 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 +0 -4
- 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 +0 -18
- package/lib/assets/images/layout-icon/layout-imagetext-m3-2.svg +0 -9
- 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 +0 -7
- package/lib/assets/less/button.less +0 -9
- package/lib/assets/less/common.less +0 -82
- package/lib/assets/less/cylon-antd.less +0 -32534
- package/lib/assets/less/font.less +0 -50
- package/lib/assets/less/global.less +0 -8
- package/lib/assets/less/index.less +0 -11
- package/lib/assets/less/input.less +0 -8
- package/lib/assets/less/menu.less +0 -21
- package/lib/assets/less/modal.less +0 -16
- package/lib/assets/less/select.less +0 -19
- package/lib/assets/less/slider.less +0 -21
- package/lib/assets/less/switch.less +0 -20
- package/lib/assets/less/table.less +0 -40
- package/lib/assets/less/variables.less +0 -4
- package/lib/common/AlignSelector/index.js +0 -104
- package/lib/common/AlignSelector/index.less +0 -28
- package/lib/common/Button/index.js +0 -134
- package/lib/common/Button/index.less +0 -68
- package/lib/common/ButtonIconLayout/index.js +0 -103
- package/lib/common/ButtonIconLayout/index.less +0 -53
- package/lib/common/Collapse/index.js +0 -384
- package/lib/common/Collapse/index.less +0 -97
- package/lib/common/ColorPicker/imgs/no-color.png +0 -0
- package/lib/common/ColorPicker/index.js +0 -131
- package/lib/common/ColorPicker/index.less +0 -26
- package/lib/common/ColorPickerInput/imgs/code.png +0 -0
- package/lib/common/ColorPickerInput/index.js +0 -114
- package/lib/common/ColorPickerInput/index.less +0 -50
- package/lib/common/CountDown/index.js +0 -151
- package/lib/common/CountDown/index.less +0 -23
- package/lib/common/Field/index.js +0 -80
- package/lib/common/Field/index.less +0 -37
- package/lib/common/FontStyles/index.js +0 -178
- package/lib/common/FontStyles/index.less +0 -63
- package/lib/common/GroupList/defaultImg.png +0 -0
- package/lib/common/GroupList/index.js +0 -210
- package/lib/common/GroupList/index.less +0 -85
- package/lib/common/IconPicker/index.js +0 -147
- package/lib/common/IconPicker/index.less +0 -46
- package/lib/common/Iconfont/index.js +0 -148
- package/lib/common/Iconfont/index.less +0 -20
- package/lib/common/ImageModal/CommonModal/const.js +0 -22
- package/lib/common/ImageModal/CommonModal/index.js +0 -46
- package/lib/common/ImageModal/CommonSelPicCard/index.js +0 -80
- package/lib/common/ImageModal/CommonSelPicCard/index.less +0 -40
- package/lib/common/ImageModal/const.js +0 -24
- package/lib/common/ImageModal/index.js +0 -748
- package/lib/common/ImageModal/index.less +0 -21
- package/lib/common/ImagePicker/index.js +0 -162
- package/lib/common/ImagePicker/index.less +0 -104
- package/lib/common/InputNumber/index.js +0 -91
- package/lib/common/InputNumber/index.less +0 -33
- 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 +0 -111
- package/lib/common/LayoutSelector/index.less +0 -34
- package/lib/common/LinkModal/CatgTable/index.js +0 -234
- package/lib/common/LinkModal/CouponTable/index.js +0 -299
- package/lib/common/LinkModal/CustomTable/index.js +0 -227
- package/lib/common/LinkModal/FilteredProductModal/index.js +0 -640
- package/lib/common/LinkModal/FilteredProductModal/index.less +0 -113
- package/lib/common/LinkModal/FunctionTable/index.js +0 -221
- package/lib/common/LinkModal/ProductDetailPage/index.js +0 -433
- package/lib/common/LinkModal/ProductDetailPage/index.less +0 -21
- package/lib/common/LinkModal/index.js +0 -136
- package/lib/common/LinkModal/index.less +0 -108
- package/lib/common/NewImg/index.js +0 -165
- package/lib/common/NewImg/index.less +0 -0
- package/lib/common/ProductModal/index.js +0 -760
- package/lib/common/ProductModal/index.less +0 -238
- package/lib/common/ProductSource/index.js +0 -250
- package/lib/common/ProductSource/index.less +0 -12
- package/lib/common/RcCollapse/Collapse.js +0 -240
- package/lib/common/RcCollapse/Panel.js +0 -193
- package/lib/common/RcCollapse/PanelContent.js +0 -59
- package/lib/common/RcCollapse/index.js +0 -15
- package/lib/common/RcCollapse/index.less +0 -108
- package/lib/common/RcCollapse/interface.js +0 -1
- package/lib/common/RcCollapse/motion.less +0 -12
- package/lib/common/RcCollapse/motionUtil.js +0 -44
- package/lib/common/Slider/index.js +0 -151
- package/lib/common/Slider/index.less +0 -45
- package/lib/common/SwitchCollapse/index.js +0 -216
- package/lib/common/SwitchCollapse/index.less +0 -40
- package/lib/common/UrlPicker/index.js +0 -119
- package/lib/common/UrlPicker/index.less +0 -72
- package/lib/common/index.js +0 -127
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +0 -268
- package/lib/composite-comp/bol/components/Banner/index.js +0 -89
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +0 -114
- package/lib/composite-comp/bol/components/Button/index.js +0 -103
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +0 -295
- package/lib/composite-comp/bol/components/Divider/defaultJSON.js +0 -47
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +0 -74
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +0 -546
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +0 -135
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +0 -112
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +0 -149
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +0 -183
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +0 -220
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +0 -56
- package/lib/constants/component-types.js +0 -87
- package/lib/constants/index.js +0 -144
- package/lib/constants/layout.js +0 -120
- package/lib/core/Designer/CompListPanel/index.js +0 -156
- package/lib/core/Designer/CompListPanel/index.less +0 -69
- package/lib/core/Designer/ConfigPanel/index.js +0 -294
- package/lib/core/Designer/ConfigPanel/index.less +0 -139
- package/lib/core/Designer/History/index.js +0 -91
- package/lib/core/Designer/PageCompList/index.js +0 -266
- package/lib/core/Designer/PageCompList/index.less +0 -114
- package/lib/core/Designer/QuickMenuBar/index.js +0 -176
- package/lib/core/Designer/QuickMenuBar/index.less +0 -67
- package/lib/core/Designer/ViewArea/index.js +0 -150
- package/lib/core/Designer/ViewArea/index.less +0 -53
- package/lib/core/Designer/index.js +0 -454
- package/lib/core/Designer/index.less +0 -6
- package/lib/core/Renderer/index.js +0 -82
- package/lib/decorator/compositeDecorator.js +0 -130
- package/lib/decorator/index.js +0 -23
- package/lib/decorator/metaDecorator.js +0 -199
- package/lib/index.js +0 -27
- package/lib/meta-comp/components/Button/index.js +0 -189
- package/lib/meta-comp/components/Button/index.less +0 -0
- package/lib/meta-comp/components/Image/index.js +0 -183
- package/lib/meta-comp/components/Text/index.js +0 -478
- package/lib/meta-comp/components/index.js +0 -31
- package/lib/meta-comp/config-panels/BaseConfig.js +0 -87
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +0 -356
- package/lib/meta-comp/config-panels/ImageConfig/index.js +0 -395
- package/lib/meta-comp/config-panels/TextConfig/index.js +0 -358
- package/lib/mobx/Store.js +0 -95
- package/lib/mobx/index.js +0 -36
- package/lib/utils/androidUtil.js +0 -113
- package/lib/utils/businessUtil.js +0 -235
- package/lib/utils/commonUtil.js +0 -289
- package/lib/utils/compJsonUtil.js +0 -240
- package/lib/utils/coreUtil.js +0 -156
- package/lib/utils/currencyUtil.js +0 -190
- package/lib/utils/dataTreeUtils.js +0 -105
- package/lib/utils/dateUtil.js +0 -70
- package/lib/utils/storeUtil.js +0 -258
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
import { extends as _extends } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import { __awaiter, __generator, __spreadArray, __assign } from '../../../../my_node_modules/tslib/tslib.es6.js';
|
|
3
|
+
import { Tree, Input, Row, Col, Upload, Button, Card, Spin, Pagination, message } from 'antd';
|
|
4
|
+
import findIndex_1 from '../../../../my_node_modules/lodash/findIndex.js';
|
|
5
|
+
import isEmpty_1 from '../../../../my_node_modules/lodash/isEmpty.js';
|
|
6
|
+
import React__default, { useState, useEffect } from 'react';
|
|
7
|
+
import CommonModal from './CommonModal/index.js';
|
|
8
|
+
import { size } from './CommonModal/const.js';
|
|
9
|
+
import CommonSelPicCard from './CommonSelPicCard/index.js';
|
|
10
|
+
import { contentCatgTypeMap, catgType } from './const.js';
|
|
11
|
+
import Iconfont from '../Iconfont/index.js';
|
|
12
|
+
import './index.less.js';
|
|
13
|
+
import { checkFileName, commonFetch } from '../../utils/commonUtil.js';
|
|
14
|
+
import treeUtils from '../../utils/dataTreeUtils.js';
|
|
15
|
+
|
|
16
|
+
var TreeNode = Tree.TreeNode;
|
|
17
|
+
var modalSize = size;
|
|
18
|
+
var Search = Input.Search;
|
|
19
|
+
var picAccept = '.gif,.jpg,.png';
|
|
20
|
+
var videoAccept = '.AVI,.mov,.rmvb,.rm,.FLV,.mp4,.3GP';
|
|
21
|
+
var pageSize = 24;
|
|
22
|
+
|
|
23
|
+
function ImageModal(_a) {
|
|
24
|
+
var _this = this;
|
|
25
|
+
|
|
26
|
+
var onCancel = _a.onCancel,
|
|
27
|
+
visible = _a.visible,
|
|
28
|
+
onOk = _a.onOk,
|
|
29
|
+
_b = _a.maxCount,
|
|
30
|
+
maxCount = _b === void 0 ? 1 : _b,
|
|
31
|
+
_c = _a.type,
|
|
32
|
+
type = _c === void 0 ? contentCatgTypeMap.PICTURE : _c;
|
|
33
|
+
|
|
34
|
+
var _d = useState([]),
|
|
35
|
+
treeData = _d[0],
|
|
36
|
+
setTreeData = _d[1];
|
|
37
|
+
|
|
38
|
+
var _e = useState(['-1']),
|
|
39
|
+
selectedKeys = _e[0],
|
|
40
|
+
setSelectedKeys = _e[1];
|
|
41
|
+
|
|
42
|
+
var _f = useState([]),
|
|
43
|
+
selectedPics = _f[0],
|
|
44
|
+
setSelectedPics = _f[1];
|
|
45
|
+
|
|
46
|
+
var _g = useState([]),
|
|
47
|
+
contents = _g[0],
|
|
48
|
+
setContents = _g[1];
|
|
49
|
+
|
|
50
|
+
var _h = useState(0),
|
|
51
|
+
total = _h[0],
|
|
52
|
+
setTotal = _h[1];
|
|
53
|
+
|
|
54
|
+
var _j = useState(1),
|
|
55
|
+
pageIndex = _j[0],
|
|
56
|
+
setPageIndex = _j[1];
|
|
57
|
+
|
|
58
|
+
var _k = useState(false),
|
|
59
|
+
spinning = _k[0],
|
|
60
|
+
setSpinning = _k[1];
|
|
61
|
+
|
|
62
|
+
var _l = useState(''),
|
|
63
|
+
name = _l[0],
|
|
64
|
+
setName = _l[1];
|
|
65
|
+
|
|
66
|
+
var _m = useState([]),
|
|
67
|
+
contentcatgsList = _m[0],
|
|
68
|
+
setContentcatgsList = _m[1];
|
|
69
|
+
|
|
70
|
+
var _o = useState(''),
|
|
71
|
+
searchValue = _o[0],
|
|
72
|
+
setSearchValue = _o[1];
|
|
73
|
+
|
|
74
|
+
var _p = useState([]),
|
|
75
|
+
expandedKeys = _p[0],
|
|
76
|
+
setExpandedKeys = _p[1];
|
|
77
|
+
|
|
78
|
+
var _q = useState(true),
|
|
79
|
+
autoExpandParent = _q[0],
|
|
80
|
+
setAutoExpandParent = _q[1]; // const currentUser = sessionUtil.getUser() || {};
|
|
81
|
+
// const { _csrf } = currentUser;
|
|
82
|
+
// const headers = {};
|
|
83
|
+
// if (_csrf && _csrf.headerName) {
|
|
84
|
+
// headers[_csrf.headerName] = _csrf.token;
|
|
85
|
+
// }
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
var headers = {};
|
|
89
|
+
headers['X-CSRF-TOKEN'] = localStorage.getItem('X-CSRF-TOKEN') || '';
|
|
90
|
+
headers.accessToken = localStorage.getItem('X-CSRF-TOKEN') || ''; // 查询图片库类目下的图片列表
|
|
91
|
+
|
|
92
|
+
var qryImageContents = function (data) {
|
|
93
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
94
|
+
var extreParams, res, newContentData_1;
|
|
95
|
+
return __generator(this, function (_a) {
|
|
96
|
+
switch (_a.label) {
|
|
97
|
+
case 0:
|
|
98
|
+
extreParams = {};
|
|
99
|
+
|
|
100
|
+
if (data && "".concat(data.contentCatgId) === '-1') {
|
|
101
|
+
extreParams.contentType = 'File';
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return [4
|
|
105
|
+
/*yield*/
|
|
106
|
+
, commonFetch("".concat(window.magicDesign.MBaseUrl, "/contents"), __assign(__assign({
|
|
107
|
+
pageIndex: pageIndex,
|
|
108
|
+
pageSize: pageSize,
|
|
109
|
+
pageTotal: false,
|
|
110
|
+
name: name,
|
|
111
|
+
catgType: type === contentCatgTypeMap.PICTURE ? catgType.PICTURE : catgType.VIDEO
|
|
112
|
+
}, data), extreParams), 'GET')];
|
|
113
|
+
|
|
114
|
+
case 1:
|
|
115
|
+
res = _a.sent();
|
|
116
|
+
|
|
117
|
+
if (res) {
|
|
118
|
+
newContentData_1 = [];
|
|
119
|
+
(res.list || []).forEach(function (item) {
|
|
120
|
+
newContentData_1.push({
|
|
121
|
+
contentId: item.uid,
|
|
122
|
+
contentTitle: item.name,
|
|
123
|
+
url: item.oriUrl ? item.oriUrl : item.url,
|
|
124
|
+
imgUrl: item.imgUrl,
|
|
125
|
+
contentType: item.contentType
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
setTotal(res.total);
|
|
129
|
+
setContents(newContentData_1);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
setSpinning(false);
|
|
133
|
+
return [2
|
|
134
|
+
/*return*/
|
|
135
|
+
];
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
}; // const qryImageContents = useFetch(
|
|
140
|
+
// data => {
|
|
141
|
+
// const extreParams = {};
|
|
142
|
+
// if (data && `${data.contentCatgId}` === '-1') {
|
|
143
|
+
// extreParams.contentType = 'File';
|
|
144
|
+
// }
|
|
145
|
+
// return {
|
|
146
|
+
// url: `${window.magicDesign.MBaseUrl}/contents`,
|
|
147
|
+
// params: {
|
|
148
|
+
// pageIndex,
|
|
149
|
+
// pageSize,
|
|
150
|
+
// pageTotal: false,
|
|
151
|
+
// name,
|
|
152
|
+
// catgType: type === contentCatgTypeMap.PICTURE ? catgType.PICTURE : catgType.VIDEO,
|
|
153
|
+
// ...data,
|
|
154
|
+
// ...extreParams,
|
|
155
|
+
// },
|
|
156
|
+
// };
|
|
157
|
+
// },
|
|
158
|
+
// {
|
|
159
|
+
// manual: true,
|
|
160
|
+
// onSuccess: data => {
|
|
161
|
+
// if (data) {
|
|
162
|
+
// const newContentData = [];
|
|
163
|
+
// (data.list || []).forEach(item => {
|
|
164
|
+
// newContentData.push({
|
|
165
|
+
// contentId: item.uid,
|
|
166
|
+
// contentTitle: item.name,
|
|
167
|
+
// url: item.url,
|
|
168
|
+
// imgUrl: item.imgUrl,
|
|
169
|
+
// contentType: item.contentType,
|
|
170
|
+
// });
|
|
171
|
+
// });
|
|
172
|
+
// setTotal(data.total);
|
|
173
|
+
// setContents(newContentData);
|
|
174
|
+
// }
|
|
175
|
+
// setSpinning(false);
|
|
176
|
+
// },
|
|
177
|
+
// }
|
|
178
|
+
// );
|
|
179
|
+
// 查询图片库类目
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
var getContentCatgs = function () {
|
|
183
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
184
|
+
var data, mapProps, newData;
|
|
185
|
+
return __generator(this, function (_a) {
|
|
186
|
+
switch (_a.label) {
|
|
187
|
+
case 0:
|
|
188
|
+
return [4
|
|
189
|
+
/*yield*/
|
|
190
|
+
, commonFetch("".concat(window.magicDesign.MBaseUrl, "/contentcatgs"), {
|
|
191
|
+
catgType: type === contentCatgTypeMap.PICTURE ? catgType.PICTURE : catgType.VIDEO
|
|
192
|
+
}, 'GET')];
|
|
193
|
+
|
|
194
|
+
case 1:
|
|
195
|
+
data = _a.sent();
|
|
196
|
+
mapProps = {
|
|
197
|
+
value: 'contentCatgId',
|
|
198
|
+
title: 'contentCatgName'
|
|
199
|
+
};
|
|
200
|
+
setContentcatgsList(__spreadArray([{
|
|
201
|
+
value: '-1',
|
|
202
|
+
title: 'Default',
|
|
203
|
+
contentCatgName: 'Default'
|
|
204
|
+
}], data, true));
|
|
205
|
+
newData = treeUtils.translateDataToTree(data || [], 'contentCatgId', 'parentCatgId', mapProps);
|
|
206
|
+
newData.unshift({
|
|
207
|
+
value: '-1',
|
|
208
|
+
title: 'Default',
|
|
209
|
+
contentCatgName: 'Default'
|
|
210
|
+
});
|
|
211
|
+
setTreeData(newData);
|
|
212
|
+
setSelectedKeys(['-1']);
|
|
213
|
+
qryImageContents({
|
|
214
|
+
contentCatgId: '-1'
|
|
215
|
+
});
|
|
216
|
+
return [2
|
|
217
|
+
/*return*/
|
|
218
|
+
];
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
useEffect(function () {
|
|
225
|
+
getContentCatgs();
|
|
226
|
+
}, []);
|
|
227
|
+
|
|
228
|
+
var selectFolder = function (id) {
|
|
229
|
+
setSelectedKeys(["".concat(id)]);
|
|
230
|
+
var filterArr = (expandedKeys || []).filter(function (val) {
|
|
231
|
+
return val === "".concat(id);
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
if (!(filterArr && filterArr.length)) {
|
|
235
|
+
setAutoExpandParent(true);
|
|
236
|
+
setExpandedKeys(__spreadArray(__spreadArray([], expandedKeys, true), ["".concat(id)], false));
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
setPageIndex(1);
|
|
240
|
+
qryImageContents({
|
|
241
|
+
contentCatgId: id,
|
|
242
|
+
pageIndex: 1
|
|
243
|
+
});
|
|
244
|
+
}; // 选择类目上某个节点
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
var onSelect = function (record) {
|
|
248
|
+
if (!(record && record.length)) {
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
setSelectedKeys(record);
|
|
253
|
+
setPageIndex(1);
|
|
254
|
+
qryImageContents({
|
|
255
|
+
contentCatgId: record[0],
|
|
256
|
+
pageIndex: 1
|
|
257
|
+
});
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
var onUpload = function (data) {
|
|
261
|
+
return fetch('/operation/v1/upload/contents', {
|
|
262
|
+
method: 'POST',
|
|
263
|
+
body: data,
|
|
264
|
+
headers: headers
|
|
265
|
+
}).then(function () {
|
|
266
|
+
setSpinning(false);
|
|
267
|
+
});
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
var handleUpload = function (file) {
|
|
271
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
272
|
+
var form, result;
|
|
273
|
+
return __generator(this, function (_a) {
|
|
274
|
+
switch (_a.label) {
|
|
275
|
+
case 0:
|
|
276
|
+
if (catgType === contentCatgTypeMap.PICTURE) {
|
|
277
|
+
if (file.type.indexOf('image/') < 0) {
|
|
278
|
+
return [2
|
|
279
|
+
/*return*/
|
|
280
|
+
, false];
|
|
281
|
+
}
|
|
282
|
+
} else if (catgType === contentCatgTypeMap.VIDEO) {
|
|
283
|
+
if (file.type.indexOf('video/') < 0) {
|
|
284
|
+
return [2
|
|
285
|
+
/*return*/
|
|
286
|
+
, false];
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
form = new FormData();
|
|
291
|
+
form.append('file', file); // 文件对象
|
|
292
|
+
|
|
293
|
+
form.append('path', file.path && file.path.indexOf('/') > -1 ? file.path : ''); // 文件路径
|
|
294
|
+
|
|
295
|
+
form.append('contentCatgId', selectedKeys[0]); // 文件对象
|
|
296
|
+
|
|
297
|
+
form.append('catgType', type); // 文件类型
|
|
298
|
+
|
|
299
|
+
return [4
|
|
300
|
+
/*yield*/
|
|
301
|
+
, onUpload(form)];
|
|
302
|
+
|
|
303
|
+
case 1:
|
|
304
|
+
result = _a.sent();
|
|
305
|
+
return [2
|
|
306
|
+
/*return*/
|
|
307
|
+
, result];
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
});
|
|
311
|
+
}; // 自定义上传
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
var beforeUpload = function (file) {
|
|
315
|
+
if (!checkFileName(file.name)) {
|
|
316
|
+
message.error("File name cannot have '/' '\\' ',' special characters");
|
|
317
|
+
return false;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
setSpinning(true);
|
|
321
|
+
handleUpload(file).then(function (result) {
|
|
322
|
+
if (result !== false) {
|
|
323
|
+
// 上传成功刷新表格
|
|
324
|
+
qryImageContents({
|
|
325
|
+
contentCatgId: selectedKeys[0],
|
|
326
|
+
name: '',
|
|
327
|
+
pageIndex: 1
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
return false;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
var getParentKey = function (key, tree) {
|
|
335
|
+
var parentKey;
|
|
336
|
+
|
|
337
|
+
for (var i = 0; i < tree.length; i += 1) {
|
|
338
|
+
var node = tree[i];
|
|
339
|
+
|
|
340
|
+
if (node.children) {
|
|
341
|
+
if (node.children.some(function (item) {
|
|
342
|
+
return "".concat(item.value) === key;
|
|
343
|
+
})) {
|
|
344
|
+
parentKey = node.value;
|
|
345
|
+
} else if (getParentKey(key, node.children)) {
|
|
346
|
+
parentKey = getParentKey(key, node.children);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
return parentKey;
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
var onChange = function (e) {
|
|
355
|
+
var value = e.target.value;
|
|
356
|
+
var newKeys = (contentcatgsList || []).map(function (item) {
|
|
357
|
+
if ((item.contentCatgName || '').toLowerCase().indexOf((value || '').toLowerCase()) > -1) {
|
|
358
|
+
return getParentKey("".concat(item.contentCatgId), treeData);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
return null;
|
|
362
|
+
}).filter(function (item, i, self) {
|
|
363
|
+
return item && self.indexOf(item) === i;
|
|
364
|
+
});
|
|
365
|
+
setSearchValue(value);
|
|
366
|
+
setExpandedKeys(newKeys);
|
|
367
|
+
setAutoExpandParent(true);
|
|
368
|
+
}; // 分页信息
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
var pagination = {
|
|
372
|
+
current: pageIndex,
|
|
373
|
+
pageSize: pageSize,
|
|
374
|
+
total: total,
|
|
375
|
+
onChange: function (page) {
|
|
376
|
+
setPageIndex(page);
|
|
377
|
+
qryImageContents({
|
|
378
|
+
contentCatgId: selectedKeys[0],
|
|
379
|
+
pageIndex: page
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
var onSelectPic = function (e, content) {
|
|
385
|
+
var checked = e.target.checked; // 单选
|
|
386
|
+
|
|
387
|
+
if (maxCount === 1) {
|
|
388
|
+
if (checked) {
|
|
389
|
+
setSelectedPics([]);
|
|
390
|
+
} else {
|
|
391
|
+
setSelectedPics([content]);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
setSelectedPics(function (pics) {
|
|
396
|
+
var newPics = []; // 多选
|
|
397
|
+
|
|
398
|
+
if (checked) {
|
|
399
|
+
newPics = __spreadArray(__spreadArray([], pics, true), [content], false);
|
|
400
|
+
} else {
|
|
401
|
+
newPics = pics.filter(function (pic) {
|
|
402
|
+
return pic.contentId !== content.contentId;
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
return newPics;
|
|
407
|
+
});
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
var handleSearch = function (value) {
|
|
411
|
+
var newName = value ? value.trim() : '';
|
|
412
|
+
setName(newName);
|
|
413
|
+
setPageIndex(1);
|
|
414
|
+
qryImageContents({
|
|
415
|
+
name: newName,
|
|
416
|
+
pageIndex: 1,
|
|
417
|
+
contentCatgId: selectedKeys[0]
|
|
418
|
+
});
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
var handleExpand = function (keys) {
|
|
422
|
+
// if not set autoExpandParent to false, if children expanded, parent can not collapse.
|
|
423
|
+
// or, you can remove all expanded children keys.
|
|
424
|
+
setAutoExpandParent(false);
|
|
425
|
+
setExpandedKeys(keys);
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
var treeOpts = {
|
|
429
|
+
blockNode: true,
|
|
430
|
+
autoExpandParent: autoExpandParent,
|
|
431
|
+
selectedKeys: selectedKeys,
|
|
432
|
+
expandedKeys: expandedKeys,
|
|
433
|
+
onSelect: onSelect,
|
|
434
|
+
onExpand: handleExpand
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
var renderTreeNodes = function (data) {
|
|
438
|
+
return (data || []).map(function (item) {
|
|
439
|
+
var index = (item.title || '').toLowerCase().indexOf((searchValue || '').toLowerCase());
|
|
440
|
+
var beforeStr = (item.title || '').substr(0, index);
|
|
441
|
+
var afterStr = (item.title || '').substr(index + searchValue.length);
|
|
442
|
+
var title = index > -1 ? /*#__PURE__*/React__default.createElement("span", null, beforeStr, /*#__PURE__*/React__default.createElement("span", {
|
|
443
|
+
style: {
|
|
444
|
+
color: '#f50'
|
|
445
|
+
}
|
|
446
|
+
}, searchValue), afterStr) : /*#__PURE__*/React__default.createElement("span", null, item.title);
|
|
447
|
+
var value = item.value,
|
|
448
|
+
children = item.children;
|
|
449
|
+
|
|
450
|
+
if (children) {
|
|
451
|
+
return /*#__PURE__*/React__default.createElement(TreeNode, {
|
|
452
|
+
key: value,
|
|
453
|
+
title: title
|
|
454
|
+
}, renderTreeNodes(children));
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
return /*#__PURE__*/React__default.createElement(TreeNode, {
|
|
458
|
+
key: value,
|
|
459
|
+
title: title,
|
|
460
|
+
value: value
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
return /*#__PURE__*/React__default.createElement(CommonModal, {
|
|
466
|
+
modalOpts: {
|
|
467
|
+
title: 'Image',
|
|
468
|
+
width: modalSize.LARGE
|
|
469
|
+
},
|
|
470
|
+
onCancel: onCancel,
|
|
471
|
+
onOk: function () {
|
|
472
|
+
return onOk(selectedPics);
|
|
473
|
+
},
|
|
474
|
+
visible: visible
|
|
475
|
+
}, /*#__PURE__*/React__default.createElement(Row, {
|
|
476
|
+
style: {
|
|
477
|
+
marginBottom: 8
|
|
478
|
+
}
|
|
479
|
+
}, /*#__PURE__*/React__default.createElement(Col, {
|
|
480
|
+
span: 3
|
|
481
|
+
}, /*#__PURE__*/React__default.createElement(Upload, {
|
|
482
|
+
accept: type === contentCatgTypeMap.PICTURE ? picAccept : videoAccept,
|
|
483
|
+
action: "/ecommerce/upload/contents",
|
|
484
|
+
beforeUpload: beforeUpload,
|
|
485
|
+
fileList: [],
|
|
486
|
+
headers: headers
|
|
487
|
+
}, /*#__PURE__*/React__default.createElement(Button, null, /*#__PURE__*/React__default.createElement(Iconfont, {
|
|
488
|
+
type: "upload"
|
|
489
|
+
}), "Upload"))), /*#__PURE__*/React__default.createElement(Col, {
|
|
490
|
+
span: 8
|
|
491
|
+
}, /*#__PURE__*/React__default.createElement(Search, {
|
|
492
|
+
enterButton: true,
|
|
493
|
+
onSearch: function (value) {
|
|
494
|
+
return handleSearch(value);
|
|
495
|
+
},
|
|
496
|
+
placeholder: "Please Search"
|
|
497
|
+
}))), /*#__PURE__*/React__default.createElement(Row, null, /*#__PURE__*/React__default.createElement(Col, {
|
|
498
|
+
span: 6
|
|
499
|
+
}, /*#__PURE__*/React__default.createElement(Card, {
|
|
500
|
+
bodyStyle: {
|
|
501
|
+
height: 500,
|
|
502
|
+
overflowY: 'auto'
|
|
503
|
+
},
|
|
504
|
+
className: "catg_tree_container"
|
|
505
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
506
|
+
className: "search_container"
|
|
507
|
+
}, /*#__PURE__*/React__default.createElement(Search, {
|
|
508
|
+
onChange: onChange,
|
|
509
|
+
placeholder: "Keywrods"
|
|
510
|
+
})), /*#__PURE__*/React__default.createElement(Tree, treeOpts, renderTreeNodes(treeData)))), /*#__PURE__*/React__default.createElement(Col, {
|
|
511
|
+
span: 18
|
|
512
|
+
}, /*#__PURE__*/React__default.createElement(Card, {
|
|
513
|
+
bodyStyle: {
|
|
514
|
+
height: 500
|
|
515
|
+
},
|
|
516
|
+
className: "catg_img"
|
|
517
|
+
}, /*#__PURE__*/React__default.createElement(Card, {
|
|
518
|
+
bodyStyle: {
|
|
519
|
+
height: 380,
|
|
520
|
+
overflowX: 'auto'
|
|
521
|
+
}
|
|
522
|
+
}, /*#__PURE__*/React__default.createElement(Spin, {
|
|
523
|
+
spinning: spinning
|
|
524
|
+
}, !isEmpty_1(contents) && contents.map(function (content) {
|
|
525
|
+
return /*#__PURE__*/React__default.createElement(CommonSelPicCard, {
|
|
526
|
+
key: content.contentId,
|
|
527
|
+
checked: findIndex_1(selectedPics || [], function (val) {
|
|
528
|
+
return val.contentId === content.contentId;
|
|
529
|
+
}) > -1,
|
|
530
|
+
content: content,
|
|
531
|
+
onChange: function (e) {
|
|
532
|
+
return onSelectPic(e, content);
|
|
533
|
+
},
|
|
534
|
+
onClick: selectFolder,
|
|
535
|
+
type: type
|
|
536
|
+
});
|
|
537
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
538
|
+
style: {
|
|
539
|
+
float: 'right',
|
|
540
|
+
margin: '16px 0'
|
|
541
|
+
}
|
|
542
|
+
}, /*#__PURE__*/React__default.createElement(Pagination, _extends({
|
|
543
|
+
size: "small"
|
|
544
|
+
}, pagination)))))));
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
export { ImageModal as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import styleInject from '../../../../my_node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = ".catg_tree_container .ant-tree-title {\n max-width: 200px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: inline-block;\n}\n.catg_img .ant-spin-container {\n display: flex;\n flex-wrap: wrap;\n}\n.catg_img .ant-upload-list-item-thumbnail img {\n object-fit: contain;\n}\n";
|
|
4
|
+
styleInject(css_248z);
|
|
5
|
+
|
|
6
|
+
export { css_248z as default };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { __extends } from '../../../../my_node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import './index.less.js';
|
|
4
|
+
import ImageModal from '../ImageModal/index.js';
|
|
5
|
+
import Iconfont from '../Iconfont/index.js';
|
|
6
|
+
|
|
7
|
+
var ImagePicker =
|
|
8
|
+
/** @class */
|
|
9
|
+
function (_super) {
|
|
10
|
+
__extends(ImagePicker, _super);
|
|
11
|
+
|
|
12
|
+
function ImagePicker() {
|
|
13
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
14
|
+
|
|
15
|
+
_this.state = {
|
|
16
|
+
visible: false
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
_this.onChange = function (v) {
|
|
20
|
+
_this.props.onChange(v);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
_this.onModalOk = function (data) {
|
|
24
|
+
// setContents(params => {
|
|
25
|
+
// const uids = params.map(param => param.contentId);
|
|
26
|
+
// const newContents = [...params, ...data.filter(el => !uids.includes(el.contentId))];
|
|
27
|
+
// if (onChange) {
|
|
28
|
+
// onChange(newContents);
|
|
29
|
+
// }
|
|
30
|
+
// return newContents;
|
|
31
|
+
// });
|
|
32
|
+
_this.setState({
|
|
33
|
+
visible: false
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
37
|
+
console.log('---', data);
|
|
38
|
+
|
|
39
|
+
_this.props.onChange(data[0]);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return _this;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
ImagePicker.prototype.render = function () {
|
|
47
|
+
var _this = this;
|
|
48
|
+
|
|
49
|
+
var visible = this.state.visible;
|
|
50
|
+
var value = this.props.value;
|
|
51
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
52
|
+
className: "m-image-picker"
|
|
53
|
+
}, value ? /*#__PURE__*/React__default.createElement("div", {
|
|
54
|
+
className: "img-wrap",
|
|
55
|
+
onClick: function () {
|
|
56
|
+
_this.setState({
|
|
57
|
+
visible: true
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
61
|
+
src: value
|
|
62
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
63
|
+
className: "btn-icons-modal",
|
|
64
|
+
onClick: function (e) {
|
|
65
|
+
return e.stopPropagation();
|
|
66
|
+
}
|
|
67
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
68
|
+
className: "btn-edit",
|
|
69
|
+
onClick: function () {
|
|
70
|
+
_this.setState({
|
|
71
|
+
visible: true
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}, /*#__PURE__*/React__default.createElement(Iconfont, {
|
|
75
|
+
color: "#fff",
|
|
76
|
+
onClick: function () {},
|
|
77
|
+
size: 25,
|
|
78
|
+
type: "icon-setting"
|
|
79
|
+
}), "Edit"), /*#__PURE__*/React__default.createElement("span", {
|
|
80
|
+
className: "line"
|
|
81
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
82
|
+
className: "btn-del",
|
|
83
|
+
onClick: function () {
|
|
84
|
+
_this.props.onChange('');
|
|
85
|
+
}
|
|
86
|
+
}, /*#__PURE__*/React__default.createElement(Iconfont, {
|
|
87
|
+
color: "#fff",
|
|
88
|
+
onClick: function () {},
|
|
89
|
+
size: 25,
|
|
90
|
+
type: "icon-delete1"
|
|
91
|
+
}), "Delete"))) : /*#__PURE__*/React__default.createElement("div", {
|
|
92
|
+
className: "no-img"
|
|
93
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
94
|
+
className: "hint-txt"
|
|
95
|
+
}, "Looks like you don't have any images in your gallery. Choose images to feature on this page."), /*#__PURE__*/React__default.createElement("div", {
|
|
96
|
+
className: "pick-btn",
|
|
97
|
+
onClick: function () {
|
|
98
|
+
_this.setState({
|
|
99
|
+
visible: true
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}, /*#__PURE__*/React__default.createElement(Iconfont, {
|
|
103
|
+
color: "#FFFFFF",
|
|
104
|
+
size: 18,
|
|
105
|
+
type: "icon-add"
|
|
106
|
+
}), /*#__PURE__*/React__default.createElement("p", null, "Add Image"))), visible && /*#__PURE__*/React__default.createElement(ImageModal, {
|
|
107
|
+
onCancel: function () {
|
|
108
|
+
_this.setState({
|
|
109
|
+
visible: false
|
|
110
|
+
});
|
|
111
|
+
},
|
|
112
|
+
onOk: this.onModalOk,
|
|
113
|
+
visible: true
|
|
114
|
+
}));
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
ImagePicker.defaultProps = {
|
|
118
|
+
value: '',
|
|
119
|
+
onChange: function () {}
|
|
120
|
+
};
|
|
121
|
+
return ImagePicker;
|
|
122
|
+
}(React__default.Component);
|
|
123
|
+
|
|
124
|
+
export { ImagePicker as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import styleInject from '../../../../my_node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = ".m-image-picker {\n padding-bottom: 12px;\n border-bottom: 1px dashed #D2D9E5;\n width: 100%;\n margin-bottom: 16px;\n cursor: pointer;\n}\n.m-image-picker .no-img .hint-txt {\n font-family: 'Open Sans';\n font-style: normal;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n color: #232F46;\n margin-bottom: 12px;\n}\n.m-image-picker .no-img .pick-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #2F54EB;\n height: 48px;\n border-radius: 8px;\n color: #FFFFFF;\n cursor: pointer;\n}\n.m-image-picker .no-img .pick-btn > p {\n margin-left: 12px;\n font-family: 'Open Sans';\n font-weight: 600;\n font-size: 16px;\n margin-bottom: 0;\n}\n.m-image-picker .img-wrap {\n width: 100%;\n height: 140px;\n position: relative;\n}\n.m-image-picker .img-wrap:hover .btn-icons-modal {\n display: flex;\n transition: all 0.25s;\n}\n.m-image-picker .img-wrap .btn-icons-modal {\n display: none;\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n font-family: 'Open Sans';\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n line-height: 24px;\n color: #FFFFFF;\n background: rgba(35, 47, 70, 0.6);\n align-items: center;\n justify-content: center;\n}\n.m-image-picker .img-wrap .btn-icons-modal .btn-edit {\n display: flex;\n align-items: center;\n margin-right: 20px;\n cursor: pointer;\n}\n.m-image-picker .img-wrap .btn-icons-modal .btn-edit > span {\n margin-right: 5px;\n}\n.m-image-picker .img-wrap .btn-icons-modal .btn-del {\n display: flex;\n align-items: center;\n margin-left: 20px;\n cursor: pointer;\n}\n.m-image-picker .img-wrap .btn-icons-modal .btn-del > span {\n margin-right: 5px;\n}\n.m-image-picker .img-wrap .btn-icons-modal .line {\n display: inline-block;\n width: 1px;\n height: 16px;\n background: rgba(255, 255, 255, 0.5);\n}\n.m-image-picker .img-wrap > img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n}\n";
|
|
4
|
+
styleInject(css_248z);
|
|
5
|
+
|
|
6
|
+
export { css_248z as default };
|