mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
[Doc] update changelog
This commit is contained in:
@@ -41,7 +41,7 @@ You can set native properties such as `accpet`、`multiple` on Uploader, and the
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
|------|------|------|------|
|
||||
| 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` |
|
||||
@@ -52,17 +52,17 @@ You can set native properties such as `accpet`、`multiple` on Uploader, and the
|
||||
### Event
|
||||
|
||||
| Event | Description | Arguments |
|
||||
|-----------|-----------|-----------|
|
||||
|------|------|------|
|
||||
| oversize | Triggered when file size over limit | Same as after-read |
|
||||
|
||||
### Slot
|
||||
|
||||
| Name | Description |
|
||||
|-----------|-----------|
|
||||
|------|------|
|
||||
| - | Custom icon |
|
||||
|
||||
### afterRead parematers
|
||||
| Key | Description | Type |
|
||||
|-----------|-----------|-----------|
|
||||
|------|------|------|
|
||||
| file | file object | `Object` |
|
||||
| content | file content | `String` |
|
@@ -38,35 +38,29 @@ export default {
|
||||
|
||||
### API
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| result-type | 文件读取结果类型,可选值为 `dataUrl` `text` | `String` | `dataUrl` |
|
||||
| accept | 接受的文件类型 | `String` | `image/*` |
|
||||
| disabled | 是否禁用图片上传 | `Boolean` | `false` |
|
||||
| before-read | 读取前的回调函数,返回 false 可终止文件读取 | `Function` | - |
|
||||
| after-read | 读取完成后的回调函数 | `Function` | - |
|
||||
| max-size | 文件大小限制,单位为 byte | `Number` | - |
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| result-type | 文件读取结果类型,可选值为 `text` | `String` | `dataUrl` | - |
|
||||
| accept | 接受的文件类型 | `String` | `image/*` | - |
|
||||
| disabled | 是否禁用图片上传 | `Boolean` | `false` | - |
|
||||
| before-read | 读取前的回调函数,返回 false 可终止文件读取 | `Function` | - | - |
|
||||
| after-read | 读取完成后的回调函数 | `Function` | - | - |
|
||||
| max-size | 文件大小限制,单位为 byte | `Number` | - | - |
|
||||
|
||||
### Event
|
||||
|
||||
| 事件名 | 说明 | 参数 |
|
||||
|-----------|-----------|-----------|
|
||||
|------|------|------|
|
||||
| oversize | 文件大小超过限制时触发 | 同 after-read |
|
||||
|
||||
### Slot
|
||||
|
||||
| 名称 | 说明 |
|
||||
|-----------|-----------|
|
||||
|------|------|
|
||||
| - | 自定义 uploader 内容 |
|
||||
|
||||
### after-read 回调参数
|
||||
| key | 说明 | 类型 |
|
||||
|-----------|-----------|-----------|
|
||||
|------|------|------|
|
||||
| file | 文件解析后的 file 对象 | `Object` |
|
||||
| content | 文件内容 | `String` |
|
||||
|
||||
### 更新日志
|
||||
|
||||
| 版本 | 类型 | 内容 |
|
||||
|-----------|-----------|-----------|
|
||||
| 1.1.0 | bugfix | 修复安卓下无法上传图片的问题 |
|
||||
|
Reference in New Issue
Block a user