[Doc] use ts-style type
This commit is contained in:
+9
-9
@@ -101,15 +101,15 @@ export default {
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| v-model | Whether to show loading info,the `load` event will not be triggered when loading | `Boolean` | `false` |
|
||||
| finished | Whether loading is finished,the `load` event will not be triggered when finished | `Boolean` | `false` |
|
||||
| error | Whether loading is error,the `load` event will be triggered only when error text clicked, the `sync` modifier is needed | `Boolean` | `false` |
|
||||
| offset | The load event will be triggered when the distance between the scrollbar and the bottom is less than offset | `Number` | `300` |
|
||||
| loading-text | Loading text | `String` | `Loading...` |
|
||||
| finished-text | Finished text | `String` | - |
|
||||
| error-text | Error loaded text | `String` | - |
|
||||
| immediate-check | Whether to check loading position immediately after mounted | `Boolean` | `true` |
|
||||
| direction | Scroll direction,can be set to `up` | `String` | `down` |
|
||||
| v-model | Whether to show loading info,the `load` event will not be triggered when loading | `boolean` | `false` |
|
||||
| finished | Whether loading is finished,the `load` event will not be triggered when finished | `boolean` | `false` |
|
||||
| error | Whether loading is error,the `load` event will be triggered only when error text clicked, the `sync` modifier is needed | `boolean` | `false` |
|
||||
| offset | The load event will be triggered when the distance between the scrollbar and the bottom is less than offset | `number` | `300` |
|
||||
| loading-text | Loading text | `string` | `Loading...` |
|
||||
| finished-text | Finished text | `string` | - |
|
||||
| error-text | Error loaded text | `string` | - |
|
||||
| immediate-check | Whether to check loading position immediately after mounted | `boolean` | `true` |
|
||||
| direction | Scroll direction,can be set to `up` | `string` | `down` |
|
||||
|
||||
### Events
|
||||
|
||||
|
||||
@@ -137,15 +137,15 @@ List 初始化后会触发一次 load 事件,用于加载第一屏的数据,
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| v-model | 是否处于加载状态,加载过程中不触发`load`事件 | `Boolean` | `false` | - |
|
||||
| finished | 是否已加载完成,加载完成后不再触发`load`事件 | `Boolean` | `false` | - |
|
||||
| error | 是否加载失败,加载失败后点击错误提示可以重新<br>触发`load`事件,必须使用`sync`修饰符 | `Boolean` | `false` | - |
|
||||
| offset | 滚动条与底部距离小于 offset 时触发`load`事件 | `Number` | `300` | - |
|
||||
| loading-text | 加载过程中的提示文案 | `String` | `加载中...` | - |
|
||||
| finished-text | 加载完成后的提示文案 | `String` | - | - |
|
||||
| error-text | 加载失败后的提示文案 | `String` | - | 1.5.3 |
|
||||
| immediate-check | 是否在初始化时立即执行滚动位置检查 | `Boolean` | `true` | - |
|
||||
| direction | 滚动触发加载的方向,可选值为`up` | `String` | `down` | 1.6.16 |
|
||||
| v-model | 是否处于加载状态,加载过程中不触发`load`事件 | `boolean` | `false` | - |
|
||||
| finished | 是否已加载完成,加载完成后不再触发`load`事件 | `boolean` | `false` | - |
|
||||
| error | 是否加载失败,加载失败后点击错误提示可以重新<br>触发`load`事件,必须使用`sync`修饰符 | `boolean` | `false` | - |
|
||||
| offset | 滚动条与底部距离小于 offset 时触发`load`事件 | `number` | `300` | - |
|
||||
| loading-text | 加载过程中的提示文案 | `string` | `加载中...` | - |
|
||||
| finished-text | 加载完成后的提示文案 | `string` | - | - |
|
||||
| error-text | 加载失败后的提示文案 | `string` | - | 1.5.3 |
|
||||
| immediate-check | 是否在初始化时立即执行滚动位置检查 | `boolean` | `true` | - |
|
||||
| direction | 滚动触发加载的方向,可选值为`up` | `string` | `down` | 1.6.16 |
|
||||
|
||||
### Events
|
||||
|
||||
|
||||
Reference in New Issue
Block a user