[new feature] List: add finished-text prop (#2131)

This commit is contained in:
neverland
2018-11-24 08:10:34 +08:00
committed by GitHub
parent 58f3bddbaa
commit c8967fc8ed
8 changed files with 80 additions and 52 deletions
+2
View File
@@ -16,6 +16,7 @@ Vue.use(List);
<van-list
v-model="loading"
:finished="finished"
:finished-text="Finished"
@load="onLoad"
>
<van-cell
@@ -61,6 +62,7 @@ export default {
| 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` |
| loading-text | Loading text | `String` | `Loading...` |
| finished-text | Finished text | `String` | - |
| immediate-check | Whether to check loading position immediately after mounted | `Boolean` | `true` |
### Event