@varlet/ui 2.22.2 → 2.22.3-alpha.1707115621818

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/lib/varlet.cjs.js CHANGED
@@ -892,6 +892,9 @@ function unmounted$1(el) {
892
892
  el.removeEventListener("touchstart", createRipple);
893
893
  el.removeEventListener("touchmove", forbidRippleTask);
894
894
  el.removeEventListener("dragstart", removeRipple);
895
+ if (!el._ripple || !el._ripple.removeRipple) {
896
+ return;
897
+ }
895
898
  document.removeEventListener("touchend", el._ripple.removeRipple);
896
899
  document.removeEventListener("touchcancel", el._ripple.removeRipple);
897
900
  document.removeEventListener("dragend", el._ripple.removeRipple);
@@ -3448,6 +3451,9 @@ const __sfc__$1f = vue.defineComponent({
3448
3451
  scroller.addEventListener("scroll", handleScroll);
3449
3452
  }
3450
3453
  function removeScrollerEventListener() {
3454
+ if (!scroller) {
3455
+ return;
3456
+ }
3451
3457
  scroller.removeEventListener("scroll", handleScroll);
3452
3458
  }
3453
3459
  return {
@@ -16784,6 +16790,9 @@ const __sfc__$C = vue.defineComponent({
16784
16790
  return Math.floor(detectorBottom) - toPxNum(props2.offset) <= containerBottom;
16785
16791
  }
16786
16792
  function removeScrollerListener() {
16793
+ if (!scroller) {
16794
+ return;
16795
+ }
16787
16796
  scroller.removeEventListener("scroll", check2);
16788
16797
  }
16789
16798
  function check2() {
@@ -25141,7 +25150,7 @@ withInstall(stdin_default$1);
25141
25150
  withPropsDefaultsSetter(stdin_default$1, props);
25142
25151
  const _WatermarkComponent = stdin_default$1;
25143
25152
  var stdin_default = stdin_default$1;
25144
- const version = "2.22.2";
25153
+ const version = "2.22.3-alpha.1707115621818";
25145
25154
  function install(app) {
25146
25155
  stdin_default$3m.install && app.use(stdin_default$3m);
25147
25156
  stdin_default$3k.install && app.use(stdin_default$3k);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "2.22.2",
3
+ "version": "2.22.3-alpha.1707115621818",
4
4
  "description": "A material like components library",
5
5
  "main": "lib/varlet.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -48,9 +48,9 @@
48
48
  "@popperjs/core": "^2.11.6",
49
49
  "dayjs": "^1.10.4",
50
50
  "decimal.js": "^10.2.1",
51
- "@varlet/shared": "2.22.2",
52
- "@varlet/icons": "2.22.2",
53
- "@varlet/use": "2.22.2"
51
+ "@varlet/icons": "2.22.3-alpha.1707115621818",
52
+ "@varlet/use": "2.22.3-alpha.1707115621818",
53
+ "@varlet/shared": "2.22.3-alpha.1707115621818"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@vue/runtime-core": "3.4.3",
@@ -66,9 +66,9 @@
66
66
  "typescript": "^5.1.5",
67
67
  "vue": "3.4.3",
68
68
  "vue-router": "4.2.0",
69
- "@varlet/cli": "2.22.2",
70
- "@varlet/ui": "2.22.2",
71
- "@varlet/touch-emulator": "2.22.2"
69
+ "@varlet/cli": "2.22.3-alpha.1707115621818",
70
+ "@varlet/ui": "2.22.3-alpha.1707115621818",
71
+ "@varlet/touch-emulator": "2.22.3-alpha.1707115621818"
72
72
  },
73
73
  "scripts": {
74
74
  "dev": "varlet-cli dev",