docs: type highlight (#4264)
This commit is contained in:
+18
-18
@@ -111,22 +111,22 @@ export default {
|
||||
|
||||
| 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 | Capture,can 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 |
|
||||
| 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 | Capture,can 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
|
||||
|
||||
@@ -146,5 +146,5 @@ export default {
|
||||
|
||||
| Attribute | Description | Type |
|
||||
|------|------|------|
|
||||
| file | File object | `object` |
|
||||
| detail | Detail info | `object` |
|
||||
| file | File object | *object* |
|
||||
| detail | Detail info | *object* |
|
||||
|
||||
Reference in New Issue
Block a user