easy-elplus 1.0.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/LICENSE +21 -0
- package/README.md +69 -0
- package/dist/index.full.js +4431 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/index.mjs +35 -0
- package/es/node_modules/.pnpm/@vue_shared@3.5.27/node_modules/@vue/shared/dist/shared.esm-bundler.mjs +13 -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 +51 -0
- package/es/packages/components/descriptions/src/descriptions.vue.mjs +178 -0
- package/es/packages/components/dialog/index.mjs +11 -0
- package/es/packages/components/dialog/src/appContext.mjs +25 -0
- package/es/packages/components/dialog/src/dialog.mjs +130 -0
- package/es/packages/components/dialog/src/useDialog.mjs +183 -0
- 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 +357 -0
- package/es/packages/components/table/src/table.vue2.mjs +4 -0
- package/es/packages/components/table/src/tableColumn.vue.mjs +72 -0
- package/es/packages/constants/event.mjs +3 -0
- package/es/packages/hooks/src/useDynamicComponent.mjs +53 -0
- package/es/packages/utils/type.mjs +5 -0
- package/es/packages/utils/vue/appContext.mjs +25 -0
- 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/@vue_shared@3.5.27/node_modules/@vue/shared/dist/shared.esm-bundler.js +16 -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 +55 -0
- package/lib/packages/components/descriptions/src/descriptions.vue.js +182 -0
- package/lib/packages/components/dialog/index.js +14 -0
- package/lib/packages/components/dialog/src/appContext.js +28 -0
- package/lib/packages/components/dialog/src/dialog.js +132 -0
- package/lib/packages/components/dialog/src/useDialog.js +185 -0
- package/lib/packages/components/table/index.js +15 -0
- package/lib/packages/components/table/src/scrollTo.js +71 -0
- package/lib/packages/components/table/src/table.vue.js +361 -0
- package/lib/packages/components/table/src/table.vue2.js +6 -0
- package/lib/packages/components/table/src/tableColumn.vue.js +76 -0
- package/lib/packages/constants/event.js +5 -0
- package/lib/packages/hooks/src/useDynamicComponent.js +55 -0
- package/lib/packages/utils/type.js +9 -0
- package/lib/packages/utils/vue/appContext.js +28 -0
- package/lib/packages/utils/vue/install.js +24 -0
- package/package.json +62 -0
- package/public/qq.jpg +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import arrayMap from './_arrayMap.mjs';
|
|
2
|
+
import baseClone from './_baseClone.mjs';
|
|
3
|
+
import baseUnset from './_baseUnset.mjs';
|
|
4
|
+
import castPath from './_castPath.mjs';
|
|
5
|
+
import copyObject from './_copyObject.mjs';
|
|
6
|
+
import customOmitClone from './_customOmitClone.mjs';
|
|
7
|
+
import flatRest from './_flatRest.mjs';
|
|
8
|
+
import getAllKeysIn from './_getAllKeysIn.mjs';
|
|
9
|
+
|
|
10
|
+
/** Used to compose bitmasks for cloning. */
|
|
11
|
+
var CLONE_DEEP_FLAG = 1,
|
|
12
|
+
CLONE_FLAT_FLAG = 2,
|
|
13
|
+
CLONE_SYMBOLS_FLAG = 4;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The opposite of `_.pick`; this method creates an object composed of the
|
|
17
|
+
* own and inherited enumerable property paths of `object` that are not omitted.
|
|
18
|
+
*
|
|
19
|
+
* **Note:** This method is considerably slower than `_.pick`.
|
|
20
|
+
*
|
|
21
|
+
* @static
|
|
22
|
+
* @since 0.1.0
|
|
23
|
+
* @memberOf _
|
|
24
|
+
* @category Object
|
|
25
|
+
* @param {Object} object The source object.
|
|
26
|
+
* @param {...(string|string[])} [paths] The property paths to omit.
|
|
27
|
+
* @returns {Object} Returns the new object.
|
|
28
|
+
* @example
|
|
29
|
+
*
|
|
30
|
+
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
31
|
+
*
|
|
32
|
+
* _.omit(object, ['a', 'c']);
|
|
33
|
+
* // => { 'b': '2' }
|
|
34
|
+
*/
|
|
35
|
+
var omit = flatRest(function(object, paths) {
|
|
36
|
+
var result = {};
|
|
37
|
+
if (object == null) {
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
var isDeep = false;
|
|
41
|
+
paths = arrayMap(paths, function(path) {
|
|
42
|
+
path = castPath(path, object);
|
|
43
|
+
isDeep || (isDeep = path.length > 1);
|
|
44
|
+
return path;
|
|
45
|
+
});
|
|
46
|
+
copyObject(object, getAllKeysIn(object), result);
|
|
47
|
+
if (isDeep) {
|
|
48
|
+
result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
|
|
49
|
+
}
|
|
50
|
+
var length = paths.length;
|
|
51
|
+
while (length--) {
|
|
52
|
+
baseUnset(result, paths[length]);
|
|
53
|
+
}
|
|
54
|
+
return result;
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export { omit as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This method returns a new empty array.
|
|
3
|
+
*
|
|
4
|
+
* @static
|
|
5
|
+
* @memberOf _
|
|
6
|
+
* @since 4.13.0
|
|
7
|
+
* @category Util
|
|
8
|
+
* @returns {Array} Returns the new empty array.
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* var arrays = _.times(2, _.stubArray);
|
|
12
|
+
*
|
|
13
|
+
* console.log(arrays);
|
|
14
|
+
* // => [[], []]
|
|
15
|
+
*
|
|
16
|
+
* console.log(arrays[0] === arrays[1]);
|
|
17
|
+
* // => false
|
|
18
|
+
*/
|
|
19
|
+
function stubArray() {
|
|
20
|
+
return [];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { stubArray as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This method returns `false`.
|
|
3
|
+
*
|
|
4
|
+
* @static
|
|
5
|
+
* @memberOf _
|
|
6
|
+
* @since 4.13.0
|
|
7
|
+
* @category Util
|
|
8
|
+
* @returns {boolean} Returns `false`.
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* _.times(2, _.stubFalse);
|
|
12
|
+
* // => [false, false]
|
|
13
|
+
*/
|
|
14
|
+
function stubFalse() {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { stubFalse as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import baseToString from './_baseToString.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
5
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
6
|
+
*
|
|
7
|
+
* @static
|
|
8
|
+
* @memberOf _
|
|
9
|
+
* @since 4.0.0
|
|
10
|
+
* @category Lang
|
|
11
|
+
* @param {*} value The value to convert.
|
|
12
|
+
* @returns {string} Returns the converted string.
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* _.toString(null);
|
|
16
|
+
* // => ''
|
|
17
|
+
*
|
|
18
|
+
* _.toString(-0);
|
|
19
|
+
* // => '-0'
|
|
20
|
+
*
|
|
21
|
+
* _.toString([1, 2, 3]);
|
|
22
|
+
* // => '1,2,3'
|
|
23
|
+
*/
|
|
24
|
+
function toString(value) {
|
|
25
|
+
return value == null ? '' : baseToString(value);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { toString as default };
|
package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function styleInject(css, ref) {
|
|
2
|
+
if ( ref === void 0 ) ref = {};
|
|
3
|
+
var insertAt = ref.insertAt;
|
|
4
|
+
|
|
5
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
6
|
+
|
|
7
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
8
|
+
var style = document.createElement('style');
|
|
9
|
+
style.type = 'text/css';
|
|
10
|
+
|
|
11
|
+
if (insertAt === 'top') {
|
|
12
|
+
if (head.firstChild) {
|
|
13
|
+
head.insertBefore(style, head.firstChild);
|
|
14
|
+
} else {
|
|
15
|
+
head.appendChild(style);
|
|
16
|
+
}
|
|
17
|
+
} else {
|
|
18
|
+
head.appendChild(style);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (style.styleSheet) {
|
|
22
|
+
style.styleSheet.cssText = css;
|
|
23
|
+
} else {
|
|
24
|
+
style.appendChild(document.createTextNode(css));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { styleInject as default };
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createCommentVNode, unref, createTextVNode, Fragment, createElementVNode, toDisplayString, TransitionGroup, renderList } from 'vue';
|
|
2
|
+
import { ElMessage } from 'element-plus';
|
|
3
|
+
import { Upload, Document } from '@element-plus/icons-vue';
|
|
4
|
+
import { isString } from '../../../utils/type.mjs';
|
|
5
|
+
import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
|
6
|
+
import './FileUpload.vue2.mjs';
|
|
7
|
+
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
8
|
+
|
|
9
|
+
const _hoisted_1 = { class: "component-upload-file" };
|
|
10
|
+
const _hoisted_2 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "el-upload__tip"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_3 = { style: {"color":"#f56c6c"} };
|
|
15
|
+
const _hoisted_4 = { style: {"color":"#f56c6c"} };
|
|
16
|
+
const _hoisted_5 = { class: "ele-upload-list__item-content-action" };
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
const _sfc_main = /*@__PURE__*/Object.assign({ name: "EasyFileUpload" }, {
|
|
20
|
+
__name: 'FileUpload',
|
|
21
|
+
props: {
|
|
22
|
+
modelValue: [String, Object, Array],
|
|
23
|
+
// 数量限制
|
|
24
|
+
limit: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 5
|
|
27
|
+
},
|
|
28
|
+
// 大小限制(MB)
|
|
29
|
+
fileSize: {
|
|
30
|
+
type: Number,
|
|
31
|
+
default: 5
|
|
32
|
+
},
|
|
33
|
+
// 文件类型, 例如['doc', 'xls', 'ppt', 'txt', 'pdf']
|
|
34
|
+
fileType: {
|
|
35
|
+
type: Array,
|
|
36
|
+
default: () => ["doc", "xls", "ppt", "txt", "pdf"]
|
|
37
|
+
},
|
|
38
|
+
// 是否显示提示
|
|
39
|
+
isShowTip: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: true
|
|
42
|
+
},
|
|
43
|
+
// 上传地址
|
|
44
|
+
action: {
|
|
45
|
+
type: String,
|
|
46
|
+
required: true
|
|
47
|
+
},
|
|
48
|
+
// 请求头
|
|
49
|
+
headers: {
|
|
50
|
+
type: Object,
|
|
51
|
+
default: () => ({})
|
|
52
|
+
},
|
|
53
|
+
// 基础路径
|
|
54
|
+
baseUrl: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: ""
|
|
57
|
+
},
|
|
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
|
+
emits: [UPDATE_MODEL_EVENT],
|
|
75
|
+
setup(__props, { emit: __emit }) {
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
const props = __props;
|
|
80
|
+
|
|
81
|
+
const emit = __emit;
|
|
82
|
+
|
|
83
|
+
const number = ref(0);
|
|
84
|
+
const uploadList = ref([]);
|
|
85
|
+
const fileList = ref([]);
|
|
86
|
+
const fileUploadRef = ref(null);
|
|
87
|
+
|
|
88
|
+
const showTip = computed(() => props.isShowTip && (props.fileType || props.fileSize));
|
|
89
|
+
|
|
90
|
+
// 深度解析对象属性 (例如把 res["data.url"] 转为 res.data.url)
|
|
91
|
+
const getDeepValue = (obj, path) => {
|
|
92
|
+
if (!path) return obj
|
|
93
|
+
return path.split(".").reduce((acc, key) => (acc && acc[key] !== undefined ? acc[key] : undefined), obj)
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
watch(
|
|
97
|
+
() => props.modelValue,
|
|
98
|
+
val => {
|
|
99
|
+
if (val) {
|
|
100
|
+
const list = Array.isArray(val) ? val : val.split(",");
|
|
101
|
+
fileList.value = list.map((item, index) => {
|
|
102
|
+
if (isString(item)) {
|
|
103
|
+
item = { name: getFileName(item), url: item, uid: new Date().getTime() + index };
|
|
104
|
+
}
|
|
105
|
+
return item
|
|
106
|
+
});
|
|
107
|
+
} else {
|
|
108
|
+
fileList.value = [];
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{ deep: true, immediate: true }
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
// 上传前校检格式和大小
|
|
115
|
+
function handleBeforeUpload(file) {
|
|
116
|
+
// 校检文件类型
|
|
117
|
+
if (props.fileType && props.fileType.length) {
|
|
118
|
+
const fileName = file.name.split(".");
|
|
119
|
+
const fileExt = fileName[fileName.length - 1].toLowerCase();
|
|
120
|
+
const isTypeOk = props.fileType.map(t => t.toLowerCase()).includes(fileExt);
|
|
121
|
+
if (!isTypeOk) {
|
|
122
|
+
ElMessage.error(`文件格式不正确, 请上传${props.fileType.join("/")}格式文件!`);
|
|
123
|
+
return false
|
|
124
|
+
}
|
|
125
|
+
}
|
|
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
|
+
// 文件个数超出
|
|
136
|
+
function handleExceed() {
|
|
137
|
+
ElMessage.error(`上传文件数量不能超过 ${props.limit} 个!`);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// 上传失败
|
|
141
|
+
function handleUploadError(err) {
|
|
142
|
+
number.value--;
|
|
143
|
+
ElMessage.error(isString(err) ? err : "上传文件失败");
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// 上传成功回调
|
|
147
|
+
function handleUploadSuccess(res, file) {
|
|
148
|
+
// 使用传入的校验函数
|
|
149
|
+
if (props.checkSuccess(res)) {
|
|
150
|
+
// 动态提取 URL
|
|
151
|
+
const url = getDeepValue(res, props.responsePath);
|
|
152
|
+
|
|
153
|
+
if (url) {
|
|
154
|
+
uploadList.value.push({ name: getFileName(url), url: url, uid: file.uid });
|
|
155
|
+
uploadedSuccessfully();
|
|
156
|
+
} else {
|
|
157
|
+
handleUploadError(`无法从响应中解析文件路径: ${props.responsePath}`);
|
|
158
|
+
}
|
|
159
|
+
} else {
|
|
160
|
+
number.value--;
|
|
161
|
+
const errorMsg = getDeepValue(res, props.errorField) || "上传失败";
|
|
162
|
+
ElMessage.error(errorMsg);
|
|
163
|
+
fileUploadRef.value?.handleRemove(file);
|
|
164
|
+
uploadedSuccessfully();
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// 删除文件
|
|
169
|
+
function handleDelete(index) {
|
|
170
|
+
fileList.value.splice(index, 1);
|
|
171
|
+
emit(UPDATE_MODEL_EVENT, listToString(fileList.value));
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// 移除文件
|
|
175
|
+
function handleRemove(file) {
|
|
176
|
+
const findex = fileList.value.findIndex(f => f.uid === file.uid);
|
|
177
|
+
if (findex > -1) {
|
|
178
|
+
fileList.value.splice(findex, 1);
|
|
179
|
+
emit(UPDATE_MODEL_EVENT, listToString(fileList.value));
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// 上传结束处理
|
|
184
|
+
function uploadedSuccessfully() {
|
|
185
|
+
if (number.value > 0 && uploadList.value.length === number.value) {
|
|
186
|
+
fileList.value = fileList.value.filter(f => f.url !== undefined).concat(uploadList.value);
|
|
187
|
+
uploadList.value = [];
|
|
188
|
+
number.value = 0;
|
|
189
|
+
emit(UPDATE_MODEL_EVENT, listToString(fileList.value));
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// 获取文件名称
|
|
194
|
+
function getFileName(name) {
|
|
195
|
+
if (!isString(name)) return ""
|
|
196
|
+
return name.slice(name.lastIndexOf("/") + 1)
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// 获取文件完整 URL
|
|
200
|
+
function getFileUrl(url) {
|
|
201
|
+
if (!url) return ""
|
|
202
|
+
if (/^https?:\/\//.test(url)) return url
|
|
203
|
+
return props.baseUrl ? props.baseUrl + url : url
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// 对象转成指定字符串分隔
|
|
207
|
+
function listToString(list, separator = ",") {
|
|
208
|
+
return list
|
|
209
|
+
.filter(item => item.url && item.url.indexOf("blob:") !== 0)
|
|
210
|
+
.map(item => {
|
|
211
|
+
let url = item.url;
|
|
212
|
+
// 如果设置了 baseUrl,保存时去除它
|
|
213
|
+
if (props.baseUrl && url.indexOf(props.baseUrl) === 0) {
|
|
214
|
+
url = url.replace(props.baseUrl, "");
|
|
215
|
+
}
|
|
216
|
+
return url
|
|
217
|
+
})
|
|
218
|
+
.join(separator)
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
return (_ctx, _cache) => {
|
|
222
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
223
|
+
const _component_el_button = resolveComponent("el-button");
|
|
224
|
+
const _component_el_upload = resolveComponent("el-upload");
|
|
225
|
+
const _component_el_link = resolveComponent("el-link");
|
|
226
|
+
|
|
227
|
+
return (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
228
|
+
createVNode(_component_el_upload, {
|
|
229
|
+
ref_key: "fileUploadRef",
|
|
230
|
+
ref: fileUploadRef,
|
|
231
|
+
multiple: "",
|
|
232
|
+
action: __props.action,
|
|
233
|
+
"before-upload": handleBeforeUpload,
|
|
234
|
+
"file-list": fileList.value,
|
|
235
|
+
limit: __props.limit,
|
|
236
|
+
"on-error": handleUploadError,
|
|
237
|
+
"on-exceed": handleExceed,
|
|
238
|
+
"on-success": handleUploadSuccess,
|
|
239
|
+
"on-remove": handleRemove,
|
|
240
|
+
"show-file-list": false,
|
|
241
|
+
headers: __props.headers,
|
|
242
|
+
class: "upload-file-uploader"
|
|
243
|
+
}, {
|
|
244
|
+
default: withCtx(() => [
|
|
245
|
+
createCommentVNode(" 上传按钮 "),
|
|
246
|
+
createVNode(_component_el_button, { type: "primary" }, {
|
|
247
|
+
default: withCtx(() => [
|
|
248
|
+
createVNode(_component_el_icon, { class: "el-icon--left" }, {
|
|
249
|
+
default: withCtx(() => [
|
|
250
|
+
createVNode(unref(Upload))
|
|
251
|
+
]),
|
|
252
|
+
_: 1 /* STABLE */
|
|
253
|
+
}),
|
|
254
|
+
_cache[0] || (_cache[0] = createTextVNode(" 选取文件 ", -1 /* CACHED */))
|
|
255
|
+
]),
|
|
256
|
+
_: 1 /* STABLE */
|
|
257
|
+
})
|
|
258
|
+
]),
|
|
259
|
+
_: 1 /* STABLE */
|
|
260
|
+
}, 8 /* PROPS */, ["action", "file-list", "limit", "headers"]),
|
|
261
|
+
createCommentVNode(" 上传提示 "),
|
|
262
|
+
(showTip.value)
|
|
263
|
+
? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
264
|
+
_cache[3] || (_cache[3] = createTextVNode(" 请上传 ", -1 /* CACHED */)),
|
|
265
|
+
(__props.fileSize)
|
|
266
|
+
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
267
|
+
_cache[1] || (_cache[1] = createTextVNode(" 大小不超过 ", -1 /* CACHED */)),
|
|
268
|
+
createElementVNode("b", _hoisted_3, toDisplayString(__props.fileSize) + "MB", 1 /* TEXT */)
|
|
269
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
270
|
+
: createCommentVNode("v-if", true),
|
|
271
|
+
(__props.fileType && __props.fileType.length)
|
|
272
|
+
? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
273
|
+
_cache[2] || (_cache[2] = createTextVNode(" 格式为 ", -1 /* CACHED */)),
|
|
274
|
+
createElementVNode("b", _hoisted_4, toDisplayString(__props.fileType.join("/")), 1 /* TEXT */)
|
|
275
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
276
|
+
: createCommentVNode("v-if", true),
|
|
277
|
+
_cache[4] || (_cache[4] = createTextVNode(" 的文件 ", -1 /* CACHED */))
|
|
278
|
+
]))
|
|
279
|
+
: createCommentVNode("v-if", true),
|
|
280
|
+
createCommentVNode(" 文件列表 "),
|
|
281
|
+
createVNode(TransitionGroup, {
|
|
282
|
+
class: "upload-file-list el-upload-list el-upload-list--text",
|
|
283
|
+
name: "el-fade-in-linear",
|
|
284
|
+
tag: "ul"
|
|
285
|
+
}, {
|
|
286
|
+
default: withCtx(() => [
|
|
287
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(fileList.value, (file, index) => {
|
|
288
|
+
return (openBlock(), createElementBlock("li", {
|
|
289
|
+
key: file.uid || index,
|
|
290
|
+
class: "el-upload-list__item ele-upload-list__item-content"
|
|
291
|
+
}, [
|
|
292
|
+
createVNode(_component_el_link, {
|
|
293
|
+
href: getFileUrl(file.url),
|
|
294
|
+
underline: "never",
|
|
295
|
+
target: "_blank"
|
|
296
|
+
}, {
|
|
297
|
+
default: withCtx(() => [
|
|
298
|
+
createVNode(_component_el_icon, { class: "el-icon--left" }, {
|
|
299
|
+
default: withCtx(() => [
|
|
300
|
+
createVNode(unref(Document))
|
|
301
|
+
]),
|
|
302
|
+
_: 1 /* STABLE */
|
|
303
|
+
}),
|
|
304
|
+
createElementVNode("span", null, toDisplayString(getFileName(file.name)), 1 /* TEXT */)
|
|
305
|
+
]),
|
|
306
|
+
_: 2 /* DYNAMIC */
|
|
307
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["href"]),
|
|
308
|
+
createElementVNode("div", _hoisted_5, [
|
|
309
|
+
createVNode(_component_el_link, {
|
|
310
|
+
underline: "never",
|
|
311
|
+
onClick: $event => (handleDelete(index)),
|
|
312
|
+
type: "danger"
|
|
313
|
+
}, {
|
|
314
|
+
default: withCtx(() => [...(_cache[5] || (_cache[5] = [
|
|
315
|
+
createTextVNode("删除", -1 /* CACHED */)
|
|
316
|
+
]))]),
|
|
317
|
+
_: 1 /* STABLE */
|
|
318
|
+
}, 8 /* PROPS */, ["onClick"])
|
|
319
|
+
])
|
|
320
|
+
]))
|
|
321
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
322
|
+
]),
|
|
323
|
+
_: 1 /* STABLE */
|
|
324
|
+
})
|
|
325
|
+
]))
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
});
|
|
330
|
+
var FileUpload = /*#__PURE__*/_export_sfc(_sfc_main, [['__scopeId',"data-v-cc8b9b13"]]);
|
|
331
|
+
|
|
332
|
+
export { FileUpload as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import styleInject from '../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs';
|
|
2
|
+
|
|
3
|
+
var css_248z = ".component-upload-file .upload-file-uploader[data-v-cc8b9b13] {\n margin-bottom: 5px;\n}\n.component-upload-file .el-upload__tip[data-v-cc8b9b13] {\n font-size: 12px;\n color: #606266;\n margin-top: 7px;\n}\n.component-upload-file .upload-file-list[data-v-cc8b9b13] {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.component-upload-file .upload-file-list .el-upload-list__item[data-v-cc8b9b13] {\n border: 1px solid #e4e7ed;\n line-height: 2;\n margin-bottom: 10px;\n position: relative;\n border-radius: 4px;\n padding: 8px 10px;\n transition: all 0.3s;\n}\n.component-upload-file .upload-file-list .el-upload-list__item[data-v-cc8b9b13]:hover {\n background-color: #f5f7fa;\n}\n.component-upload-file .upload-file-list .ele-upload-list__item-content[data-v-cc8b9b13] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: inherit;\n}\n.component-upload-file .upload-file-list .ele-upload-list__item-content .el-link[data-v-cc8b9b13] {\n flex: 1;\n margin-right: 10px;\n}\n.component-upload-file .upload-file-list .ele-upload-list__item-content-action .el-link[data-v-cc8b9b13] {\n margin-right: 10px;\n}";
|
|
4
|
+
styleInject(css_248z);
|