0.6.1 • Published 5 years ago
v-input-file
Installation
> npm install v-input-file --save
> npm i v-input-file --save
Then you need to import and register it:
> import inputFile from 'v-input-file'
> Vue.use(inputFile)
Usage
<input-file v-model="fileList" :multiple="false"></input-file>
Props
| Name | Type | Default | Description |
|---|
| multiple | Boolean | false | Whether to support multi file upload? Currently, only false can be passed |
| fileList | Array | [] |
| btnColor | String | '#409eff' | btn's background color |
Events
| Name | Arguments | Description |
|---|
| update:fileList | Array | File information array |