classcard-ui 0.2.338 → 0.2.339

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.338",
3
+ "version": "0.2.339",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -96,27 +96,7 @@
96
96
  </template>
97
97
  <template #list-footer>
98
98
  <li ref="load" class="loader" v-show="hasNextPage">
99
- <svg
100
- class="h-5 w-5 animate-spin text-gray-400"
101
- xmlns="http://www.w3.org/2000/svg"
102
- fill="none"
103
- viewBox="0 0 24 24"
104
- v-if="loading"
105
- >
106
- <circle
107
- class="opacity-25"
108
- cx="12"
109
- cy="12"
110
- r="10"
111
- stroke="currentColor"
112
- stroke-width="4"
113
- ></circle>
114
- <path
115
- class="opacity-75"
116
- fill="currentColor"
117
- d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
118
- ></path>
119
- </svg>
99
+ Loading more options...
120
100
  </li>
121
101
  </template>
122
102
  </v-select>
@@ -247,13 +227,12 @@ export default {
247
227
  if (isIntersecting) {
248
228
  const ul = target.offsetParent;
249
229
  const scrollTop = target.offsetParent.scrollTop;
250
- this.emitLoadNextPage();
251
- await this.$nextTick();
252
- ul.scrollTop = scrollTop;
230
+ this.emitLoadNextPage(ul, scrollTop);
231
+ this.scrollTop = scrollTop;
253
232
  }
254
233
  },
255
- emitLoadNextPage: debounce(function () {
256
- this.$emit("loadNextPage");
234
+ emitLoadNextPage: debounce(function (ul, scrollTop) {
235
+ this.$emit("loadNextPage", ul, scrollTop);
257
236
  }, 300),
258
237
  },
259
238
  watch: {