classcard-ui 0.2.990 → 0.2.992

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.990",
3
+ "version": "0.2.992",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -406,23 +406,23 @@ export default {
406
406
  this.emitLoadNextPage();
407
407
  }
408
408
  },
409
+ // a function that will set the location when the component has mounted and the location is passed after that
410
+ forceSetData(params) {
411
+ this.value = params;
412
+ },
409
413
  emitLoadNextPage: debounce(function () {
410
414
  this.$emit("loadNextPage");
411
415
  }, 300),
412
416
  },
413
417
  watch: {
414
- optionsSelected() {
415
- console.log("watcher triggered");
416
- this.value = this.optionsSelected;
418
+ optionsSelected: {
419
+ handler() {
420
+ this.value = this.optionsSelected;
421
+ },
422
+ deep: true,
417
423
  },
418
424
  },
419
425
  mounted() {
420
- console.log(
421
- "this is value on mounted",
422
- this.value,
423
- "this.optionsSelected",
424
- this.optionsSelected
425
- );
426
426
  this.observer = new IntersectionObserver(this.infiniteScroll);
427
427
  },
428
428
  };