ninemoon-ui 0.0.4 → 0.0.5

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/index.umd.js CHANGED
@@ -4524,6 +4524,10 @@
4524
4524
  return "200px";
4525
4525
  }
4526
4526
  });
4527
+ vue.onUnmounted(() => {
4528
+ window.removeEventListener("resize", setPosition);
4529
+ window.removeEventListener("scroll", setPosition, true);
4530
+ });
4527
4531
  __expose({
4528
4532
  hideHandle
4529
4533
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, watch, nextTick, openBlock, createElementBlock, withModifiers, renderSlot, createBlock, Teleport, createVNode, Transition, withCtx, withDirectives, normalizeClass, normalizeStyle, createCommentVNode } from "vue";
1
+ import { defineComponent, ref, computed, watch, nextTick, onUnmounted, openBlock, createElementBlock, withModifiers, renderSlot, createBlock, Teleport, createVNode, Transition, withCtx, withDirectives, normalizeClass, normalizeStyle, createCommentVNode } from "vue";
2
2
  import { u as usePotion, t as throttle } from "../index/index.js";
3
3
  const _hoisted_1 = ["onMouseenter"];
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -150,6 +150,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
150
150
  return "200px";
151
151
  }
152
152
  });
153
+ onUnmounted(() => {
154
+ window.removeEventListener("resize", setPosition);
155
+ window.removeEventListener("scroll", setPosition, true);
156
+ });
153
157
  __expose({
154
158
  hideHandle
155
159
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninemoon-ui",
3
3
  "private": false,
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "author": "zhuboy",
6
6
  "keywords": [
7
7
  "vue3",