mirror of https://github.com/ElemeFE/element
commit
399bdaf478
|
@ -152,3 +152,9 @@
|
||||||
| on-error | 可选参数, 文件上传失败时的钩子 | function(err, response, file) | — | — |
|
| on-error | 可选参数, 文件上传失败时的钩子 | function(err, response, file) | — | — |
|
||||||
| before-upload | 可选参数, 上传文件之前的钩子,参数为上传的文件,若返回 false 或者 Promise 则停止上传。 | function(file) | — | — |
|
| before-upload | 可选参数, 上传文件之前的钩子,参数为上传的文件,若返回 false 或者 Promise 则停止上传。 | function(file) | — | — |
|
||||||
| thumbnail-mode | 是否设置为图片模式,该模式下会显示图片缩略图 | boolean | — | false |
|
| thumbnail-mode | 是否设置为图片模式,该模式下会显示图片缩略图 | boolean | — | false |
|
||||||
|
|
||||||
|
### Upload Methods
|
||||||
|
|
||||||
|
| 方法名 | 说明 | 参数 |
|
||||||
|
|---------- |-------------- | - |
|
||||||
|
| clearFiles | 清空已上传的文件列表 | — |
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
:minlength="minlength"
|
:minlength="minlength"
|
||||||
:autocomplete="autoComplete"
|
:autocomplete="autoComplete"
|
||||||
:autofocus="autofocus"
|
:autofocus="autofocus"
|
||||||
|
:min="min"
|
||||||
|
:max="max"
|
||||||
:form="form"
|
:form="form"
|
||||||
:value="value"
|
:value="value"
|
||||||
ref="input"
|
ref="input"
|
||||||
|
@ -95,7 +97,9 @@
|
||||||
},
|
},
|
||||||
form: String,
|
form: String,
|
||||||
maxlength: Number,
|
maxlength: Number,
|
||||||
minlength: Number
|
minlength: Number,
|
||||||
|
max: {},
|
||||||
|
min: {}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue