We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7193934 commit fa8797eCopy full SHA for fa8797e
src/components/InfiniteLoading.vue
@@ -74,7 +74,10 @@
74
type: Number,
75
default: 100,
76
},
77
- onInfinite: Function,
+ onInfinite: {
78
+ type: Function,
79
+ required: true,
80
+ },
81
spinner: String,
82
83
ready() {
@@ -84,9 +87,7 @@
84
87
const currentDistance = getCurrentDistance(this.scrollParent);
85
88
if (!this.isLoading && currentDistance <= this.distance) {
86
89
this.isLoading = true;
- if (this.onInfinite) {
- this.onInfinite.call();
- }
90
+ this.onInfinite.call();
91
}
92
}.bind(this);
93
0 commit comments