Skip to content

Commit fec16d8

Browse files
committed
Ability to pass throttle limit by prop
1 parent eb1da01 commit fec16d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/InfiniteLoading.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
isComplete: false,
6969
isFirstLoad: true, // save the current loading whether it is the first loading
7070
inThrottle: false,
71-
throttleLimit: 50,
7271
infiniteLoopChecked: false, // save the status of infinite loop check
7372
infiniteLoopTimer: null,
7473
continuousCallTimes: 0,
@@ -109,6 +108,10 @@
109108
default: 'bottom',
110109
},
111110
forceUseInfiniteWrapper: null,
111+
throttleLimit: {
112+
type: Number,
113+
default: 50,
114+
},
112115
},
113116
mounted() {
114117
this.scrollParent = this.getScrollParent();

0 commit comments

Comments
 (0)