[Doc] Uploader: add description of multiple prop

This commit is contained in:
陈嘉涵
2019-05-27 16:22:22 +08:00
parent 4a1abc04f6
commit 1e6f5a2f5f
4 changed files with 2 additions and 39 deletions
+1 -10
View File
@@ -48,16 +48,6 @@ export default {
};
```
### Set input attrs
You can set native properties such as `accpet`、`multiple` on Uploader, and the input will automatically inherits the attribute.
```html
<van-uploader :after-read="onRead" accept="image/gif, image/jpeg" multiple>
<van-icon name="photograph" />
</van-uploader>
```
## API
### Props
@@ -68,6 +58,7 @@ You can set native properties such as `accpet`、`multiple` on Uploader, and the
| result-type | Type of file read result, can be set to `dataUrl` `text` | `String` | `dataUrl` |
| accept | Accepted file type | `String` | `image/*` |
| disabled | Whether to disabled the upload | `Boolean` | `false` |
| multiple | Whether to enable multiple selection pictures | `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` | - |
| max-size | Max size of file | `Number` | - |