[Doc] update changelog

This commit is contained in:
陈嘉涵
2018-10-18 18:50:23 +08:00
parent 2228e46733
commit 2e8d7e0b4f
107 changed files with 810 additions and 1212 deletions

View File

@@ -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` |

View File

@@ -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 | 修复安卓下无法上传图片的问题 |