@varlet/ui 2.22.2 → 2.22.3

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);
@@ -1937,7 +1940,7 @@ function useLocale() {
1937
1940
  const { packs, pack, add: add$2, use, merge } = useLocale();
1938
1941
  add$2("zh-CN", stdin_default$3t);
1939
1942
  use("zh-CN");
1940
- const _LocaleComponent = { zhCN: stdin_default$3t, enUS: stdin_default$3s, packs, pack, add: add$2, use, merge, useLocale };
1943
+ const _LocaleComponent = { zhCN: stdin_default$3t, enUS: stdin_default$3s, zhTW: stdin_default$3r, zhHK: stdin_default$3q, faIR: stdin_default$3p, packs, pack, add: add$2, use, merge, useLocale };
1941
1944
  var stdin_default$3o = {
1942
1945
  zhCN: stdin_default$3t,
1943
1946
  enUS: stdin_default$3s,
@@ -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";
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);
@@ -25530,6 +25539,7 @@ exports.dividerProps = props$N;
25530
25539
  exports.dragProps = props$M;
25531
25540
  exports.ellipsisProps = props$K;
25532
25541
  exports.enUS = stdin_default$3s;
25542
+ exports.faIR = stdin_default$3p;
25533
25543
  exports.fabProps = props$J;
25534
25544
  exports.fieldDecoratorProps = props$I;
25535
25545
  exports.formDetailsProps = props$_;
@@ -25591,3 +25601,5 @@ exports.useLocale = useLocale;
25591
25601
  exports.version = version;
25592
25602
  exports.watermarkProps = props;
25593
25603
  exports.zhCN = stdin_default$3t;
25604
+ exports.zhHK = stdin_default$3q;
25605
+ exports.zhTW = stdin_default$3r;
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",
4
4
  "description": "A material like components library",
5
5
  "main": "lib/varlet.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -48,12 +48,12 @@
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",
52
+ "@varlet/shared": "2.22.3",
53
+ "@varlet/use": "2.22.3"
54
54
  },
55
55
  "devDependencies": {
56
- "@vue/runtime-core": "3.4.3",
56
+ "@vue/runtime-core": "3.4.15",
57
57
  "@vue/test-utils": "2.4.1",
58
58
  "@types/lodash-es": "^4.17.6",
59
59
  "@types/node": "^18.7.18",
@@ -64,11 +64,11 @@
64
64
  "live-server": "^1.2.1",
65
65
  "lodash-es": "^4.17.21",
66
66
  "typescript": "^5.1.5",
67
- "vue": "3.4.3",
67
+ "vue": "3.4.15",
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/ui": "2.22.3",
70
+ "@varlet/touch-emulator": "2.22.3",
71
+ "@varlet/cli": "2.22.3"
72
72
  },
73
73
  "scripts": {
74
74
  "dev": "varlet-cli dev",