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,258 @@
|
|
|
1
|
+
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, withCtx, unref, createTextVNode, Fragment, createElementVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
2
|
+
import { ElMessage } from 'element-plus';
|
|
3
|
+
import { Plus } from '@element-plus/icons-vue';
|
|
4
|
+
import { isString } from '../../../utils/type.mjs';
|
|
5
|
+
import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
|
6
|
+
import './ImageUpload.vue2.mjs';
|
|
7
|
+
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
8
|
+
|
|
9
|
+
const _hoisted_1 = { class: "component-upload-image" };
|
|
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 = ["src"];
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
const _sfc_main = /*@__PURE__*/Object.assign({ name: "EasyImageUpload" }, {
|
|
20
|
+
__name: 'ImageUpload',
|
|
21
|
+
props: {
|
|
22
|
+
modelValue: [String, Object, Array],
|
|
23
|
+
limit: { type: Number, default: 5 },
|
|
24
|
+
fileSize: { type: Number, default: 5 },
|
|
25
|
+
fileType: { type: Array, default: () => ["png", "jpg", "jpeg"] },
|
|
26
|
+
isShowTip: { type: Boolean, default: true },
|
|
27
|
+
action: { type: String, required: true },
|
|
28
|
+
headers: { type: Object, default: () => ({}) },
|
|
29
|
+
baseUrl: { type: String, default: "" },
|
|
30
|
+
|
|
31
|
+
checkSuccess: {
|
|
32
|
+
type: Function,
|
|
33
|
+
default: res => res.code === 200 || res.success === true
|
|
34
|
+
},
|
|
35
|
+
// 自定义提取图片地址的路径,支持 "data.url" 这种深层嵌套
|
|
36
|
+
responsePath: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "data"
|
|
39
|
+
},
|
|
40
|
+
// 错误消息提取字段
|
|
41
|
+
errorField: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: "msg"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
emits: [UPDATE_MODEL_EVENT],
|
|
47
|
+
setup(__props, { emit: __emit }) {
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
const props = __props;
|
|
52
|
+
|
|
53
|
+
const emit = __emit;
|
|
54
|
+
|
|
55
|
+
const number = ref(0);
|
|
56
|
+
const uploadList = ref([]);
|
|
57
|
+
const dialogImageUrl = ref("");
|
|
58
|
+
const dialogVisible = ref(false);
|
|
59
|
+
const fileList = ref([]);
|
|
60
|
+
const imageUploadRef = ref(null);
|
|
61
|
+
|
|
62
|
+
const showTip = computed(() => props.isShowTip && (props.fileType || props.fileSize));
|
|
63
|
+
|
|
64
|
+
// 深度解析对象属性 (例如把 res["data.imgUrl"] 转为 res.data.imgUrl)
|
|
65
|
+
const getDeepValue = (obj, path) => {
|
|
66
|
+
if (!path) return obj
|
|
67
|
+
return path.split(".").reduce((acc, key) => (acc && acc[key] !== undefined ? acc[key] : undefined), obj)
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
watch(
|
|
71
|
+
() => props.modelValue,
|
|
72
|
+
val => {
|
|
73
|
+
if (val) {
|
|
74
|
+
const list = Array.isArray(val) ? val : val.split(",");
|
|
75
|
+
fileList.value = list.map(item => {
|
|
76
|
+
if (isString(item)) {
|
|
77
|
+
let url = item;
|
|
78
|
+
if (!/^https?:\/\//.test(url) && props.baseUrl) {
|
|
79
|
+
url = props.baseUrl + item;
|
|
80
|
+
}
|
|
81
|
+
item = { name: getFileName(item), url: url };
|
|
82
|
+
}
|
|
83
|
+
return item
|
|
84
|
+
});
|
|
85
|
+
} else {
|
|
86
|
+
fileList.value = [];
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{ deep: true, immediate: true }
|
|
90
|
+
);
|
|
91
|
+
|
|
92
|
+
function handleBeforeUpload(file) {
|
|
93
|
+
let isImg = false;
|
|
94
|
+
if (props.fileType.length) {
|
|
95
|
+
const fileExtension = file.name.slice(file.name.lastIndexOf(".") + 1).toLowerCase();
|
|
96
|
+
isImg = props.fileType.map(t => t.toLowerCase()).includes(fileExtension);
|
|
97
|
+
} else {
|
|
98
|
+
isImg = file.type.indexOf("image") > -1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (!isImg) {
|
|
102
|
+
ElMessage.error(`格式不正确, 请上传${props.fileType.join("/")}图片!`);
|
|
103
|
+
return false
|
|
104
|
+
}
|
|
105
|
+
if (props.fileSize && file.size / 1024 / 1024 > props.fileSize) {
|
|
106
|
+
ElMessage.error(`大小不能超过 ${props.fileSize} MB!`);
|
|
107
|
+
return false
|
|
108
|
+
}
|
|
109
|
+
number.value++;
|
|
110
|
+
return true
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function handleExceed() {
|
|
114
|
+
ElMessage.error(`上传数量不能超过 ${props.limit} 个!`);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// 修改后的核心逻辑
|
|
118
|
+
function handleUploadSuccess(res, file) {
|
|
119
|
+
// 1. 使用传入的校验函数
|
|
120
|
+
if (props.checkSuccess(res)) {
|
|
121
|
+
// 2. 动态提取 URL
|
|
122
|
+
const url = getDeepValue(res, props.responsePath);
|
|
123
|
+
|
|
124
|
+
if (url) {
|
|
125
|
+
uploadList.value.push({ name: getFileName(url), url: url });
|
|
126
|
+
uploadedSuccessfully();
|
|
127
|
+
} else {
|
|
128
|
+
handleUploadError(`无法从响应中解析图片路径: ${props.responsePath}`);
|
|
129
|
+
}
|
|
130
|
+
} else {
|
|
131
|
+
number.value--;
|
|
132
|
+
const errorMsg = getDeepValue(res, props.errorField) || "上传失败";
|
|
133
|
+
ElMessage.error(errorMsg);
|
|
134
|
+
imageUploadRef.value.handleRemove(file);
|
|
135
|
+
uploadedSuccessfully();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function handleRemove(file) {
|
|
140
|
+
const findex = fileList.value.findIndex(f => f.name === file.name);
|
|
141
|
+
if (findex > -1) {
|
|
142
|
+
fileList.value.splice(findex, 1);
|
|
143
|
+
emit(UPDATE_MODEL_EVENT, listToString(fileList.value));
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function uploadedSuccessfully() {
|
|
148
|
+
if (number.value > 0 && uploadList.value.length === number.value) {
|
|
149
|
+
fileList.value = fileList.value.filter(f => f.url !== undefined).concat(uploadList.value);
|
|
150
|
+
uploadList.value = [];
|
|
151
|
+
number.value = 0;
|
|
152
|
+
emit(UPDATE_MODEL_EVENT, listToString(fileList.value));
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function handleUploadError(msg) {
|
|
157
|
+
ElMessage.error(isString(msg) ? msg : "上传图片失败");
|
|
158
|
+
number.value--;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function handlePictureCardPreview(file) {
|
|
162
|
+
dialogImageUrl.value = file.url;
|
|
163
|
+
dialogVisible.value = true;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function getFileName(name) {
|
|
167
|
+
if (!isString(name)) return ""
|
|
168
|
+
return name.slice(name.lastIndexOf("/") + 1)
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function listToString(list, separator = ",") {
|
|
172
|
+
return list
|
|
173
|
+
.filter(item => item.url && item.url.indexOf("blob:") !== 0)
|
|
174
|
+
.map(item => {
|
|
175
|
+
let url = item.url;
|
|
176
|
+
if (props.baseUrl && url.indexOf(props.baseUrl) === 0) {
|
|
177
|
+
url = url.replace(props.baseUrl, "");
|
|
178
|
+
}
|
|
179
|
+
return url
|
|
180
|
+
})
|
|
181
|
+
.join(separator)
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
return (_ctx, _cache) => {
|
|
185
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
186
|
+
const _component_el_upload = resolveComponent("el-upload");
|
|
187
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
188
|
+
|
|
189
|
+
return (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
190
|
+
createVNode(_component_el_upload, {
|
|
191
|
+
ref_key: "imageUploadRef",
|
|
192
|
+
ref: imageUploadRef,
|
|
193
|
+
multiple: "",
|
|
194
|
+
action: __props.action,
|
|
195
|
+
"list-type": "picture-card",
|
|
196
|
+
"on-success": handleUploadSuccess,
|
|
197
|
+
"before-upload": handleBeforeUpload,
|
|
198
|
+
limit: __props.limit,
|
|
199
|
+
"on-error": handleUploadError,
|
|
200
|
+
"on-exceed": handleExceed,
|
|
201
|
+
"on-remove": handleRemove,
|
|
202
|
+
"show-file-list": true,
|
|
203
|
+
headers: __props.headers,
|
|
204
|
+
"file-list": fileList.value,
|
|
205
|
+
"on-preview": handlePictureCardPreview,
|
|
206
|
+
class: normalizeClass({ hide: fileList.value.length >= __props.limit })
|
|
207
|
+
}, {
|
|
208
|
+
default: withCtx(() => [
|
|
209
|
+
createVNode(_component_el_icon, { class: "avatar-uploader-icon" }, {
|
|
210
|
+
default: withCtx(() => [
|
|
211
|
+
createVNode(unref(Plus))
|
|
212
|
+
]),
|
|
213
|
+
_: 1 /* STABLE */
|
|
214
|
+
})
|
|
215
|
+
]),
|
|
216
|
+
_: 1 /* STABLE */
|
|
217
|
+
}, 8 /* PROPS */, ["action", "limit", "headers", "file-list", "class"]),
|
|
218
|
+
(showTip.value)
|
|
219
|
+
? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
220
|
+
_cache[3] || (_cache[3] = createTextVNode(" 请上传 ", -1 /* CACHED */)),
|
|
221
|
+
(__props.fileSize)
|
|
222
|
+
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
223
|
+
_cache[1] || (_cache[1] = createTextVNode(" 大小不超过 ", -1 /* CACHED */)),
|
|
224
|
+
createElementVNode("b", _hoisted_3, toDisplayString(__props.fileSize) + "MB", 1 /* TEXT */)
|
|
225
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
226
|
+
: createCommentVNode("v-if", true),
|
|
227
|
+
(__props.fileType)
|
|
228
|
+
? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
229
|
+
_cache[2] || (_cache[2] = createTextVNode(" 格式为 ", -1 /* CACHED */)),
|
|
230
|
+
createElementVNode("b", _hoisted_4, toDisplayString(__props.fileType.join("/")), 1 /* TEXT */)
|
|
231
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
232
|
+
: createCommentVNode("v-if", true),
|
|
233
|
+
_cache[4] || (_cache[4] = createTextVNode(" 的文件 ", -1 /* CACHED */))
|
|
234
|
+
]))
|
|
235
|
+
: createCommentVNode("v-if", true),
|
|
236
|
+
createVNode(_component_el_dialog, {
|
|
237
|
+
modelValue: dialogVisible.value,
|
|
238
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((dialogVisible).value = $event)),
|
|
239
|
+
title: "预览",
|
|
240
|
+
width: "800px",
|
|
241
|
+
"append-to-body": ""
|
|
242
|
+
}, {
|
|
243
|
+
default: withCtx(() => [
|
|
244
|
+
createElementVNode("img", {
|
|
245
|
+
src: dialogImageUrl.value,
|
|
246
|
+
style: {"display":"block","max-width":"100%","margin":"0 auto"}
|
|
247
|
+
}, null, 8 /* PROPS */, _hoisted_5)
|
|
248
|
+
]),
|
|
249
|
+
_: 1 /* STABLE */
|
|
250
|
+
}, 8 /* PROPS */, ["modelValue"])
|
|
251
|
+
]))
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
});
|
|
256
|
+
var ImageUpload = /*#__PURE__*/_export_sfc(_sfc_main, [['__scopeId',"data-v-9ac7dd1b"]]);
|
|
257
|
+
|
|
258
|
+
export { ImageUpload 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 = "\n/* 保持原有样式 */\n.component-upload-image[data-v-9ac7dd1b] .el-upload--picture-card {\n width: 100px;\n height: 100px;\n line-height: 110px;\n}\n.component-upload-image[data-v-9ac7dd1b] .el-upload-list--picture-card .el-upload-list__item {\n width: 100px;\n height: 100px;\n}\n.component-upload-image[data-v-9ac7dd1b] .hide .el-upload--picture-card {\n display: none;\n}\n";
|
|
4
|
+
styleInject(css_248z);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { withInstall } from '../../utils/vue/install.mjs';
|
|
2
|
+
import _sfc_main from './src/button.vue.mjs';
|
|
3
|
+
|
|
4
|
+
// 用来整合组件的,最终实现导出组件
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// 通过 withInstall 方法给 button 添加了一个 Vue3 插件所需的 install 方法
|
|
8
|
+
const EasyButton = withInstall(_sfc_main);
|
|
9
|
+
|
|
10
|
+
export { EasyButton, EasyButton as default };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ref, useAttrs, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
|
2
|
+
import { ElButton } from 'element-plus';
|
|
3
|
+
import { isFunction } from '../../../../node_modules/.pnpm/@vue_shared@3.5.27/node_modules/@vue/shared/dist/shared.esm-bundler.mjs';
|
|
4
|
+
import omit from '../../../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/omit.mjs';
|
|
5
|
+
|
|
6
|
+
const _sfc_main = /*@__PURE__*/Object.assign({
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
name: "EasyButton"
|
|
9
|
+
}, {
|
|
10
|
+
__name: 'button',
|
|
11
|
+
setup(__props) {
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
const loading = ref(false);
|
|
16
|
+
|
|
17
|
+
const attrs = useAttrs();
|
|
18
|
+
const onClick = async () => {
|
|
19
|
+
try {
|
|
20
|
+
loading.value = true;
|
|
21
|
+
|
|
22
|
+
if (isFunction(attrs.onClick)) {
|
|
23
|
+
await attrs.onClick();
|
|
24
|
+
}
|
|
25
|
+
} finally {
|
|
26
|
+
loading.value = false;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return (openBlock(), createBlock(unref(ElButton), mergeProps({ loading: loading.value }, unref(omit)(unref(attrs), 'onClick'), { onClick: onClick }), {
|
|
32
|
+
default: withCtx(() => [
|
|
33
|
+
renderSlot(_ctx.$slots, "default")
|
|
34
|
+
]),
|
|
35
|
+
_: 3 /* FORWARDED */
|
|
36
|
+
}, 16 /* FULL_PROPS */, ["loading"]))
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { withInstall } from '../../utils/vue/install.mjs';
|
|
2
|
+
import _sfc_main from './src/descriptions.vue.mjs';
|
|
3
|
+
|
|
4
|
+
// 用来整合组件的,最终实现导出组件
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// 通过 withInstall 方法给 button 添加了一个 Vue3 插件所需的 install 方法
|
|
8
|
+
const EasyDescriptions = withInstall(_sfc_main);
|
|
9
|
+
|
|
10
|
+
export { EasyDescriptions, EasyDescriptions as default };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { useModel, renderSlot, openBlock, createBlock, resolveDynamicComponent, unref, mergeProps, normalizeProps, mergeModels } from 'vue';
|
|
2
|
+
import { useDynamicComponent } from '../../../hooks/src/useDynamicComponent.mjs';
|
|
3
|
+
|
|
4
|
+
const _sfc_main = /*@__PURE__*/Object.assign({
|
|
5
|
+
name: "EasyDescriptionsComp"
|
|
6
|
+
}, {
|
|
7
|
+
__name: 'comp',
|
|
8
|
+
props: /*@__PURE__*/mergeModels({
|
|
9
|
+
id: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: ""
|
|
12
|
+
},
|
|
13
|
+
components: {
|
|
14
|
+
type: [String, Number, Function, Object],
|
|
15
|
+
default: ""
|
|
16
|
+
},
|
|
17
|
+
props: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default: () => ({})
|
|
20
|
+
}
|
|
21
|
+
}, {
|
|
22
|
+
"modelValue": {},
|
|
23
|
+
"modelModifiers": {},
|
|
24
|
+
}),
|
|
25
|
+
emits: ["update:modelValue"],
|
|
26
|
+
setup(__props) {
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
const descriptionsData = useModel(__props, "modelValue");
|
|
33
|
+
|
|
34
|
+
const { getComponent } = useDynamicComponent();
|
|
35
|
+
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return renderSlot(_ctx.$slots, __props.components, {}, () => [
|
|
38
|
+
(__props.id)
|
|
39
|
+
? (openBlock(), createBlock(resolveDynamicComponent(unref(getComponent)(__props.components, descriptionsData.value)), mergeProps({
|
|
40
|
+
key: 0,
|
|
41
|
+
modelValue: descriptionsData.value[__props.id],
|
|
42
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((descriptionsData.value[__props.id]) = $event))
|
|
43
|
+
}, __props.props), null, 16 /* FULL_PROPS */, ["modelValue"]))
|
|
44
|
+
: (openBlock(), createBlock(resolveDynamicComponent(unref(getComponent)(__props.components)), normalizeProps(mergeProps({ key: 1 }, __props.props)), null, 16 /* FULL_PROPS */))
|
|
45
|
+
])
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { useModel, computed, openBlock, createElementBlock, Fragment, renderList, createBlock, unref, mergeProps, createSlots, withCtx, resolveDynamicComponent, h, createTextVNode, toDisplayString, renderSlot, mergeModels } from 'vue';
|
|
2
|
+
import { ElDescriptions, ElDescriptionsItem } from 'element-plus';
|
|
3
|
+
import { isFunction, isObject } from '../../../../node_modules/.pnpm/@vue_shared@3.5.27/node_modules/@vue/shared/dist/shared.esm-bundler.mjs';
|
|
4
|
+
import _sfc_main$1 from './comp.vue.mjs';
|
|
5
|
+
|
|
6
|
+
const _hoisted_1 = { class: "epl-descriptions" };
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const _sfc_main = /*@__PURE__*/Object.assign({
|
|
10
|
+
name: "EasyDescriptions"
|
|
11
|
+
}, {
|
|
12
|
+
__name: 'descriptions',
|
|
13
|
+
props: /*@__PURE__*/mergeModels({
|
|
14
|
+
items: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: () => []
|
|
17
|
+
}
|
|
18
|
+
}, {
|
|
19
|
+
"modelValue": {},
|
|
20
|
+
"modelModifiers": {},
|
|
21
|
+
}),
|
|
22
|
+
emits: ["update:modelValue"],
|
|
23
|
+
setup(__props, { expose: __expose }) {
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
const props = __props;
|
|
28
|
+
|
|
29
|
+
const descriptionsData = useModel(__props, "modelValue");
|
|
30
|
+
|
|
31
|
+
// 内部处理单个列表的函数
|
|
32
|
+
const normalizeItems = list => {
|
|
33
|
+
return list.reduce((prev, item) => {
|
|
34
|
+
const isHidden = isFunction(item.hidden) ? item.hidden(descriptionsData.value) : item.hidden;
|
|
35
|
+
|
|
36
|
+
if (isHidden) return prev
|
|
37
|
+
|
|
38
|
+
prev.push({
|
|
39
|
+
...item,
|
|
40
|
+
label: isObject(item.label)
|
|
41
|
+
? item.label
|
|
42
|
+
: {
|
|
43
|
+
components: item.label
|
|
44
|
+
},
|
|
45
|
+
value: isObject(item.value)
|
|
46
|
+
? item.value
|
|
47
|
+
: {
|
|
48
|
+
id: item.value,
|
|
49
|
+
components: item.value
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
return prev
|
|
54
|
+
}, [])
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const renderList$1 = computed(() => {
|
|
58
|
+
if (!props.items || props.items.length === 0) return []
|
|
59
|
+
|
|
60
|
+
// 判断是否为分组模式:第一项包含 items 字段且是一个数组
|
|
61
|
+
// 为了兼容性更好,这里假设如果 item 内部有 items 属性,则认为是分组
|
|
62
|
+
const isGroup = props.items.some(item => item.items && Array.isArray(item.items));
|
|
63
|
+
|
|
64
|
+
if (isGroup) {
|
|
65
|
+
// 分组模式
|
|
66
|
+
return props.items
|
|
67
|
+
.filter(group => {
|
|
68
|
+
const isHidden = isFunction(group.hidden) ? group.hidden(descriptionsData.value) : group.hidden;
|
|
69
|
+
return !isHidden
|
|
70
|
+
})
|
|
71
|
+
.map(group => {
|
|
72
|
+
// 分离出内部使用的属性,其他的属性放入 bindProps 透传给 el-descriptions
|
|
73
|
+
// eslint-disable-next-line no-unused-vars
|
|
74
|
+
const { extra, items, hidden, ...rest } = group;
|
|
75
|
+
return {
|
|
76
|
+
...group,
|
|
77
|
+
rows: normalizeItems(group.items),
|
|
78
|
+
bindProps: rest
|
|
79
|
+
}
|
|
80
|
+
})
|
|
81
|
+
} else {
|
|
82
|
+
// 单组模式:包装成一个默认分组
|
|
83
|
+
return [
|
|
84
|
+
{
|
|
85
|
+
rows: normalizeItems(props.items),
|
|
86
|
+
bindProps: {}
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
__expose({});
|
|
93
|
+
|
|
94
|
+
return (_ctx, _cache) => {
|
|
95
|
+
return (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
96
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(renderList$1.value, (group, index) => {
|
|
97
|
+
return (openBlock(), createBlock(unref(ElDescriptions), mergeProps({
|
|
98
|
+
key: index,
|
|
99
|
+
ref_for: true
|
|
100
|
+
}, { ..._ctx.$attrs, ...group.bindProps }, { style: {"margin-bottom":"20px"} }), createSlots({
|
|
101
|
+
default: withCtx(() => [
|
|
102
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(group.rows, (item) => {
|
|
103
|
+
return (openBlock(), createBlock(unref(ElDescriptionsItem), mergeProps({
|
|
104
|
+
key: item.label
|
|
105
|
+
}, { ref_for: true }, item), {
|
|
106
|
+
label: withCtx(() => [
|
|
107
|
+
(openBlock(), createBlock(resolveDynamicComponent(
|
|
108
|
+
h(
|
|
109
|
+
_sfc_main$1,
|
|
110
|
+
{
|
|
111
|
+
modelValue: descriptionsData.value,
|
|
112
|
+
...item.label
|
|
113
|
+
},
|
|
114
|
+
_ctx.$slots
|
|
115
|
+
)
|
|
116
|
+
)))
|
|
117
|
+
]),
|
|
118
|
+
default: withCtx(() => [
|
|
119
|
+
(openBlock(), createBlock(resolveDynamicComponent(
|
|
120
|
+
h(
|
|
121
|
+
_sfc_main$1,
|
|
122
|
+
{
|
|
123
|
+
modelValue: descriptionsData.value,
|
|
124
|
+
...item.value
|
|
125
|
+
},
|
|
126
|
+
_ctx.$slots
|
|
127
|
+
)
|
|
128
|
+
)))
|
|
129
|
+
]),
|
|
130
|
+
_: 2 /* DYNAMIC */
|
|
131
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */))
|
|
132
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
133
|
+
]),
|
|
134
|
+
_: 2 /* DYNAMIC */
|
|
135
|
+
}, [
|
|
136
|
+
(group.title || _ctx.$slots.title)
|
|
137
|
+
? {
|
|
138
|
+
name: "title",
|
|
139
|
+
fn: withCtx(() => [
|
|
140
|
+
(group.title)
|
|
141
|
+
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
142
|
+
createTextVNode(toDisplayString(group.title), 1 /* TEXT */)
|
|
143
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
144
|
+
: renderSlot(_ctx.$slots, "title", {
|
|
145
|
+
key: 1,
|
|
146
|
+
group: group,
|
|
147
|
+
index: index
|
|
148
|
+
})
|
|
149
|
+
]),
|
|
150
|
+
key: "0"
|
|
151
|
+
}
|
|
152
|
+
: undefined,
|
|
153
|
+
(group.extra || _ctx.$slots.extra)
|
|
154
|
+
? {
|
|
155
|
+
name: "extra",
|
|
156
|
+
fn: withCtx(() => [
|
|
157
|
+
(group.extra)
|
|
158
|
+
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
159
|
+
createTextVNode(toDisplayString(group.extra), 1 /* TEXT */)
|
|
160
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
161
|
+
: renderSlot(_ctx.$slots, "extra", {
|
|
162
|
+
key: 1,
|
|
163
|
+
group: group,
|
|
164
|
+
index: index
|
|
165
|
+
})
|
|
166
|
+
]),
|
|
167
|
+
key: "1"
|
|
168
|
+
}
|
|
169
|
+
: undefined
|
|
170
|
+
]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */))
|
|
171
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
172
|
+
]))
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useDialog } from './src/useDialog.mjs';
|
|
2
|
+
|
|
3
|
+
// Dialog 是一个命令式 API(函数式调用),而非 Vue 组件
|
|
4
|
+
// 用法: const dialog = useDialog(component, props, options)
|
|
5
|
+
// 或者: import { EasyDialog } from "@easy-elplus"; EasyDialog(...)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
// 导出命名函数,保持与其他组件命名一致性
|
|
9
|
+
const EasyDialog = useDialog;
|
|
10
|
+
|
|
11
|
+
export { EasyDialog, useDialog };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 全局应用上下文管理
|
|
3
|
+
* 用于在非组件上下文中访问主应用的配置、插件和全局组件
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
let globalAppContext = null;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 设置全局应用上下文
|
|
10
|
+
* 应该在主应用初始化时调用(通常在 app.use() 中)
|
|
11
|
+
* @param {AppContext} context - Vue 应用上下文
|
|
12
|
+
*/
|
|
13
|
+
function setGlobalAppContext(context) {
|
|
14
|
+
globalAppContext = context;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 获取全局应用上下文
|
|
19
|
+
* @returns {AppContext | null}
|
|
20
|
+
*/
|
|
21
|
+
function getGlobalAppContext() {
|
|
22
|
+
return globalAppContext
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { getGlobalAppContext, setGlobalAppContext };
|