[new feature] Uploader: add max-count prop

This commit is contained in:
陈嘉涵
2019-06-04 15:53:19 +08:00
parent 03af04e81e
commit 47bb6fc7fa
8 changed files with 98 additions and 11 deletions
+11
View File
@@ -26,6 +26,16 @@ export default {
};
```
### Max Count
```html
<van-uploader
preview
multiple
:max-count="2"
/>
```
### Upload Style
```html
@@ -49,6 +59,7 @@ export default {
| 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` | - |
| max-count | Max count of image | `Number` | - |
| result-type | Type of file read result, can be set to `dataUrl` `text` | `String` | `dataUrl` |
| upload-text | Upload text | `String` | - |