1.0.1 • Published 6 years ago

vue-web-upload v1.0.1

Weekly downloads
10
License
-
Repository
-
Last release
6 years ago

vue-webuploader

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

Api

成员说明类型默认值
upload_button上传按钮String--
cdn-url文件上传地址String--
form-data上传需要携带的附加参数Objectnull
accept上传指定的类型Objectnull
key-generator设置key参数functionfunction (file) { const currentTime = new Date().getTime();const key = currentTime + "." + file.name;return key;}
progress正在上传中回调方法function--
success上传成功回调方法function--
before上传前回调方法function--
error上传失败回调方法function--
complete上传完成回调方法,不管成功或者失败function--
multiple是否支持多文件上传Booleanfalse