diff --git a/docs/markdown/en-US/uploader.md b/docs/markdown/en-US/uploader.md index 47ebd8850..d6a3a861d 100644 --- a/docs/markdown/en-US/uploader.md +++ b/docs/markdown/en-US/uploader.md @@ -43,6 +43,7 @@ You can set native properties such as `accpet`、`multiple` on Uploader, and the | Attribute | Description | Type | Default | Accepted Values | |-----------|-----------|-----------|-------------|-------------| | result-type | Type of file read result | `String` | `dataUrl` | `text` | +| accept | Accepted file type | `String` | `image/*` | - | | disabled | Whether to disabled the upload | `Boolean` | `false` | - | | before-read | Hook before reading the file, return false to stop reading the file | `Function` | - | - | | after-read | Hook after reading the file | `Function` | - | - | diff --git a/docs/markdown/zh-CN/uploader.md b/docs/markdown/zh-CN/uploader.md index 5fa38179a..eb1892c52 100644 --- a/docs/markdown/zh-CN/uploader.md +++ b/docs/markdown/zh-CN/uploader.md @@ -41,6 +41,7 @@ export default { | 参数 | 说明 | 类型 | 默认值 | 可选值 | |-----------|-----------|-----------|-------------|-------------| | result-type | 文件读取结果类型 | `String` | `dataUrl` | `text` | +| accept | 接受的文件类型 | `String` | `image/*` | - | | disabled | 是否禁用图片上传 | `Boolean` | `false` | - | | before-read | 读取前的回调函数,返回 false 可终止文件读取 | `Function` | - | - | | after-read | 读取完成后的回调函数 | `Function` | - | - | diff --git a/packages/uploader/index.vue b/packages/uploader/index.vue index 286e5ee82..e6a0d28ff 100644 --- a/packages/uploader/index.vue +++ b/packages/uploader/index.vue @@ -1,11 +1,12 @@