mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-26 03:16:35 +08:00
feat(List): offset can be string
This commit is contained in:
parent
1af1f4ac4f
commit
b32705cf93
@ -147,7 +147,7 @@ export default {
|
|||||||
| v-model | Whether to show loading info,the `load` event will not be triggered when loading | *boolean* | `false` |
|
| 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` |
|
| 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` |
|
| 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` |
|
| offset | The load event will be triggered when the distance between the scrollbar and the bottom is less than offset | *number \| string* | `300` |
|
||||||
| loading-text | Loading text | *string* | `Loading...` |
|
| loading-text | Loading text | *string* | `Loading...` |
|
||||||
| finished-text | Finished text | *string* | - |
|
| finished-text | Finished text | *string* | - |
|
||||||
| error-text | Error loaded text | *string* | - |
|
| error-text | Error loaded text | *string* | - |
|
||||||
|
@ -162,7 +162,7 @@ export default {
|
|||||||
| v-model | 是否处于加载状态,加载过程中不触发`load`事件 | *boolean* | `false` |
|
| v-model | 是否处于加载状态,加载过程中不触发`load`事件 | *boolean* | `false` |
|
||||||
| finished | 是否已加载完成,加载完成后不再触发`load`事件 | *boolean* | `false` |
|
| finished | 是否已加载完成,加载完成后不再触发`load`事件 | *boolean* | `false` |
|
||||||
| error | 是否加载失败,加载失败后点击错误提示可以重新<br>触发`load`事件,必须使用`sync`修饰符 | *boolean* | `false` |
|
| error | 是否加载失败,加载失败后点击错误提示可以重新<br>触发`load`事件,必须使用`sync`修饰符 | *boolean* | `false` |
|
||||||
| offset | 滚动条与底部距离小于 offset 时触发`load`事件 | *number* | `300` |
|
| offset | 滚动条与底部距离小于 offset 时触发`load`事件 | *number \| string* | `300` |
|
||||||
| loading-text | 加载过程中的提示文案 | *string* | `加载中...` |
|
| loading-text | 加载过程中的提示文案 | *string* | `加载中...` |
|
||||||
| finished-text | 加载完成后的提示文案 | *string* | - |
|
| finished-text | 加载完成后的提示文案 | *string* | - |
|
||||||
| error-text | 加载失败后的提示文案 | *string* | - |
|
| error-text | 加载失败后的提示文案 | *string* | - |
|
||||||
|
@ -38,7 +38,7 @@ export default createComponent({
|
|||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
offset: {
|
offset: {
|
||||||
type: Number,
|
type: [Number, String],
|
||||||
default: 300,
|
default: 300,
|
||||||
},
|
},
|
||||||
direction: {
|
direction: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user