docs: add version tip in en docs (#4262)

This commit is contained in:
neverland
2019-08-27 19:56:30 +08:00
committed by GitHub
parent 8ee0bef715
commit 959efb0ce6
88 changed files with 865 additions and 864 deletions
+17 -17
View File
@@ -109,23 +109,23 @@ export default {
### Props
| Attribute | Description | Type | Default |
|------|------|------|------|
| name | Input name | `string | number` | - |
| accept | Accepted file type | `string` | `image/*` |
| preview-size | Size of preview image | `string | number` | `80px` |
| preview-image | Whether to show image preview | `boolean` | `true` |
| preview-full-image | Whethe to show full screen image preview when click image | `boolean` | `true` |
| multiple | Whether to enable multiple selection pictures | `boolean` | `false` |
| disabled | Whether to disabled the upload | `boolean` | `false` |
| capture | Capturecan be set to `camera` | `string` | - |
| after-read | Hook after reading the file | `Function` | - |
| before-read | Hook before reading the file, return false to stop reading the file, can return Promise | `Function` | - |
| before-delete | Hook before delete the file, return false to stop reading the file, can return Promise | `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` | - |
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
| name | Input name | `string | number` | - | 2.0.3 |
| accept | Accepted file type | `string` | `image/*` | - |
| preview-size | Size of preview image | `string | number` | `80px` | - |
| preview-image | Whether to show image preview | `boolean` | `true` | 2.1.5 |
| preview-full-image | Whethe to show full screen image preview when click image | `boolean` | `true` | - |
| multiple | Whether to enable multiple selection pictures | `boolean` | `false` | - |
| disabled | Whether to disabled the upload | `boolean` | `false` | - |
| capture | Capturecan be set to `camera` | `string` | - | - |
| after-read | Hook after reading the file | `Function` | - | - |
| before-read | Hook before reading the file, return false to stop reading the file, can return Promise | `Function` | - | - |
| before-delete | Hook before delete the file, return false to stop reading the file, can return Promise | `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` | - | - |
| image-fit | Preview image fit mode | `string` | `cover` | 2.1.5 |
### Events