classcard-ui 0.2.335 → 0.2.338
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/dist/classcard-ui.common.js +62 -58
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +62 -58
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CMultiselect/CMultiselect.vue +9 -3
package/package.json
CHANGED
|
@@ -229,13 +229,19 @@ export default {
|
|
|
229
229
|
this.$emit("onSelectOptions", params);
|
|
230
230
|
},
|
|
231
231
|
async onOpen() {
|
|
232
|
-
if (this.hasNextPage
|
|
232
|
+
if (this.hasNextPage) {
|
|
233
233
|
await this.$nextTick();
|
|
234
|
-
|
|
234
|
+
if (this.$refs?.load && this.observer) {
|
|
235
|
+
this.observer.observe(this.$refs.load);
|
|
236
|
+
} else {
|
|
237
|
+
setTimeout(() => {
|
|
238
|
+
this.onOpen();
|
|
239
|
+
}, 500);
|
|
240
|
+
}
|
|
235
241
|
}
|
|
236
242
|
},
|
|
237
243
|
onClose() {
|
|
238
|
-
this.observer
|
|
244
|
+
this.observer.disconnect();
|
|
239
245
|
},
|
|
240
246
|
async infiniteScroll([{ isIntersecting, target }]) {
|
|
241
247
|
if (isIntersecting) {
|