Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue3-file-ud) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fileud-upload
一个基于 Vue3 的大文件上传/下载,拖拽、进度、类型/大小校验等功能。
安装
npm install vue3-fileUD使用
import FileUD from "vue3-fileUD";
// 在你的 Vue 组件中注册并使用<FileUD v-model="fileList" :action="uploadUrl" />Props
- modelValue / v-model:文件列表
- action:上传地址
- fileTypes:允许的文件类型
- fileSize:文件大小限制(MB)
- limit:最大数量
- ...(详见源码)
事件
- uploadSuccess
- download
说明
- 依赖 vue3、element-plus
- 支持 TypeScript
如需更多用法和自定义,请参考源码。