[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

@@ -56,7 +56,7 @@ export default {
### API
| Attribute | Description | Type | Default |
|-----------|-----------|-----------|-------------|
|------|------|------|------|
| loading | Whether to show loading infothe `load` event will not be triggered when loading | `Boolean` | `false` |
| finished | Whether loading is finishedthe `load` event will not be triggered when finished | `Boolean` | `false` |
| offset | The load event will be triggered when the distance between the scrollbar and the bottom is less than offset | `Number` | `300` |
@@ -66,7 +66,7 @@ export default {
### Event
| Event | Description | Arguments |
|-----------|-----------|-----------|
|------|------|------|
| load | Triggered when the distance between the scrollbar and the bottom is less than offset | - |
### Methods
@@ -74,12 +74,12 @@ export default {
Use ref to get list instance and call instance methods
| Name | Attribute | Return value | Description |
|-----------|-----------|-----------|-------------|
|------|------|------|------|
| check | - | - | Check scroll position |
### Slot
| Name | Description |
|-----------|-----------|
|------|------|
| - | List content |
| loading | Custom loading tips |

View File

@@ -60,18 +60,18 @@ export default {
### API
| 参数 | 说明 | 类型 | 默认值 |
|-----------|-----------|-----------|-------------|
| loading | 是否处于加载状态,加载过程中不触发`load`事件 | `Boolean` | `false` |
| finished | 是否已加载完成,加载完成后不再触发`load`事件 | `Boolean` | `false` |
| offset | 滚动条与底部距离小于 offset 时触发`load`事件 | `Number` | `300` |
| loading-text | 加载中提示文案 | `String` | `加载中...` |
| immediate-check | 是否在初始化时立即执行滚动位置检查 | `Boolean` | `true` |
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| loading | 是否处于加载状态,加载过程中不触发`load`事件 | `Boolean` | `false` | - |
| finished | 是否已加载完成,加载完成后不再触发`load`事件 | `Boolean` | `false` | - |
| offset | 滚动条与底部距离小于 offset 时触发`load`事件 | `Number` | `300` | - |
| loading-text | 加载中提示文案 | `String` | `加载中...` | 1.1.1 |
| immediate-check | 是否在初始化时立即执行滚动位置检查 | `Boolean` | `true` | - |
### Event
| 事件名 | 说明 | 参数 |
|-----------|-----------|-----------|
|------|------|------|
| load | 滚动条与底部距离小于 offset 时触发 | - |
### 方法
@@ -79,22 +79,12 @@ export default {
通过 ref 可以获取到 list 实例并调用实例方法
| 方法名 | 参数 | 返回值 | 介绍 |
|-----------|-----------|-----------|-------------|
|------|------|------|------|
| check | - | - | 检查当前的滚动位置,若已滚动至底部,则会触发 load 事件 |
### Slot
| 名称 | 说明 |
|-----------|-----------|
|------|------|
| - | 列表内容 |
| loading | 自定义底部加载中提示 |
### 更新日志
| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 1.3.2 | feature | 新增 loading 插槽
| 1.1.16 | feature | 新增 check 方法
| 1.1.10 | bugfix | 修复不可见时依旧会触发 load 事件的问题
| 1.1.1 | feature | 新增 loading-text 属性
| 1.0.0 | breaking change | 新增组件