Merge pull request #922 from baiyaaaaa/master

docs improve
pull/932/head
baiyaaaaa 2016-11-08 23:40:46 +08:00 committed by GitHub
commit 399bdaf478
2 changed files with 11 additions and 1 deletions

View File

@ -152,3 +152,9 @@
| on-error | 可选参数, 文件上传失败时的钩子 | function(err, response, file) | — | — |
| before-upload | 可选参数, 上传文件之前的钩子,参数为上传的文件,若返回 false 或者 Promise 则停止上传。 | function(file) | — | — |
| thumbnail-mode | 是否设置为图片模式,该模式下会显示图片缩略图 | boolean | — | false |
### Upload Methods
| 方法名 | 说明 | 参数 |
|---------- |-------------- | - |
| clearFiles | 清空已上传的文件列表 | — |

View File

@ -26,6 +26,8 @@
:minlength="minlength"
:autocomplete="autoComplete"
:autofocus="autofocus"
:min="min"
:max="max"
:form="form"
:value="value"
ref="input"
@ -95,7 +97,9 @@
},
form: String,
maxlength: Number,
minlength: Number
minlength: Number,
max: {},
min: {}
},
methods: {