# vue-file-upload
**Repository Path**: what_is_that/vue-file-upload
## Basic Information
- **Project Name**: vue-file-upload
- **Description**: vue.js ,vue-loader 上传文件,vue-file-upload,vue上传文件组件
- **Primary Language**: JavaScript
- **License**: Not specified
- **Default Branch**: develop
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2021-12-26
- **Last Updated**: 2021-12-26
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# vue-file-upload
[![NPM version][npm-image]][npm-url]
[![npm download][download-image]][download-url]
[npm-image]:http://img.shields.io/npm/v/vue-file-upload.svg?style=flat-square
[npm-url]:http://npmjs.org/package/vue-file-upload
[download-image]: https://img.shields.io/npm/dm/vue-file-upload.svg?style=flat-square
[download-url]: https://npmjs.org/package/vue-file-upload
vue.js ,vue-loader 上传文件,vue-file-upload
代码里面包含demo,运行:
```javascript
npm run dev
```
## install
### npm
```shell
npm install --save vue-file-upload
```
### CommonJS
```javascript
var VueFileUpload = require('vue-file-upload');
```
### ES6
app.vue
```javascript
vue-file-upload(url='upload.do',
v-bind:files.sync = 'files',
v-bind:filters = "filters",
v-bind:events = 'cbEvents',
v-bind:request-options = "reqopts")
table
thead
tr
th name
th size
th progress
th status
th action
tbody
tr(v-for='file in files')
td(v-text='file.name')
td(v-text='file.size')
td(v-text='file.progress')
td(v-text='onStatus(file)')
td
button(type='button',@click="uploadItem(file)") 上传
button(type='button',@click="uploadAll") 上传所有文件
```