easy-elplus 1.0.1 → 1.2.0
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/README.md +2 -1
- package/dist/index.full.js +4430 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/index.mjs +35 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_DataView.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Hash.mjs +32 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.mjs +32 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Map.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.mjs +32 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Promise.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Set.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Stack.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_apply.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.mjs +25 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.mjs +42 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.mjs +28 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.mjs +25 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.mjs +140 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFlatten.mjs +35 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGet.mjs +24 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.mjs +28 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.mjs +47 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.mjs +60 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.mjs +33 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSlice.mjs +31 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.mjs +34 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.mjs +14 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnset.mjs +65 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_castPath.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.mjs +30 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.mjs +17 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.mjs +38 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_customOmitClone.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.mjs +11 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_flatRest.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.mjs +4 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.mjs +17 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getNative.mjs +17 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.mjs +46 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.mjs +30 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.mjs +25 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getTag.mjs +58 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getValue.mjs +13 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.mjs +15 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.mjs +17 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.mjs +30 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.mjs +23 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.mjs +23 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.mjs +77 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isFlattenable.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.mjs +25 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKey.mjs +29 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.mjs +15 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.mjs +13 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.mjs +35 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.mjs +19 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.mjs +30 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overArg.mjs +15 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overRest.mjs +36 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_parent.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_root.mjs +9 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setToString.mjs +14 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.mjs +37 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.mjs +15 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.mjs +14 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.mjs +14 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.mjs +34 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toKey.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toSource.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/constant.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/eq.mjs +37 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/flatten.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/identity.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArguments.mjs +36 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArray.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.mjs +33 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.mjs +38 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isFunction.mjs +37 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isLength.mjs +35 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isMap.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObject.mjs +31 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.mjs +29 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.mjs +62 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSet.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.mjs +29 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/keysIn.mjs +32 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/last.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/memoize.mjs +73 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/omit.mjs +57 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubArray.mjs +23 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toString.mjs +28 -0
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +28 -0
- package/es/packages/components/FileUpload/index.mjs +6 -0
- package/es/packages/components/FileUpload/src/FileUpload.vue.mjs +332 -0
- package/es/packages/components/FileUpload/src/FileUpload.vue2.mjs +4 -0
- package/es/packages/components/ImageUpload/index.mjs +6 -0
- package/es/packages/components/ImageUpload/src/ImageUpload.vue.mjs +258 -0
- package/es/packages/components/ImageUpload/src/ImageUpload.vue2.mjs +4 -0
- package/es/packages/components/button/index.mjs +10 -0
- package/es/packages/components/button/src/button.vue.mjs +42 -0
- package/es/packages/components/descriptions/index.mjs +10 -0
- package/es/packages/components/descriptions/src/comp.vue.mjs +58 -0
- package/es/packages/components/descriptions/src/descriptions.vue.mjs +178 -0
- package/es/packages/components/dialog/index.mjs +11 -0
- package/{packages/components/dialog/src/useDialog.js → es/packages/components/dialog/src/useDialog.mjs} +53 -50
- package/es/packages/components/table/index.mjs +10 -0
- package/es/packages/components/table/src/scrollTo.mjs +69 -0
- package/es/packages/components/table/src/table.vue.mjs +356 -0
- package/es/packages/components/table/src/table.vue2.mjs +4 -0
- package/es/packages/constants/event.mjs +3 -0
- package/{packages/hooks/src/useDynamicComponent.js → es/packages/hooks/src/useDynamicComponent.mjs} +11 -9
- package/es/packages/utils/type.mjs +9 -0
- package/{packages/utils/vue/appContext.js → es/packages/utils/vue/appContext.mjs} +6 -4
- package/es/packages/utils/vue/install.mjs +22 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +13 -0
- package/lib/index.js +46 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js +36 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js +36 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Map.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js +36 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Promise.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Set.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_apply.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.js +29 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js +46 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js +32 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js +29 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js +144 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFlatten.js +39 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGet.js +28 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +32 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js +51 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js +64 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js +37 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSlice.js +35 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.js +38 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js +18 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnset.js +69 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_castPath.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js +34 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js +21 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js +42 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_customOmitClone.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js +15 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_flatRest.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +8 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js +21 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js +21 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +50 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.js +34 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js +29 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getTag.js +60 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js +17 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js +19 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js +21 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js +34 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js +27 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js +27 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js +81 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isFlattenable.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js +29 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKey.js +33 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js +19 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js +17 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js +39 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js +23 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js +34 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js +19 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js +40 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_parent.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_root.js +13 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setToString.js +18 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js +41 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js +19 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js +18 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js +18 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js +38 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toKey.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/constant.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/eq.js +41 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/flatten.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/identity.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js +40 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArray.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js +37 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js +42 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js +41 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isLength.js +39 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isMap.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +35 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +33 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.js +66 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSet.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +33 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js +36 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/last.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/memoize.js +77 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/omit.js +61 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubArray.js +27 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toString.js +32 -0
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +32 -0
- package/lib/packages/components/FileUpload/index.js +11 -0
- package/lib/packages/components/FileUpload/src/FileUpload.vue.js +336 -0
- package/lib/packages/components/FileUpload/src/FileUpload.vue2.js +6 -0
- package/lib/packages/components/ImageUpload/index.js +11 -0
- package/lib/packages/components/ImageUpload/src/ImageUpload.vue.js +262 -0
- package/lib/packages/components/ImageUpload/src/ImageUpload.vue2.js +6 -0
- package/lib/packages/components/button/index.js +15 -0
- package/lib/packages/components/button/src/button.vue.js +46 -0
- package/lib/packages/components/descriptions/index.js +15 -0
- package/lib/packages/components/descriptions/src/comp.vue.js +62 -0
- package/lib/packages/components/descriptions/src/descriptions.vue.js +182 -0
- package/{packages → lib/packages}/components/dialog/index.js +7 -7
- package/lib/packages/components/dialog/src/useDialog.js +184 -0
- package/lib/packages/components/table/index.js +15 -0
- package/{packages → lib/packages}/components/table/src/scrollTo.js +26 -27
- package/lib/packages/components/table/src/table.vue.js +360 -0
- package/lib/packages/components/table/src/table.vue2.js +6 -0
- package/lib/packages/constants/event.js +5 -0
- package/lib/packages/hooks/src/useDynamicComponent.js +54 -0
- package/lib/packages/utils/type.js +15 -0
- package/lib/packages/utils/vue/appContext.js +28 -0
- package/lib/packages/utils/vue/install.js +24 -0
- package/package.json +59 -48
- package/.github/workflows/deploy.yml +0 -21
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -1
- package/.release-it.cjs +0 -22
- package/.vscode/extensions.json +0 -3
- package/.vscode/settings.json +0 -7
- package/commitlint.config.js +0 -145
- package/docs/.vitepress/config.mjs +0 -100
- package/docs/.vitepress/sidebar.js +0 -48
- package/docs/.vitepress/theme/index.js +0 -23
- package/docs/api-examples.md +0 -55
- package/docs/components/button.md +0 -53
- package/docs/components/descriptions.md +0 -88
- package/docs/components/dialog.md +0 -61
- package/docs/components/file-upload.md +0 -43
- package/docs/components/image-upload.md +0 -43
- package/docs/components/table.md +0 -113
- package/docs/contact-me/index.md +0 -11
- package/docs/demo/DialogFormContent.vue +0 -54
- package/docs/demo/button-basic.vue +0 -48
- package/docs/demo/descriptions-basic.vue +0 -159
- package/docs/demo/dialog-basic.vue +0 -137
- package/docs/demo/file-upload-basic.vue +0 -25
- package/docs/demo/image-upload-basic.vue +0 -24
- package/docs/demo/table-basic.vue +0 -177
- package/docs/guide/index.md +0 -52
- package/docs/guide/installation.md +0 -86
- package/docs/guide/quickstart.md +0 -75
- package/docs/index.md +0 -28
- package/docs/markdown-examples.md +0 -85
- package/docs/package.json +0 -23
- package/docs/public/logo.png +0 -0
- package/docs/public/qq.jpg +0 -0
- package/docs/public/wx.jpg +0 -0
- package/eslint.config.js +0 -1
- package/internal/build/copyFiles.js +0 -26
- package/internal/build/full-bundle.js +0 -48
- package/internal/build/gulpfile.js +0 -6
- package/internal/build/modules.js +0 -64
- package/internal/build/package.json +0 -23
- package/internal/eslint-config/index.js +0 -35
- package/internal/eslint-config/package.json +0 -21
- package/packages/components/FileUpload/index.js +0 -8
- package/packages/components/FileUpload/src/FileUpload.vue +0 -308
- package/packages/components/ImageUpload/index.js +0 -8
- package/packages/components/ImageUpload/src/ImageUpload.vue +0 -221
- package/packages/components/button/index.js +0 -11
- package/packages/components/button/src/button.vue +0 -32
- package/packages/components/descriptions/index.js +0 -11
- package/packages/components/descriptions/src/comp.vue +0 -39
- package/packages/components/descriptions/src/descriptions.vue +0 -138
- package/packages/components/index.js +0 -6
- package/packages/components/package.json +0 -20
- package/packages/components/table/index.js +0 -11
- package/packages/components/table/src/table.vue +0 -300
- package/packages/constants/event.js +0 -3
- package/packages/constants/index.js +0 -1
- package/packages/constants/package.json +0 -13
- package/packages/easy-elplus/index.js +0 -36
- package/packages/easy-elplus/package.json +0 -62
- package/packages/hooks/index.js +0 -1
- package/packages/hooks/package.json +0 -13
- package/packages/utils/index.js +0 -3
- package/packages/utils/package.json +0 -16
- package/packages/utils/type.js +0 -6
- package/packages/utils/vue/install.js +0 -36
- package/play/README.md +0 -5
- package/play/index.html +0 -13
- package/play/package.json +0 -19
- package/play/public/vite.svg +0 -1
- package/play/src/App.vue +0 -151
- package/play/src/main.js +0 -13
- package/play/src/router/index.js +0 -45
- package/play/src/testComp/AgeComp.vue +0 -9
- package/play/src/testComp/AsyncDemo.vue +0 -43
- package/play/src/testComp/CustomFooter.vue +0 -34
- package/play/src/testComp/DialogContent.vue +0 -172
- package/play/src/testComp/HeaderComp.vue +0 -1
- package/play/src/testComp/HtmlContent.vue +0 -8
- package/play/src/testComp/NestedDemo.vue +0 -15
- package/play/src/views/button.vue +0 -18
- package/play/src/views/descriptions.vue +0 -194
- package/play/src/views/dialog.vue +0 -283
- package/play/src/views/file-upload.vue +0 -170
- package/play/src/views/image-upload.vue +0 -100
- package/play/src/views/table.vue +0 -185
- package/play/test/index.html +0 -31
- package/play/vite.config.js +0 -14
- package/pnpm-workspace.yaml +0 -11
- package/prettier.config.js +0 -39
- package/public/qq.jpg +0 -0
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "build",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "index.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "gulp -f gulpfile.js"
|
|
9
|
-
},
|
|
10
|
-
"keywords": [],
|
|
11
|
-
"author": "",
|
|
12
|
-
"license": "ISC",
|
|
13
|
-
"packageManager": "pnpm@10.28.2",
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
16
|
-
"@vitejs/plugin-vue": "^6.0.4",
|
|
17
|
-
"fast-glob": "^3.3.3",
|
|
18
|
-
"rollup": "^4.57.1",
|
|
19
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
20
|
-
"sass": "^1.97.3",
|
|
21
|
-
"gulp": "^5.0.1"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import js from "@eslint/js" //js规范(标准的)
|
|
2
|
-
import globals from "globals" //环境
|
|
3
|
-
import pluginVue from "eslint-plugin-vue" //vue规范
|
|
4
|
-
import pluginCypress from "eslint-plugin-cypress"
|
|
5
|
-
import eslintConfigPrettier from "eslint-config-prettier" // prettier
|
|
6
|
-
const ignores = ["node_modules", "dist", "pnpm-lock.yaml", "docs/.vitepress/cache/*", "docs/.vitepress/dist/*", "!.*"]
|
|
7
|
-
export default [
|
|
8
|
-
// 1. 全局忽略
|
|
9
|
-
{
|
|
10
|
-
ignores
|
|
11
|
-
},
|
|
12
|
-
// 2. 继承各个插件的推荐配置 (它们是独立的配置对象)
|
|
13
|
-
js.configs.recommended, // JS 推荐规范
|
|
14
|
-
...pluginVue.configs["flat/essential"], // Vue 规范
|
|
15
|
-
pluginCypress.configs.recommended, // Cypress 规范
|
|
16
|
-
|
|
17
|
-
// 3. 自定义全局设置
|
|
18
|
-
{
|
|
19
|
-
files: ["**/*.{js,mjs,cjs,vue}"], // 匹配文件
|
|
20
|
-
// 全局变量 window
|
|
21
|
-
languageOptions: {
|
|
22
|
-
globals: {
|
|
23
|
-
...globals.browser,
|
|
24
|
-
...globals.node
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
rules: {
|
|
28
|
-
"vue/multi-word-component-names": "off", // 允许单字组件
|
|
29
|
-
"vue/prefer-import-from-vue": "off" // 允许直接引入
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
// 4. Prettier 必须放在最后以覆盖冲突规则
|
|
34
|
-
eslintConfigPrettier
|
|
35
|
-
]
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@easy-elplus/eslint-config",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
-
},
|
|
10
|
-
"keywords": [],
|
|
11
|
-
"author": "",
|
|
12
|
-
"license": "ISC",
|
|
13
|
-
"packageManager": "pnpm@10.28.2",
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@eslint/js": "^9.39.2",
|
|
16
|
-
"eslint-config-prettier": "^10.1.8",
|
|
17
|
-
"eslint-plugin-cypress": "^5.2.1",
|
|
18
|
-
"eslint-plugin-vue": "^10.7.0",
|
|
19
|
-
"globals": "^17.3.0"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="component-upload-file">
|
|
3
|
-
<el-upload
|
|
4
|
-
ref="fileUploadRef"
|
|
5
|
-
multiple
|
|
6
|
-
:action="action"
|
|
7
|
-
:before-upload="handleBeforeUpload"
|
|
8
|
-
:file-list="fileList"
|
|
9
|
-
:limit="limit"
|
|
10
|
-
:on-error="handleUploadError"
|
|
11
|
-
:on-exceed="handleExceed"
|
|
12
|
-
:on-success="handleUploadSuccess"
|
|
13
|
-
:on-remove="handleRemove"
|
|
14
|
-
:show-file-list="false"
|
|
15
|
-
:headers="headers"
|
|
16
|
-
class="upload-file-uploader"
|
|
17
|
-
>
|
|
18
|
-
<!-- 上传按钮 -->
|
|
19
|
-
<el-button type="primary">
|
|
20
|
-
<el-icon class="el-icon--left"><Upload /></el-icon>
|
|
21
|
-
选取文件
|
|
22
|
-
</el-button>
|
|
23
|
-
</el-upload>
|
|
24
|
-
|
|
25
|
-
<!-- 上传提示 -->
|
|
26
|
-
<div v-if="showTip" class="el-upload__tip">
|
|
27
|
-
请上传
|
|
28
|
-
<template v-if="fileSize">
|
|
29
|
-
大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b>
|
|
30
|
-
</template>
|
|
31
|
-
<template v-if="fileType && fileType.length">
|
|
32
|
-
格式为 <b style="color: #f56c6c">{{ fileType.join("/") }}</b>
|
|
33
|
-
</template>
|
|
34
|
-
的文件
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
<!-- 文件列表 -->
|
|
38
|
-
<transition-group class="upload-file-list el-upload-list el-upload-list--text" name="el-fade-in-linear" tag="ul">
|
|
39
|
-
<li
|
|
40
|
-
v-for="(file, index) in fileList"
|
|
41
|
-
:key="file.uid || index"
|
|
42
|
-
class="el-upload-list__item ele-upload-list__item-content"
|
|
43
|
-
>
|
|
44
|
-
<el-link :href="getFileUrl(file.url)" underline="never" target="_blank">
|
|
45
|
-
<el-icon class="el-icon--left"><Document /></el-icon>
|
|
46
|
-
<span>{{ getFileName(file.name) }}</span>
|
|
47
|
-
</el-link>
|
|
48
|
-
<div class="ele-upload-list__item-content-action">
|
|
49
|
-
<el-link underline="never" @click="handleDelete(index)" type="danger">删除</el-link>
|
|
50
|
-
</div>
|
|
51
|
-
</li>
|
|
52
|
-
</transition-group>
|
|
53
|
-
</div>
|
|
54
|
-
</template>
|
|
55
|
-
|
|
56
|
-
<script setup>
|
|
57
|
-
import { ref, computed, watch } from "vue"
|
|
58
|
-
import { ElMessage } from "element-plus"
|
|
59
|
-
import { Upload, Document } from "@element-plus/icons-vue"
|
|
60
|
-
import { isString } from "@easy-elplus/utils"
|
|
61
|
-
import { UPDATE_MODEL_EVENT } from "@easy-elplus/constants"
|
|
62
|
-
|
|
63
|
-
defineOptions({ name: "EasyFileUpload" })
|
|
64
|
-
|
|
65
|
-
const props = defineProps({
|
|
66
|
-
modelValue: [String, Object, Array],
|
|
67
|
-
// 数量限制
|
|
68
|
-
limit: {
|
|
69
|
-
type: Number,
|
|
70
|
-
default: 5
|
|
71
|
-
},
|
|
72
|
-
// 大小限制(MB)
|
|
73
|
-
fileSize: {
|
|
74
|
-
type: Number,
|
|
75
|
-
default: 5
|
|
76
|
-
},
|
|
77
|
-
// 文件类型, 例如['doc', 'xls', 'ppt', 'txt', 'pdf']
|
|
78
|
-
fileType: {
|
|
79
|
-
type: Array,
|
|
80
|
-
default: () => ["doc", "xls", "ppt", "txt", "pdf"]
|
|
81
|
-
},
|
|
82
|
-
// 是否显示提示
|
|
83
|
-
isShowTip: {
|
|
84
|
-
type: Boolean,
|
|
85
|
-
default: true
|
|
86
|
-
},
|
|
87
|
-
// 上传地址
|
|
88
|
-
action: {
|
|
89
|
-
type: String,
|
|
90
|
-
required: true
|
|
91
|
-
},
|
|
92
|
-
// 请求头
|
|
93
|
-
headers: {
|
|
94
|
-
type: Object,
|
|
95
|
-
default: () => ({})
|
|
96
|
-
},
|
|
97
|
-
// 基础路径
|
|
98
|
-
baseUrl: {
|
|
99
|
-
type: String,
|
|
100
|
-
default: ""
|
|
101
|
-
},
|
|
102
|
-
// 自定义成功校验函数
|
|
103
|
-
checkSuccess: {
|
|
104
|
-
type: Function,
|
|
105
|
-
default: res => res.code === 200 || res.success === true
|
|
106
|
-
},
|
|
107
|
-
// 自定义提取文件地址的路径,支持 "data.url" 这种深层嵌套
|
|
108
|
-
responsePath: {
|
|
109
|
-
type: String,
|
|
110
|
-
default: "data"
|
|
111
|
-
},
|
|
112
|
-
// 错误消息提取字段
|
|
113
|
-
errorField: {
|
|
114
|
-
type: String,
|
|
115
|
-
default: "msg"
|
|
116
|
-
}
|
|
117
|
-
})
|
|
118
|
-
|
|
119
|
-
const emit = defineEmits([UPDATE_MODEL_EVENT])
|
|
120
|
-
|
|
121
|
-
const number = ref(0)
|
|
122
|
-
const uploadList = ref([])
|
|
123
|
-
const fileList = ref([])
|
|
124
|
-
const fileUploadRef = ref(null)
|
|
125
|
-
|
|
126
|
-
const showTip = computed(() => props.isShowTip && (props.fileType || props.fileSize))
|
|
127
|
-
|
|
128
|
-
// 深度解析对象属性 (例如把 res["data.url"] 转为 res.data.url)
|
|
129
|
-
const getDeepValue = (obj, path) => {
|
|
130
|
-
if (!path) return obj
|
|
131
|
-
return path.split(".").reduce((acc, key) => (acc && acc[key] !== undefined ? acc[key] : undefined), obj)
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
watch(
|
|
135
|
-
() => props.modelValue,
|
|
136
|
-
val => {
|
|
137
|
-
if (val) {
|
|
138
|
-
const list = Array.isArray(val) ? val : val.split(",")
|
|
139
|
-
fileList.value = list.map((item, index) => {
|
|
140
|
-
if (isString(item)) {
|
|
141
|
-
item = { name: getFileName(item), url: item, uid: new Date().getTime() + index }
|
|
142
|
-
}
|
|
143
|
-
return item
|
|
144
|
-
})
|
|
145
|
-
} else {
|
|
146
|
-
fileList.value = []
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
{ deep: true, immediate: true }
|
|
150
|
-
)
|
|
151
|
-
|
|
152
|
-
// 上传前校检格式和大小
|
|
153
|
-
function handleBeforeUpload(file) {
|
|
154
|
-
// 校检文件类型
|
|
155
|
-
if (props.fileType && props.fileType.length) {
|
|
156
|
-
const fileName = file.name.split(".")
|
|
157
|
-
const fileExt = fileName[fileName.length - 1].toLowerCase()
|
|
158
|
-
const isTypeOk = props.fileType.map(t => t.toLowerCase()).includes(fileExt)
|
|
159
|
-
if (!isTypeOk) {
|
|
160
|
-
ElMessage.error(`文件格式不正确, 请上传${props.fileType.join("/")}格式文件!`)
|
|
161
|
-
return false
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
// 校检文件大小
|
|
165
|
-
if (props.fileSize && file.size / 1024 / 1024 > props.fileSize) {
|
|
166
|
-
ElMessage.error(`上传文件大小不能超过 ${props.fileSize} MB!`)
|
|
167
|
-
return false
|
|
168
|
-
}
|
|
169
|
-
number.value++
|
|
170
|
-
return true
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
// 文件个数超出
|
|
174
|
-
function handleExceed() {
|
|
175
|
-
ElMessage.error(`上传文件数量不能超过 ${props.limit} 个!`)
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
// 上传失败
|
|
179
|
-
function handleUploadError(err) {
|
|
180
|
-
number.value--
|
|
181
|
-
ElMessage.error(isString(err) ? err : "上传文件失败")
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
// 上传成功回调
|
|
185
|
-
function handleUploadSuccess(res, file) {
|
|
186
|
-
// 使用传入的校验函数
|
|
187
|
-
if (props.checkSuccess(res)) {
|
|
188
|
-
// 动态提取 URL
|
|
189
|
-
const url = getDeepValue(res, props.responsePath)
|
|
190
|
-
|
|
191
|
-
if (url) {
|
|
192
|
-
uploadList.value.push({ name: getFileName(url), url: url, uid: file.uid })
|
|
193
|
-
uploadedSuccessfully()
|
|
194
|
-
} else {
|
|
195
|
-
handleUploadError(`无法从响应中解析文件路径: ${props.responsePath}`)
|
|
196
|
-
}
|
|
197
|
-
} else {
|
|
198
|
-
number.value--
|
|
199
|
-
const errorMsg = getDeepValue(res, props.errorField) || "上传失败"
|
|
200
|
-
ElMessage.error(errorMsg)
|
|
201
|
-
fileUploadRef.value?.handleRemove(file)
|
|
202
|
-
uploadedSuccessfully()
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
// 删除文件
|
|
207
|
-
function handleDelete(index) {
|
|
208
|
-
fileList.value.splice(index, 1)
|
|
209
|
-
emit(UPDATE_MODEL_EVENT, listToString(fileList.value))
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
// 移除文件
|
|
213
|
-
function handleRemove(file) {
|
|
214
|
-
const findex = fileList.value.findIndex(f => f.uid === file.uid)
|
|
215
|
-
if (findex > -1) {
|
|
216
|
-
fileList.value.splice(findex, 1)
|
|
217
|
-
emit(UPDATE_MODEL_EVENT, listToString(fileList.value))
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// 上传结束处理
|
|
222
|
-
function uploadedSuccessfully() {
|
|
223
|
-
if (number.value > 0 && uploadList.value.length === number.value) {
|
|
224
|
-
fileList.value = fileList.value.filter(f => f.url !== undefined).concat(uploadList.value)
|
|
225
|
-
uploadList.value = []
|
|
226
|
-
number.value = 0
|
|
227
|
-
emit(UPDATE_MODEL_EVENT, listToString(fileList.value))
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
// 获取文件名称
|
|
232
|
-
function getFileName(name) {
|
|
233
|
-
if (!isString(name)) return ""
|
|
234
|
-
return name.slice(name.lastIndexOf("/") + 1)
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
// 获取文件完整 URL
|
|
238
|
-
function getFileUrl(url) {
|
|
239
|
-
if (!url) return ""
|
|
240
|
-
if (/^https?:\/\//.test(url)) return url
|
|
241
|
-
return props.baseUrl ? props.baseUrl + url : url
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
// 对象转成指定字符串分隔
|
|
245
|
-
function listToString(list, separator = ",") {
|
|
246
|
-
return list
|
|
247
|
-
.filter(item => item.url && item.url.indexOf("blob:") !== 0)
|
|
248
|
-
.map(item => {
|
|
249
|
-
let url = item.url
|
|
250
|
-
// 如果设置了 baseUrl,保存时去除它
|
|
251
|
-
if (props.baseUrl && url.indexOf(props.baseUrl) === 0) {
|
|
252
|
-
url = url.replace(props.baseUrl, "")
|
|
253
|
-
}
|
|
254
|
-
return url
|
|
255
|
-
})
|
|
256
|
-
.join(separator)
|
|
257
|
-
}
|
|
258
|
-
</script>
|
|
259
|
-
|
|
260
|
-
<style scoped lang="scss">
|
|
261
|
-
.component-upload-file {
|
|
262
|
-
.upload-file-uploader {
|
|
263
|
-
margin-bottom: 5px;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.el-upload__tip {
|
|
267
|
-
font-size: 12px;
|
|
268
|
-
color: #606266;
|
|
269
|
-
margin-top: 7px;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.upload-file-list {
|
|
273
|
-
margin: 0;
|
|
274
|
-
padding: 0;
|
|
275
|
-
list-style: none;
|
|
276
|
-
|
|
277
|
-
.el-upload-list__item {
|
|
278
|
-
border: 1px solid #e4e7ed;
|
|
279
|
-
line-height: 2;
|
|
280
|
-
margin-bottom: 10px;
|
|
281
|
-
position: relative;
|
|
282
|
-
border-radius: 4px;
|
|
283
|
-
padding: 8px 10px;
|
|
284
|
-
transition: all 0.3s;
|
|
285
|
-
|
|
286
|
-
&:hover {
|
|
287
|
-
background-color: #f5f7fa;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.ele-upload-list__item-content {
|
|
292
|
-
display: flex;
|
|
293
|
-
justify-content: space-between;
|
|
294
|
-
align-items: center;
|
|
295
|
-
color: inherit;
|
|
296
|
-
|
|
297
|
-
.el-link {
|
|
298
|
-
flex: 1;
|
|
299
|
-
margin-right: 10px;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.ele-upload-list__item-content-action .el-link {
|
|
304
|
-
margin-right: 10px;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
</style>
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="component-upload-image">
|
|
3
|
-
<el-upload
|
|
4
|
-
ref="imageUploadRef"
|
|
5
|
-
multiple
|
|
6
|
-
:action="action"
|
|
7
|
-
list-type="picture-card"
|
|
8
|
-
:on-success="handleUploadSuccess"
|
|
9
|
-
:before-upload="handleBeforeUpload"
|
|
10
|
-
:limit="limit"
|
|
11
|
-
:on-error="handleUploadError"
|
|
12
|
-
:on-exceed="handleExceed"
|
|
13
|
-
:on-remove="handleRemove"
|
|
14
|
-
:show-file-list="true"
|
|
15
|
-
:headers="headers"
|
|
16
|
-
:file-list="fileList"
|
|
17
|
-
:on-preview="handlePictureCardPreview"
|
|
18
|
-
:class="{ hide: fileList.length >= limit }"
|
|
19
|
-
>
|
|
20
|
-
<el-icon class="avatar-uploader-icon"><Plus /></el-icon>
|
|
21
|
-
</el-upload>
|
|
22
|
-
|
|
23
|
-
<div v-if="showTip" class="el-upload__tip">
|
|
24
|
-
请上传
|
|
25
|
-
<template v-if="fileSize">
|
|
26
|
-
大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b>
|
|
27
|
-
</template>
|
|
28
|
-
<template v-if="fileType">
|
|
29
|
-
格式为 <b style="color: #f56c6c">{{ fileType.join("/") }}</b>
|
|
30
|
-
</template>
|
|
31
|
-
的文件
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<el-dialog v-model="dialogVisible" title="预览" width="800px" append-to-body>
|
|
35
|
-
<img :src="dialogImageUrl" style="display: block; max-width: 100%; margin: 0 auto" />
|
|
36
|
-
</el-dialog>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script setup>
|
|
41
|
-
import { ref, computed, watch } from "vue"
|
|
42
|
-
import { ElMessage } from "element-plus"
|
|
43
|
-
import { Plus } from "@element-plus/icons-vue"
|
|
44
|
-
import { isString } from "@easy-elplus/utils"
|
|
45
|
-
import { UPDATE_MODEL_EVENT } from "@easy-elplus/constants"
|
|
46
|
-
|
|
47
|
-
defineOptions({ name: "EasyImageUpload" })
|
|
48
|
-
|
|
49
|
-
const props = defineProps({
|
|
50
|
-
modelValue: [String, Object, Array],
|
|
51
|
-
limit: { type: Number, default: 5 },
|
|
52
|
-
fileSize: { type: Number, default: 5 },
|
|
53
|
-
fileType: { type: Array, default: () => ["png", "jpg", "jpeg"] },
|
|
54
|
-
isShowTip: { type: Boolean, default: true },
|
|
55
|
-
action: { type: String, required: true },
|
|
56
|
-
headers: { type: Object, default: () => ({}) },
|
|
57
|
-
baseUrl: { type: String, default: "" },
|
|
58
|
-
|
|
59
|
-
checkSuccess: {
|
|
60
|
-
type: Function,
|
|
61
|
-
default: res => res.code === 200 || res.success === true
|
|
62
|
-
},
|
|
63
|
-
// 自定义提取图片地址的路径,支持 "data.url" 这种深层嵌套
|
|
64
|
-
responsePath: {
|
|
65
|
-
type: String,
|
|
66
|
-
default: "data"
|
|
67
|
-
},
|
|
68
|
-
// 错误消息提取字段
|
|
69
|
-
errorField: {
|
|
70
|
-
type: String,
|
|
71
|
-
default: "msg"
|
|
72
|
-
}
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
const emit = defineEmits([UPDATE_MODEL_EVENT])
|
|
76
|
-
|
|
77
|
-
const number = ref(0)
|
|
78
|
-
const uploadList = ref([])
|
|
79
|
-
const dialogImageUrl = ref("")
|
|
80
|
-
const dialogVisible = ref(false)
|
|
81
|
-
const fileList = ref([])
|
|
82
|
-
const imageUploadRef = ref(null)
|
|
83
|
-
|
|
84
|
-
const showTip = computed(() => props.isShowTip && (props.fileType || props.fileSize))
|
|
85
|
-
|
|
86
|
-
// 深度解析对象属性 (例如把 res["data.imgUrl"] 转为 res.data.imgUrl)
|
|
87
|
-
const getDeepValue = (obj, path) => {
|
|
88
|
-
if (!path) return obj
|
|
89
|
-
return path.split(".").reduce((acc, key) => (acc && acc[key] !== undefined ? acc[key] : undefined), obj)
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
watch(
|
|
93
|
-
() => props.modelValue,
|
|
94
|
-
val => {
|
|
95
|
-
if (val) {
|
|
96
|
-
const list = Array.isArray(val) ? val : val.split(",")
|
|
97
|
-
fileList.value = list.map(item => {
|
|
98
|
-
if (isString(item)) {
|
|
99
|
-
let url = item
|
|
100
|
-
if (!/^https?:\/\//.test(url) && props.baseUrl) {
|
|
101
|
-
url = props.baseUrl + item
|
|
102
|
-
}
|
|
103
|
-
item = { name: getFileName(item), url: url }
|
|
104
|
-
}
|
|
105
|
-
return item
|
|
106
|
-
})
|
|
107
|
-
} else {
|
|
108
|
-
fileList.value = []
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
{ deep: true, immediate: true }
|
|
112
|
-
)
|
|
113
|
-
|
|
114
|
-
function handleBeforeUpload(file) {
|
|
115
|
-
let isImg = false
|
|
116
|
-
if (props.fileType.length) {
|
|
117
|
-
const fileExtension = file.name.slice(file.name.lastIndexOf(".") + 1).toLowerCase()
|
|
118
|
-
isImg = props.fileType.map(t => t.toLowerCase()).includes(fileExtension)
|
|
119
|
-
} else {
|
|
120
|
-
isImg = file.type.indexOf("image") > -1
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if (!isImg) {
|
|
124
|
-
ElMessage.error(`格式不正确, 请上传${props.fileType.join("/")}图片!`)
|
|
125
|
-
return false
|
|
126
|
-
}
|
|
127
|
-
if (props.fileSize && file.size / 1024 / 1024 > props.fileSize) {
|
|
128
|
-
ElMessage.error(`大小不能超过 ${props.fileSize} MB!`)
|
|
129
|
-
return false
|
|
130
|
-
}
|
|
131
|
-
number.value++
|
|
132
|
-
return true
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
function handleExceed() {
|
|
136
|
-
ElMessage.error(`上传数量不能超过 ${props.limit} 个!`)
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// 修改后的核心逻辑
|
|
140
|
-
function handleUploadSuccess(res, file) {
|
|
141
|
-
// 1. 使用传入的校验函数
|
|
142
|
-
if (props.checkSuccess(res)) {
|
|
143
|
-
// 2. 动态提取 URL
|
|
144
|
-
const url = getDeepValue(res, props.responsePath)
|
|
145
|
-
|
|
146
|
-
if (url) {
|
|
147
|
-
uploadList.value.push({ name: getFileName(url), url: url })
|
|
148
|
-
uploadedSuccessfully()
|
|
149
|
-
} else {
|
|
150
|
-
handleUploadError(`无法从响应中解析图片路径: ${props.responsePath}`)
|
|
151
|
-
}
|
|
152
|
-
} else {
|
|
153
|
-
number.value--
|
|
154
|
-
const errorMsg = getDeepValue(res, props.errorField) || "上传失败"
|
|
155
|
-
ElMessage.error(errorMsg)
|
|
156
|
-
imageUploadRef.value.handleRemove(file)
|
|
157
|
-
uploadedSuccessfully()
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
function handleRemove(file) {
|
|
162
|
-
const findex = fileList.value.findIndex(f => f.name === file.name)
|
|
163
|
-
if (findex > -1) {
|
|
164
|
-
fileList.value.splice(findex, 1)
|
|
165
|
-
emit(UPDATE_MODEL_EVENT, listToString(fileList.value))
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
function uploadedSuccessfully() {
|
|
170
|
-
if (number.value > 0 && uploadList.value.length === number.value) {
|
|
171
|
-
fileList.value = fileList.value.filter(f => f.url !== undefined).concat(uploadList.value)
|
|
172
|
-
uploadList.value = []
|
|
173
|
-
number.value = 0
|
|
174
|
-
emit(UPDATE_MODEL_EVENT, listToString(fileList.value))
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
function handleUploadError(msg) {
|
|
179
|
-
ElMessage.error(isString(msg) ? msg : "上传图片失败")
|
|
180
|
-
number.value--
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
function handlePictureCardPreview(file) {
|
|
184
|
-
dialogImageUrl.value = file.url
|
|
185
|
-
dialogVisible.value = true
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
function getFileName(name) {
|
|
189
|
-
if (!isString(name)) return ""
|
|
190
|
-
return name.slice(name.lastIndexOf("/") + 1)
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
function listToString(list, separator = ",") {
|
|
194
|
-
return list
|
|
195
|
-
.filter(item => item.url && item.url.indexOf("blob:") !== 0)
|
|
196
|
-
.map(item => {
|
|
197
|
-
let url = item.url
|
|
198
|
-
if (props.baseUrl && url.indexOf(props.baseUrl) === 0) {
|
|
199
|
-
url = url.replace(props.baseUrl, "")
|
|
200
|
-
}
|
|
201
|
-
return url
|
|
202
|
-
})
|
|
203
|
-
.join(separator)
|
|
204
|
-
}
|
|
205
|
-
</script>
|
|
206
|
-
|
|
207
|
-
<style scoped>
|
|
208
|
-
/* 保持原有样式 */
|
|
209
|
-
.component-upload-image :deep(.el-upload--picture-card) {
|
|
210
|
-
width: 100px;
|
|
211
|
-
height: 100px;
|
|
212
|
-
line-height: 110px;
|
|
213
|
-
}
|
|
214
|
-
.component-upload-image :deep(.el-upload-list--picture-card .el-upload-list__item) {
|
|
215
|
-
width: 100px;
|
|
216
|
-
height: 100px;
|
|
217
|
-
}
|
|
218
|
-
.component-upload-image :deep(.hide .el-upload--picture-card) {
|
|
219
|
-
display: none;
|
|
220
|
-
}
|
|
221
|
-
</style>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// 用来整合组件的,最终实现导出组件
|
|
2
|
-
|
|
3
|
-
import { withInstall } from "@easy-elplus/utils"
|
|
4
|
-
import button from "./src/button.vue"
|
|
5
|
-
|
|
6
|
-
// 通过 withInstall 方法给 button 添加了一个 Vue3 插件所需的 install 方法
|
|
7
|
-
export const EasyButton = withInstall(button)
|
|
8
|
-
// 可以通过 app.use 来使用,也可以通过 import 方式单独使用
|
|
9
|
-
|
|
10
|
-
export default EasyButton
|
|
11
|
-
export * from "./src/button.vue"
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { ref, useAttrs } from "vue"
|
|
3
|
-
import { ElButton } from "element-plus"
|
|
4
|
-
import { omit } from "lodash-es"
|
|
5
|
-
import { isFunction } from "@easy-elplus/utils"
|
|
6
|
-
|
|
7
|
-
defineOptions({
|
|
8
|
-
inheritAttrs: false,
|
|
9
|
-
name: "EasyButton"
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
const loading = ref(false)
|
|
13
|
-
|
|
14
|
-
const attrs = useAttrs()
|
|
15
|
-
const onClick = async () => {
|
|
16
|
-
try {
|
|
17
|
-
loading.value = true
|
|
18
|
-
|
|
19
|
-
if (isFunction(attrs.onClick)) {
|
|
20
|
-
await attrs.onClick()
|
|
21
|
-
}
|
|
22
|
-
} finally {
|
|
23
|
-
loading.value = false
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
</script>
|
|
27
|
-
|
|
28
|
-
<template>
|
|
29
|
-
<el-button :loading="loading" v-bind="omit(attrs, 'onClick')" @click="onClick">
|
|
30
|
-
<slot />
|
|
31
|
-
</el-button>
|
|
32
|
-
</template>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// 用来整合组件的,最终实现导出组件
|
|
2
|
-
|
|
3
|
-
import { withInstall } from "@easy-elplus/utils"
|
|
4
|
-
import Descriptions from "./src/descriptions.vue"
|
|
5
|
-
|
|
6
|
-
// 通过 withInstall 方法给 button 添加了一个 Vue3 插件所需的 install 方法
|
|
7
|
-
export const EasyDescriptions = withInstall(Descriptions)
|
|
8
|
-
// 可以通过 app.use 来使用,也可以通过 import 方式单独使用
|
|
9
|
-
|
|
10
|
-
export default EasyDescriptions
|
|
11
|
-
export * from "./src/descriptions.vue"
|