easy-elplus 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/index.full.js +4430 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/index.mjs +35 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_DataView.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Hash.mjs +32 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.mjs +32 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Map.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.mjs +32 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Promise.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Set.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Stack.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.mjs +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_apply.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.mjs +25 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.mjs +42 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.mjs +28 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.mjs +25 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.mjs +140 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFlatten.mjs +35 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGet.mjs +24 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.mjs +28 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.mjs +47 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.mjs +60 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.mjs +33 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSlice.mjs +31 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.mjs +34 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.mjs +14 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnset.mjs +65 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_castPath.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.mjs +30 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.mjs +17 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.mjs +38 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_customOmitClone.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.mjs +11 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_flatRest.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.mjs +4 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.mjs +17 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getNative.mjs +17 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.mjs +46 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.mjs +30 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.mjs +25 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getTag.mjs +58 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getValue.mjs +13 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.mjs +15 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.mjs +17 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.mjs +30 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.mjs +23 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.mjs +23 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.mjs +77 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isFlattenable.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.mjs +25 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKey.mjs +29 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.mjs +15 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.mjs +13 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.mjs +35 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.mjs +19 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.mjs +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.mjs +30 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overArg.mjs +15 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overRest.mjs +36 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_parent.mjs +16 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_root.mjs +9 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setToString.mjs +14 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.mjs +37 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.mjs +15 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.mjs +14 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.mjs +14 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.mjs +34 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toKey.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toSource.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/constant.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/eq.mjs +37 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/flatten.mjs +22 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/identity.mjs +21 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArguments.mjs +36 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArray.mjs +26 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.mjs +33 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.mjs +38 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isFunction.mjs +37 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isLength.mjs +35 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isMap.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObject.mjs +31 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.mjs +29 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.mjs +62 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSet.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.mjs +29 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.mjs +27 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/keysIn.mjs +32 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/last.mjs +20 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/memoize.mjs +73 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/omit.mjs +57 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubArray.mjs +23 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.mjs +18 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toString.mjs +28 -0
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +28 -0
- package/es/packages/components/FileUpload/index.mjs +6 -0
- package/es/packages/components/FileUpload/src/FileUpload.vue.mjs +332 -0
- package/es/packages/components/FileUpload/src/FileUpload.vue2.mjs +4 -0
- package/es/packages/components/ImageUpload/index.mjs +6 -0
- package/es/packages/components/ImageUpload/src/ImageUpload.vue.mjs +258 -0
- package/es/packages/components/ImageUpload/src/ImageUpload.vue2.mjs +4 -0
- package/es/packages/components/button/index.mjs +10 -0
- package/es/packages/components/button/src/button.vue.mjs +42 -0
- package/es/packages/components/descriptions/index.mjs +10 -0
- package/es/packages/components/descriptions/src/comp.vue.mjs +58 -0
- package/es/packages/components/descriptions/src/descriptions.vue.mjs +178 -0
- package/es/packages/components/dialog/index.mjs +11 -0
- package/{packages/components/dialog/src/useDialog.js → es/packages/components/dialog/src/useDialog.mjs} +53 -50
- package/es/packages/components/table/index.mjs +10 -0
- package/es/packages/components/table/src/scrollTo.mjs +69 -0
- package/es/packages/components/table/src/table.vue.mjs +356 -0
- package/es/packages/components/table/src/table.vue2.mjs +4 -0
- package/es/packages/constants/event.mjs +3 -0
- package/{packages/hooks/src/useDynamicComponent.js → es/packages/hooks/src/useDynamicComponent.mjs} +11 -9
- package/es/packages/utils/type.mjs +9 -0
- package/{packages/utils/vue/appContext.js → es/packages/utils/vue/appContext.mjs} +6 -4
- package/es/packages/utils/vue/install.mjs +22 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +13 -0
- package/lib/index.js +46 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js +36 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js +36 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Map.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js +36 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Promise.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Set.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_apply.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.js +29 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js +46 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js +32 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js +29 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js +144 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFlatten.js +39 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGet.js +28 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +32 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js +51 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js +64 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js +37 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSlice.js +35 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.js +38 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js +18 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnset.js +69 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_castPath.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js +34 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js +21 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js +42 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_customOmitClone.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js +15 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_flatRest.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +8 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js +21 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js +21 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +50 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.js +34 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js +29 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getTag.js +60 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js +17 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js +19 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js +21 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js +34 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js +27 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js +27 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js +81 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isFlattenable.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js +29 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKey.js +33 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js +19 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js +17 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js +39 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js +23 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js +10 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js +34 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js +19 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js +40 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_parent.js +20 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_root.js +13 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setToString.js +18 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js +41 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js +19 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js +18 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js +18 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js +38 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toKey.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/constant.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/eq.js +41 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/flatten.js +26 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/identity.js +25 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js +40 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArray.js +30 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js +37 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js +42 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js +41 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isLength.js +39 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isMap.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +35 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +33 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.js +66 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSet.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +33 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js +31 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js +36 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/last.js +24 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/memoize.js +77 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/omit.js +61 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubArray.js +27 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js +22 -0
- package/lib/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toString.js +32 -0
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +32 -0
- package/lib/packages/components/FileUpload/index.js +11 -0
- package/lib/packages/components/FileUpload/src/FileUpload.vue.js +336 -0
- package/lib/packages/components/FileUpload/src/FileUpload.vue2.js +6 -0
- package/lib/packages/components/ImageUpload/index.js +11 -0
- package/lib/packages/components/ImageUpload/src/ImageUpload.vue.js +262 -0
- package/lib/packages/components/ImageUpload/src/ImageUpload.vue2.js +6 -0
- package/lib/packages/components/button/index.js +15 -0
- package/lib/packages/components/button/src/button.vue.js +46 -0
- package/lib/packages/components/descriptions/index.js +15 -0
- package/lib/packages/components/descriptions/src/comp.vue.js +62 -0
- package/lib/packages/components/descriptions/src/descriptions.vue.js +182 -0
- package/{packages → lib/packages}/components/dialog/index.js +7 -7
- package/lib/packages/components/dialog/src/useDialog.js +184 -0
- package/lib/packages/components/table/index.js +15 -0
- package/{packages → lib/packages}/components/table/src/scrollTo.js +26 -27
- package/lib/packages/components/table/src/table.vue.js +360 -0
- package/lib/packages/components/table/src/table.vue2.js +6 -0
- package/lib/packages/constants/event.js +5 -0
- package/lib/packages/hooks/src/useDynamicComponent.js +54 -0
- package/lib/packages/utils/type.js +15 -0
- package/lib/packages/utils/vue/appContext.js +28 -0
- package/lib/packages/utils/vue/install.js +24 -0
- package/package.json +59 -48
- package/.github/workflows/deploy.yml +0 -21
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -1
- package/.release-it.cjs +0 -22
- package/.vscode/extensions.json +0 -3
- package/.vscode/settings.json +0 -7
- package/commitlint.config.js +0 -145
- package/docs/.vitepress/config.mjs +0 -100
- package/docs/.vitepress/sidebar.js +0 -48
- package/docs/.vitepress/theme/index.js +0 -23
- package/docs/api-examples.md +0 -55
- package/docs/components/button.md +0 -53
- package/docs/components/descriptions.md +0 -88
- package/docs/components/dialog.md +0 -61
- package/docs/components/file-upload.md +0 -43
- package/docs/components/image-upload.md +0 -43
- package/docs/components/table.md +0 -113
- package/docs/contact-me/index.md +0 -11
- package/docs/demo/DialogFormContent.vue +0 -54
- package/docs/demo/button-basic.vue +0 -48
- package/docs/demo/descriptions-basic.vue +0 -159
- package/docs/demo/dialog-basic.vue +0 -137
- package/docs/demo/file-upload-basic.vue +0 -25
- package/docs/demo/image-upload-basic.vue +0 -24
- package/docs/demo/table-basic.vue +0 -177
- package/docs/guide/index.md +0 -52
- package/docs/guide/installation.md +0 -86
- package/docs/guide/quickstart.md +0 -75
- package/docs/index.md +0 -28
- package/docs/markdown-examples.md +0 -85
- package/docs/package.json +0 -23
- package/docs/public/logo.png +0 -0
- package/docs/public/qq.jpg +0 -0
- package/docs/public/wx.jpg +0 -0
- package/eslint.config.js +0 -1
- package/internal/build/copyFiles.js +0 -26
- package/internal/build/full-bundle.js +0 -48
- package/internal/build/gulpfile.js +0 -6
- package/internal/build/modules.js +0 -64
- package/internal/build/package.json +0 -23
- package/internal/eslint-config/index.js +0 -35
- package/internal/eslint-config/package.json +0 -21
- package/packages/components/FileUpload/index.js +0 -8
- package/packages/components/FileUpload/src/FileUpload.vue +0 -308
- package/packages/components/ImageUpload/index.js +0 -8
- package/packages/components/ImageUpload/src/ImageUpload.vue +0 -221
- package/packages/components/button/index.js +0 -11
- package/packages/components/button/src/button.vue +0 -32
- package/packages/components/descriptions/index.js +0 -11
- package/packages/components/descriptions/src/comp.vue +0 -39
- package/packages/components/descriptions/src/descriptions.vue +0 -138
- package/packages/components/index.js +0 -6
- package/packages/components/package.json +0 -20
- package/packages/components/table/index.js +0 -11
- package/packages/components/table/src/table.vue +0 -300
- package/packages/constants/event.js +0 -3
- package/packages/constants/index.js +0 -1
- package/packages/constants/package.json +0 -13
- package/packages/easy-elplus/index.js +0 -36
- package/packages/easy-elplus/package.json +0 -62
- package/packages/hooks/index.js +0 -1
- package/packages/hooks/package.json +0 -13
- package/packages/utils/index.js +0 -3
- package/packages/utils/package.json +0 -16
- package/packages/utils/type.js +0 -6
- package/packages/utils/vue/install.js +0 -36
- package/play/README.md +0 -5
- package/play/index.html +0 -13
- package/play/package.json +0 -19
- package/play/public/vite.svg +0 -1
- package/play/src/App.vue +0 -151
- package/play/src/main.js +0 -13
- package/play/src/router/index.js +0 -45
- package/play/src/testComp/AgeComp.vue +0 -9
- package/play/src/testComp/AsyncDemo.vue +0 -43
- package/play/src/testComp/CustomFooter.vue +0 -34
- package/play/src/testComp/DialogContent.vue +0 -172
- package/play/src/testComp/HeaderComp.vue +0 -1
- package/play/src/testComp/HtmlContent.vue +0 -8
- package/play/src/testComp/NestedDemo.vue +0 -15
- package/play/src/views/button.vue +0 -18
- package/play/src/views/descriptions.vue +0 -194
- package/play/src/views/dialog.vue +0 -283
- package/play/src/views/file-upload.vue +0 -170
- package/play/src/views/image-upload.vue +0 -100
- package/play/src/views/table.vue +0 -185
- package/play/test/index.html +0 -31
- package/play/vite.config.js +0 -14
- package/pnpm-workspace.yaml +0 -11
- package/prettier.config.js +0 -39
- package/public/qq.jpg +0 -0
package/.vscode/settings.json
DELETED
package/commitlint.config.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "cz-git"
|
|
2
|
-
|
|
3
|
-
export default defineConfig({
|
|
4
|
-
// 继承 commitlint 的 conventional 规范
|
|
5
|
-
// 约束最终生成的 commit message 格式
|
|
6
|
-
extends: ["@commitlint/config-conventional"],
|
|
7
|
-
|
|
8
|
-
// commitlint 校验规则(可按需补充)
|
|
9
|
-
rules: {
|
|
10
|
-
// @see https://commitlint.js.org/#/reference-rules
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
// cz-git 交互式提交配置
|
|
14
|
-
prompt: {
|
|
15
|
-
// 快捷别名:输入 fd 等价于 docs: fix typos
|
|
16
|
-
alias: {
|
|
17
|
-
fd: "docs: fix typos"
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
// 交互过程中的提示文案
|
|
21
|
-
messages: {
|
|
22
|
-
type: "选择你要提交的类型 :",
|
|
23
|
-
scope: "选择一个提交范围(可选):",
|
|
24
|
-
customScope: "请输入自定义的提交范围 :",
|
|
25
|
-
subject: "填写简短精炼的变更描述 :\n",
|
|
26
|
-
body: '填写更加详细的变更描述(可选)。使用 "|" 换行 :\n',
|
|
27
|
-
breaking: '列举非兼容性重大的变更(可选)。使用 "|" 换行 :\n',
|
|
28
|
-
footerPrefixesSelect: "选择关联 issue 前缀(可选):",
|
|
29
|
-
customFooterPrefix: "输入自定义 issue 前缀 :",
|
|
30
|
-
footer: "列举关联 issue(可选)例如: #31, #I3244 :\n",
|
|
31
|
-
confirmCommit: "是否提交或修改 commit ?"
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
// 提交类型(type)列表
|
|
35
|
-
// 会作为第一步选择项
|
|
36
|
-
types: [
|
|
37
|
-
{ value: "feat", name: "feat: 新增功能 | A new feature" },
|
|
38
|
-
{ value: "fix", name: "fix: 修复缺陷 | A bug fix" },
|
|
39
|
-
{
|
|
40
|
-
value: "docs",
|
|
41
|
-
name: "docs: 文档更新 | Documentation only changes"
|
|
42
|
-
},
|
|
43
|
-
{ value: "style", name: "style: 代码格式 | 不影响逻辑的样式调整" },
|
|
44
|
-
{ value: "refactor", name: "refactor: 代码重构 | 既不是修复也不是新增" },
|
|
45
|
-
{ value: "perf", name: "perf: 性能提升 | 提升性能的代码修改" },
|
|
46
|
-
{ value: "test", name: "test: 测试相关 | 测试用例新增或修复" },
|
|
47
|
-
{ value: "build", name: "build: 构建相关 | 构建系统或依赖变更" },
|
|
48
|
-
{ value: "ci", name: "ci: 持续集成 | CI 配置或脚本修改" },
|
|
49
|
-
{ value: "revert", name: "revert: 回退代码 | 回滚某次提交" },
|
|
50
|
-
{ value: "chore", name: "chore: 其他修改 | 非 src / test 变更" }
|
|
51
|
-
],
|
|
52
|
-
|
|
53
|
-
// 是否在 commit message 中使用 emoji
|
|
54
|
-
useEmoji: false,
|
|
55
|
-
|
|
56
|
-
// emoji 对齐方式(启用 emoji 时生效)
|
|
57
|
-
emojiAlign: "center",
|
|
58
|
-
|
|
59
|
-
// 是否启用 AI 自动生成 commit 描述
|
|
60
|
-
useAI: false,
|
|
61
|
-
|
|
62
|
-
// AI 生成候选数量
|
|
63
|
-
aiNumber: 1,
|
|
64
|
-
|
|
65
|
-
// 主题色(用于终端高亮)
|
|
66
|
-
themeColorCode: "",
|
|
67
|
-
|
|
68
|
-
// 预定义的 scope 列表(为空表示不限制)
|
|
69
|
-
scopes: [],
|
|
70
|
-
|
|
71
|
-
// 是否允许自定义 scope
|
|
72
|
-
allowCustomScopes: true,
|
|
73
|
-
|
|
74
|
-
// 是否允许 scope 为空
|
|
75
|
-
allowEmptyScopes: true,
|
|
76
|
-
|
|
77
|
-
// 自定义 scope 选项在列表中的位置
|
|
78
|
-
customScopesAlign: "bottom",
|
|
79
|
-
|
|
80
|
-
// 自定义 scope 的别名
|
|
81
|
-
customScopesAlias: "自定义",
|
|
82
|
-
|
|
83
|
-
// 空 scope 的别名
|
|
84
|
-
emptyScopesAlias: "空",
|
|
85
|
-
|
|
86
|
-
// subject 是否强制首字母大写(null 表示不限制)
|
|
87
|
-
upperCaseSubject: null,
|
|
88
|
-
|
|
89
|
-
// 是否强制询问 breaking change
|
|
90
|
-
markBreakingChangeMode: false,
|
|
91
|
-
|
|
92
|
-
// 哪些 type 允许出现 breaking change
|
|
93
|
-
allowBreakingChanges: ["feat", "fix"],
|
|
94
|
-
|
|
95
|
-
// 每行最大长度(超出自动换行)
|
|
96
|
-
breaklineNumber: 100,
|
|
97
|
-
|
|
98
|
-
// 换行符号(body / breaking 中使用)
|
|
99
|
-
breaklineChar: "|",
|
|
100
|
-
|
|
101
|
-
// 跳过的提问步骤(例如 ['scope', 'body'])
|
|
102
|
-
skipQuestions: [],
|
|
103
|
-
|
|
104
|
-
// issue 前缀选项(常用于 gitee / gitlab)
|
|
105
|
-
issuePrefixes: [
|
|
106
|
-
// 关联 issue(进行中)
|
|
107
|
-
{ value: "link", name: "link: 链接 ISSUES 进行中" },
|
|
108
|
-
// 关闭 issue
|
|
109
|
-
{ value: "closed", name: "closed: 标记 ISSUES 已完成" }
|
|
110
|
-
],
|
|
111
|
-
|
|
112
|
-
// 自定义 issue 前缀位置
|
|
113
|
-
customIssuePrefixAlign: "top",
|
|
114
|
-
|
|
115
|
-
// 不关联 issue 的别名
|
|
116
|
-
emptyIssuePrefixAlias: "空",
|
|
117
|
-
|
|
118
|
-
// 自定义 issue 前缀别名
|
|
119
|
-
customIssuePrefixAlias: "自定义",
|
|
120
|
-
|
|
121
|
-
// 是否允许自定义 issue 前缀
|
|
122
|
-
allowCustomIssuePrefix: true,
|
|
123
|
-
|
|
124
|
-
// 是否允许不填写 issue
|
|
125
|
-
allowEmptyIssuePrefix: true,
|
|
126
|
-
|
|
127
|
-
// 提交确认阶段是否高亮显示
|
|
128
|
-
confirmColorize: true,
|
|
129
|
-
|
|
130
|
-
// 针对不同 type 覆盖 scope(未使用)
|
|
131
|
-
scopeOverrides: undefined,
|
|
132
|
-
|
|
133
|
-
// body 默认值
|
|
134
|
-
defaultBody: "",
|
|
135
|
-
|
|
136
|
-
// issue 默认值
|
|
137
|
-
defaultIssues: "",
|
|
138
|
-
|
|
139
|
-
// scope 默认值
|
|
140
|
-
defaultScope: "",
|
|
141
|
-
|
|
142
|
-
// subject 默认值
|
|
143
|
-
defaultSubject: ""
|
|
144
|
-
}
|
|
145
|
-
})
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { sidebar } from "./sidebar" // 确保路径正确
|
|
2
|
-
import path from "path"
|
|
3
|
-
import { containerPreview, componentPreview } from "@vitepress-demo-preview/plugin"
|
|
4
|
-
const socialLinks = [{ icon: "github", link: "https://github.com/jiayc4215/easy-elplus" }]
|
|
5
|
-
import { defineConfig } from "vitepress"
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
// 部署路径 注意: 部署到github pages 时,需要将 base 设置为 仓库名
|
|
8
|
-
base: "/easy-elplus/",
|
|
9
|
-
lang: "zh-CN",
|
|
10
|
-
lastUpdated: true, //显示最后更新时间
|
|
11
|
-
ignoreDeadLinks: true, //忽略死链
|
|
12
|
-
themeConfig: {
|
|
13
|
-
logo: "/logo.png",
|
|
14
|
-
sidebar
|
|
15
|
-
},
|
|
16
|
-
// markdown 配置
|
|
17
|
-
markdown: {
|
|
18
|
-
theme: {
|
|
19
|
-
light: "github-light",
|
|
20
|
-
dark: "github-dark"
|
|
21
|
-
},
|
|
22
|
-
config(md) {
|
|
23
|
-
md.use(containerPreview)
|
|
24
|
-
md.use(componentPreview)
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
// 多语言配置
|
|
28
|
-
locales: {
|
|
29
|
-
// 这里的 root 代表默认语言(无前缀)
|
|
30
|
-
root: {
|
|
31
|
-
lang: "zh-CN",
|
|
32
|
-
|
|
33
|
-
title: "easy-elplus",
|
|
34
|
-
description: "基于 Element Plus 的增强组件库",
|
|
35
|
-
label: "简体中文",
|
|
36
|
-
//主题配置
|
|
37
|
-
themeConfig: {
|
|
38
|
-
nav: [
|
|
39
|
-
{ text: "指南", link: "/guide/", activeMatch: "^/guide/" },
|
|
40
|
-
{ text: "组件", link: "/components/button", activeMatch: "^/components/" },
|
|
41
|
-
{ text: "社区群", link: "/contact-me", activeMatch: "^/contact-me" }
|
|
42
|
-
],
|
|
43
|
-
// 社交链接
|
|
44
|
-
socialLinks: [
|
|
45
|
-
{
|
|
46
|
-
icon: {
|
|
47
|
-
svg: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M937.4 423.9c-84 0-165.7-27.3-232.9-77.8v352.3c0 179.9-138.6 325.6-309.6 325.6S85.3 878.3 85.3 698.4c0-179.9 138.6-325.6 309.6-325.6 17.1 0 33.7 1.5 49.9 4.3v186.6c-15.5-6.1-32-9.2-48.6-9.2-76.3 0-138.2 65-138.2 145.3 0 80.2 61.9 145.3 138.2 145.3 76.2 0 138.1-65.1 138.1-145.3V0H707c0 134.5 103.7 243.5 231.6 243.5v180.3l-1.2 0.1"></path></svg>'
|
|
48
|
-
},
|
|
49
|
-
link: "https://www.douyin.com/user/MS4wLjABAAAA0-8Y13O22cp4uPQ9rr_128pB28ioDjWLWRdGK4gVtxw"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
icon: {
|
|
53
|
-
svg: '<svg viewBox="0 0 1049 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M363.822 162.086l-96.96-93.983S251.714 49.46 277.346 28.36c25.76-20.972 27.056-11.651 35.73-5.826 8.672 5.826 144.21 139.551 144.21 139.551h-93.464z m322.08 3.496l96.962-93.984s15.146-18.641-10.486-39.742c-25.632-20.972-27.056-11.651-35.73-5.826-8.672 5.826-144.211 139.552-144.211 139.552h93.466z" ></path><path d="M1049.798 339.568c-3.495-147.19-131.396-175.152-131.396-175.152s-655.295-5.307-791.998 0C-10.3 202.994 0.186 339.568 0.186 339.568s1.813 292.565-0.13 440.66c14.759 148.096 128.938 171.656 128.938 171.656s45.567 0.906 78.837 0.906c3.495 9.58 6.084 56.054 57.866 56.054 51.652 0 57.866-56.054 57.866-56.054s378.523-1.812 409.98-1.812c1.812 15.793 9.58 58.643 61.36 57.866 51.653-0.906 55.149-61.361 55.149-61.361s17.476-1.813 70.034 0c122.593-22.784 129.713-166.478 129.713-166.478s-1.683-294.248 0-441.437zM944.292 808.06c0 23.172-18.382 42.072-41.037 42.072H157.214c-22.655 0-41.037-18.77-41.037-42.072V313.936c0-23.173 18.382-42.073 41.037-42.073h746.042c22.655 0 41.037 18.771 41.037 42.073V808.06z" ></path><path d="M194.755 453.487l219.037-42.073 16.57 82.333-217.223 42.073z m681.575 0l-219.036-42.073-16.7 82.333 217.353 42.073zM430.36 657.636s48.158 86.734 101.623-28.092c51.652 112.107 108.61 29.774 108.61 29.774l32.365 21.101s-60.455 97.22-140.2 23.69c-67.444 73.53-138.385-23.43-138.385-23.43l35.988-23.043z" ></path></svg>'
|
|
54
|
-
},
|
|
55
|
-
link: "https://space.bilibili.com/1525537842"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
icon: {
|
|
59
|
-
svg: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M1003.52 430.08c-12.288-143.36-118.784-253.952-258.048-262.144-118.784-6.144-245.76 0-360.448 0-143.36 0-266.24 114.688-266.24 258.048 0 81.92 0 163.84 0 245.76 0 143.36 122.88 258.048 266.24 258.048 114.688 0 245.76 6.144 360.448 0 143.36-8.192 245.76-118.784 258.048-262.144 4.096-90.112 4.096-188.416 0-279.648zM573.44 696.32c-110.592 0-200.704-90.112-200.704-200.704s90.112-200.704 200.704-200.704c73.728 0 143.36 40.96 176.128 106.496l-73.728 36.864c-20.48-36.864-57.344-61.44-102.4-61.44-65.536 0-118.784 53.248-118.784 118.784s53.248 118.784 118.784 118.784c45.056 0 81.92-24.576 102.4-61.44l73.728 36.864c-32.768 65.536-102.4 106.496-176.128 106.496z" fill="#FC5531"></path></svg>'
|
|
60
|
-
},
|
|
61
|
-
link: "https://blog.csdn.net/qq_63358859"
|
|
62
|
-
},
|
|
63
|
-
...socialLinks
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
// 这里的 en 代表英语(路径带 /en/)
|
|
68
|
-
en: {
|
|
69
|
-
lang: "en-US",
|
|
70
|
-
title: "easy-elplus",
|
|
71
|
-
description: "Enhanced Component Library Based on Element Plus",
|
|
72
|
-
label: "English",
|
|
73
|
-
link: "/en/",
|
|
74
|
-
themeConfig: {
|
|
75
|
-
nav: [
|
|
76
|
-
{ text: "Guide", link: "/en/guide/" },
|
|
77
|
-
{ text: "Components", link: "/en/components/button" }
|
|
78
|
-
],
|
|
79
|
-
socialLinks: [...socialLinks]
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
vite: {
|
|
84
|
-
server: {
|
|
85
|
-
port: 8090
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
resolve: {
|
|
89
|
-
alias: {
|
|
90
|
-
"easy-elplus": path.resolve(__dirname, "../../packages/components")
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
// 为了解决打包后,控制台不结束
|
|
95
|
-
buildEnd() {
|
|
96
|
-
setTimeout(() => {
|
|
97
|
-
process.exit(0)
|
|
98
|
-
}, 2000)
|
|
99
|
-
}
|
|
100
|
-
})
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export const sidebar = {
|
|
2
|
-
"/en/": [
|
|
3
|
-
{
|
|
4
|
-
text: "Guide",
|
|
5
|
-
items: [
|
|
6
|
-
{ text: "Introduction", link: "/en/guide/" },
|
|
7
|
-
{ text: "Quick Start", link: "/en/guide/quickstart" },
|
|
8
|
-
{ text: "Installation", link: "/en/guide/installation" }
|
|
9
|
-
]
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
text: "Components",
|
|
13
|
-
items: [
|
|
14
|
-
{ text: "Button", link: "/en/components/button" },
|
|
15
|
-
{ text: "Dialog", link: "/en/components/dialog" },
|
|
16
|
-
{ text: "Table", link: "/en/components/table" },
|
|
17
|
-
{ text: "Descriptions", link: "/en/components/descriptions" },
|
|
18
|
-
{ text: "Image Upload", link: "/en/components/image-upload" },
|
|
19
|
-
{ text: "File Upload", link: "/en/components/file-upload" }
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"/": [
|
|
24
|
-
{
|
|
25
|
-
text: "指南",
|
|
26
|
-
items: [
|
|
27
|
-
{ text: "介绍", link: "/guide/" },
|
|
28
|
-
{ text: "快速开始", link: "/guide/quickstart" },
|
|
29
|
-
{ text: "安装", link: "/guide/installation" }
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
text: "组件",
|
|
34
|
-
items: [
|
|
35
|
-
{ text: "Button 按钮", link: "/components/button" },
|
|
36
|
-
{ text: "Dialog 对话框", link: "/components/dialog" },
|
|
37
|
-
{ text: "Table 表格", link: "/components/table" },
|
|
38
|
-
{ text: "Descriptions 描述列表", link: "/components/descriptions" },
|
|
39
|
-
{ text: "ImageUpload 图片上传", link: "/components/image-upload" },
|
|
40
|
-
{ text: "FileUpload 文件上传", link: "/components/file-upload" }
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
text: "社区群",
|
|
45
|
-
link: "/contact-me/"
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import DefaultTheme from "vitepress/theme"
|
|
2
|
-
import { ElementPlusContainer } from "@vitepress-demo-preview/component"
|
|
3
|
-
import "@vitepress-demo-preview/component/dist/style.css"
|
|
4
|
-
|
|
5
|
-
import ElementPlus from "element-plus"
|
|
6
|
-
import "element-plus/dist/index.css"
|
|
7
|
-
import * as ElementPlusIconsVue from "@element-plus/icons-vue"
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
extends: DefaultTheme, // 继承默认主题
|
|
11
|
-
enhanceApp: async ({ app }) => {
|
|
12
|
-
// 注册图标
|
|
13
|
-
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
14
|
-
app.component(key, component)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// 注册 demo-preview 组件
|
|
18
|
-
app.component("demo-preview", ElementPlusContainer)
|
|
19
|
-
|
|
20
|
-
// 注册 ElementPlus
|
|
21
|
-
app.use(ElementPlus)
|
|
22
|
-
}
|
|
23
|
-
}
|
package/docs/api-examples.md
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
outline: deep
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Runtime API Examples
|
|
6
|
-
|
|
7
|
-
This page demonstrates usage of some of the runtime APIs provided by VitePress.
|
|
8
|
-
|
|
9
|
-
The main `useData()` API can be used to access site, theme, and page data for the current page. It works in both `.md` and `.vue` files:
|
|
10
|
-
|
|
11
|
-
```md
|
|
12
|
-
<script setup>
|
|
13
|
-
import { useData } from 'vitepress'
|
|
14
|
-
|
|
15
|
-
const { theme, page, frontmatter } = useData()
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
## Results
|
|
19
|
-
|
|
20
|
-
### Theme Data
|
|
21
|
-
|
|
22
|
-
<pre>{{ theme }}</pre>
|
|
23
|
-
|
|
24
|
-
### Page Data
|
|
25
|
-
|
|
26
|
-
<pre>{{ page }}</pre>
|
|
27
|
-
|
|
28
|
-
### Page Frontmatter
|
|
29
|
-
|
|
30
|
-
<pre>{{ frontmatter }}</pre>
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
<script setup>
|
|
34
|
-
import { useData } from 'vitepress'
|
|
35
|
-
|
|
36
|
-
const { site, theme, page, frontmatter } = useData()
|
|
37
|
-
</script>
|
|
38
|
-
|
|
39
|
-
## Results
|
|
40
|
-
|
|
41
|
-
### Theme Data
|
|
42
|
-
|
|
43
|
-
<pre>{{ theme }}</pre>
|
|
44
|
-
|
|
45
|
-
### Page Data
|
|
46
|
-
|
|
47
|
-
<pre>{{ page }}</pre>
|
|
48
|
-
|
|
49
|
-
### Page Frontmatter
|
|
50
|
-
|
|
51
|
-
<pre>{{ frontmatter }}</pre>
|
|
52
|
-
|
|
53
|
-
## More
|
|
54
|
-
|
|
55
|
-
Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata).
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Button 按钮
|
|
3
|
-
description: 增强的按钮组件,自动处理异步操作的加载状态
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Button 按钮
|
|
7
|
-
|
|
8
|
-
EasyButton 是基于 Element Plus 的 Button 组件封装的增强版本,主要特性是自动处理异步操作的加载状态。
|
|
9
|
-
|
|
10
|
-
## 在线演示
|
|
11
|
-
|
|
12
|
-
EasyButton 的核心特性是自动处理异步操作。当点击事件返回 Promise 时,按钮会自动显示加载状态,直到 Promise 完成。
|
|
13
|
-
|
|
14
|
-
<preview path="../demo/button-basic.vue" title="Button 基础示例" description="展示 Button 组件的各种用法"></preview>
|
|
15
|
-
|
|
16
|
-
## API
|
|
17
|
-
|
|
18
|
-
### Attributes
|
|
19
|
-
|
|
20
|
-
EasyButton 继承了 Element Plus Button 的所有属性,常用属性如下:
|
|
21
|
-
|
|
22
|
-
| 属性名 | 说明 | 类型 | 可选值 | 默认值 |
|
|
23
|
-
| -------- | -------------------------- | --------- | -------------------------------------------------- | ------ |
|
|
24
|
-
| type | 类型 | string | primary / success / warning / danger / info / text | — |
|
|
25
|
-
| size | 尺寸 | string | large / default / small | — |
|
|
26
|
-
| plain | 是否朴素按钮 | boolean | — | false |
|
|
27
|
-
| round | 是否圆角按钮 | boolean | — | false |
|
|
28
|
-
| circle | 是否圆形按钮 | boolean | — | false |
|
|
29
|
-
| loading | 是否加载中状态(手动控制) | boolean | — | false |
|
|
30
|
-
| disabled | 是否禁用状态 | boolean | — | false |
|
|
31
|
-
| icon | 图标组件 | Component | — | — |
|
|
32
|
-
|
|
33
|
-
### Events
|
|
34
|
-
|
|
35
|
-
| 事件名 | 说明 | 回调参数 |
|
|
36
|
-
| ------ | ---------------------- | ---------------------------------------------- |
|
|
37
|
-
| click | 点击事件,支持异步函数 | (event: MouseEvent) => void \| Promise\<void\> |
|
|
38
|
-
|
|
39
|
-
### Slots
|
|
40
|
-
|
|
41
|
-
| 插槽名 | 说明 |
|
|
42
|
-
| ------- | -------- |
|
|
43
|
-
| default | 按钮内容 |
|
|
44
|
-
|
|
45
|
-
## 特性说明
|
|
46
|
-
|
|
47
|
-
EasyButton 会自动检测 `click` 事件处理函数是否返回 Promise。如果返回 Promise,按钮会:
|
|
48
|
-
|
|
49
|
-
1. 立即进入加载状态(显示 loading 图标)
|
|
50
|
-
2. 等待 Promise 完成
|
|
51
|
-
3. 自动恢复正常状态
|
|
52
|
-
|
|
53
|
-
这样可以避免重复点击导致的重复提交问题。
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Descriptions 描述列表
|
|
3
|
-
description: 增强的描述列表组件,支持分组、动态渲染等
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Descriptions 描述列表
|
|
7
|
-
|
|
8
|
-
EasyDescriptions 是基于 Element Plus Descriptions 组件封装的增强版本,支持分组、动态组件、条件渲染等功能。
|
|
9
|
-
|
|
10
|
-
## 在线演示
|
|
11
|
-
|
|
12
|
-
<preview path="../demo/descriptions-basic.vue" title="Descriptions 基础示例" description="展示 Descriptions 组件的各种用法"></preview>
|
|
13
|
-
|
|
14
|
-
## API
|
|
15
|
-
|
|
16
|
-
### Attributes
|
|
17
|
-
|
|
18
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
19
|
-
| -------------------- | -------------- | ------ | ------ |
|
|
20
|
-
| items | 描述列表配置 | Array | [] |
|
|
21
|
-
| modelValue / v-model | 绑定的数据对象 | Object | {} |
|
|
22
|
-
|
|
23
|
-
继承 Element Plus Descriptions 的所有属性,如:
|
|
24
|
-
|
|
25
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
26
|
-
| --------- | -------------- | ------- | ---------- |
|
|
27
|
-
| column | 一行显示的列数 | Number | 3 |
|
|
28
|
-
| border | 是否带有边框 | Boolean | false |
|
|
29
|
-
| direction | 排列方向 | String | horizontal |
|
|
30
|
-
| size | 尺寸 | String | default |
|
|
31
|
-
|
|
32
|
-
### Items 配置
|
|
33
|
-
|
|
34
|
-
#### 单组模式
|
|
35
|
-
|
|
36
|
-
```javascript
|
|
37
|
-
interface Item {
|
|
38
|
-
label: string | object // 标签文本或配置对象
|
|
39
|
-
value: string | object // 字段名或配置对象
|
|
40
|
-
hidden?: boolean | ((data) => boolean) // 是否隐藏
|
|
41
|
-
span?: number // 占据的列数
|
|
42
|
-
// ... 其他 Descriptions 属性
|
|
43
|
-
}
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
#### 分组模式
|
|
47
|
-
|
|
48
|
-
```javascript
|
|
49
|
-
interface GroupItem {
|
|
50
|
-
title?: string // 分组标题
|
|
51
|
-
extra?: string // 操作区文本
|
|
52
|
-
items: Item[] // 该组的字段列表
|
|
53
|
-
hidden?: boolean | ((data) => boolean) // 是否隐藏整个分组
|
|
54
|
-
column?: number // 该组的列数
|
|
55
|
-
border?: boolean // 该组是否带边框
|
|
56
|
-
// ... 其他 DescriptionsItem 属性
|
|
57
|
-
}
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
#### Value 对象配置
|
|
61
|
-
|
|
62
|
-
```javascript
|
|
63
|
-
interface ValueConfig {
|
|
64
|
-
id: string // 字段名
|
|
65
|
-
components: string | Component // 组件名或组件
|
|
66
|
-
props: Object // 组件属性
|
|
67
|
-
}
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### Events
|
|
71
|
-
|
|
72
|
-
继承 Element Plus Descriptions 的所有事件。
|
|
73
|
-
|
|
74
|
-
### Slots
|
|
75
|
-
|
|
76
|
-
| 插槽名 | 说明 | 参数 |
|
|
77
|
-
| ------ | -------------- | ------------ |
|
|
78
|
-
| title | 自定义标题 | |
|
|
79
|
-
| extra | 自定义操作区 | |
|
|
80
|
-
| [id] | 自定义字段内容 | label|value |
|
|
81
|
-
|
|
82
|
-
## 特性说明
|
|
83
|
-
|
|
84
|
-
1. **简单展示**: 直接使用字符串配置
|
|
85
|
-
2. **表单编辑**: 使用组件配置实现可编辑的描述列表
|
|
86
|
-
3. **分组展示**: 使用分组模式组织复杂数据
|
|
87
|
-
4. **条件显示**: 使用 hidden 函数实现动态显示逻辑
|
|
88
|
-
5. **自定义渲染**: 使用插槽实现复杂的自定义需求
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Dialog 对话框
|
|
3
|
-
description: 命令式调用的对话框组件,支持组件载入、异步操作等
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Dialog 对话框
|
|
7
|
-
|
|
8
|
-
EasyDialog 是一个基于 Element Plus 的命令式对话框工具,支持函数式调用、组件载入、状态继承、异步操作等特性。
|
|
9
|
-
|
|
10
|
-
## 在线演示
|
|
11
|
-
|
|
12
|
-
<preview path="../demo/dialog-basic.vue" title="Dialog 基础示例" description="展示 Dialog 组件的各种用法"></preview>
|
|
13
|
-
|
|
14
|
-
::: details 表单弹窗组件
|
|
15
|
-
<<< ../demo/DialogFormContent.vue
|
|
16
|
-
:::
|
|
17
|
-
|
|
18
|
-
## API
|
|
19
|
-
|
|
20
|
-
### 函数签名
|
|
21
|
-
|
|
22
|
-
```javascript
|
|
23
|
-
EasyDialog(
|
|
24
|
-
component: Component, // 组件
|
|
25
|
-
componentProps?: object, // 组件属性
|
|
26
|
-
modalProps?: DialogOptions, // 对话框属性
|
|
27
|
-
context?: object // 应用上下文
|
|
28
|
-
): Promise<any>
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### DialogOptions
|
|
32
|
-
|
|
33
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
34
|
-
| ----------------- | ---------------------- | -------------------------------------- | -------- |
|
|
35
|
-
| title | 对话框标题 | string | '提示' |
|
|
36
|
-
| confirmButtonText | 确认按钮文字 | string | '确 认' |
|
|
37
|
-
| cancelButtonText | 取消按钮文字 | string | '取 消' |
|
|
38
|
-
| showConfirmButton | 是否显示确认按钮 | boolean | true |
|
|
39
|
-
| showCancelButton | 是否显示取消按钮 | boolean | true |
|
|
40
|
-
| methodKey | 确认时调用组件的方法名 | string | 'submit' |
|
|
41
|
-
| beforeClose | 关闭前回调 | (done) => void | — |
|
|
42
|
-
| onConfirm | 确认回调 | (instance) => void \| Promise\<void\> | — |
|
|
43
|
-
| onCancel | 取消回调 | () => void | — |
|
|
44
|
-
| footer | 自定义页脚渲染函数 | ({ close, confirm, loading }) => VNode | — |
|
|
45
|
-
| draggable | 是否可拖拽 | boolean | true |
|
|
46
|
-
| ...dialogProps | 其他原生 Dialog 属性 | — | — |
|
|
47
|
-
|
|
48
|
-
### 返回值
|
|
49
|
-
|
|
50
|
-
返回一个 Promise:
|
|
51
|
-
|
|
52
|
-
- **resolve**: 用户点击确认按钮
|
|
53
|
-
- **reject**: 用户点击取消按钮或关闭对话框
|
|
54
|
-
|
|
55
|
-
## 特性说明
|
|
56
|
-
|
|
57
|
-
1. **简单提示**: 使用字符串内容
|
|
58
|
-
2. **复杂内容**: 使用组件载入
|
|
59
|
-
3. **数据交互**: 通过 props 传递数据,通过 defineExpose 暴露方法
|
|
60
|
-
4. **异步操作**: 在 onConfirm 或组件方法中使用 async/await
|
|
61
|
-
5. **流程控制**: 利用 Promise 实现连续弹窗或条件弹窗
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: FileUpload 文件上传
|
|
3
|
-
description: 文件上传组件,支持多种文件类型和自动解析响应
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# FileUpload 文件上传
|
|
7
|
-
|
|
8
|
-
EasyFileUpload 是一个基于 Element Plus Upload 组件封装的文件上传组件。它简化了上传逻辑,支持文件类型和大小校验,并能自动从后端响应中提取文件链接。
|
|
9
|
-
|
|
10
|
-
## 在线演示
|
|
11
|
-
|
|
12
|
-
<preview path="../demo/file-upload-basic.vue" title="FileUpload 基础示例" description="展示文件上传的基本功能,包括类型校验和数量限制"></preview>
|
|
13
|
-
|
|
14
|
-
## API
|
|
15
|
-
|
|
16
|
-
### Attributes
|
|
17
|
-
|
|
18
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
19
|
-
| ------------- | ------------------------------------------------------------------------------ | ------------------------- | --------------------------------------------------- |
|
|
20
|
-
| v-model | 绑定值,支持逗号分隔的字符串、对象或数组 | `String / Object / Array` | — |
|
|
21
|
-
| action | 上传地址(必传) | `String` | — |
|
|
22
|
-
| limit | 最大上传数量 | `Number` | 5 |
|
|
23
|
-
| file-size | 文件大小限制 (MB) | `Number` | 5 |
|
|
24
|
-
| file-type | 允许的文件类型后缀 | `Array` | `["doc", "xls", "ppt", "txt", "pdf"]` |
|
|
25
|
-
| is-show-tip | 是否显示上传提示信息 | `Boolean` | true |
|
|
26
|
-
| headers | 设置上传的请求头部 | `Object` | `{}` |
|
|
27
|
-
| base-url | 基础路径。上传成功后保存时会尝试去除该前缀;回显时如果不是绝对路径会拼接该前缀 | `String` | "" |
|
|
28
|
-
| check-success | 自定义成功校验函数,接受响应对象作为参数 | `Function` | `res => res.code === 200 \|\| res.success === true` |
|
|
29
|
-
| response-path | 响应中文件地址所在的路径,支持深层嵌套(如 `data.url`) | `String` | "data" |
|
|
30
|
-
| error-field | 响应中错误消息所在的路径 | `String` | "msg" |
|
|
31
|
-
|
|
32
|
-
### Events
|
|
33
|
-
|
|
34
|
-
| 事件名 | 说明 | 回调参数 |
|
|
35
|
-
| ----------------- | ---------------- | ----------------- |
|
|
36
|
-
| update:modelValue | 绑定值变化时触发 | `(value: string)` |
|
|
37
|
-
|
|
38
|
-
## 特性说明
|
|
39
|
-
|
|
40
|
-
1. **自动提取 URL**: 无需手动处理 `on-success`,只需通过 `response-path` 配置即可。
|
|
41
|
-
2. **多文件支持**: 内置多文件上传支持,通过 `limit` 控制数量。
|
|
42
|
-
3. **格式校验**: 自动根据 `file-type` 进行后缀名匹配。
|
|
43
|
-
4. **路径处理**: 通过 `base-url` 方便地处理图片服务器前缀。
|