classcard-ui 0.2.340 → 0.2.341

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.340",
3
+ "version": "0.2.341",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -223,16 +223,13 @@ export default {
223
223
  onClose() {
224
224
  this.observer.disconnect();
225
225
  },
226
- async infiniteScroll([{ isIntersecting, target }]) {
226
+ async infiniteScroll([{ isIntersecting }]) {
227
227
  if (isIntersecting) {
228
- const ul = target.offsetParent;
229
- const scrollTop = target.offsetParent.scrollTop;
230
- this.emitLoadNextPage(ul, scrollTop);
231
- this.scrollTop = scrollTop;
228
+ this.emitLoadNextPage();
232
229
  }
233
230
  },
234
- emitLoadNextPage: debounce(function (ul, scrollTop) {
235
- this.$emit("loadNextPage", { ul, scrollTop });
231
+ emitLoadNextPage: debounce(function () {
232
+ this.$emit("loadNextPage");
236
233
  }, 300),
237
234
  },
238
235
  watch: {