ninemoon-ui 0.0.4 → 0.0.6

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
@@ -2491,7 +2491,7 @@
2491
2491
  trigger: "native",
2492
2492
  modelValue: showOption.value,
2493
2493
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showOption.value = $event),
2494
- insertClass: "tdd-min-w-[200px] tdd-z-2000 tdd-text-sm",
2494
+ insertClass: "tdd-min-w-[200px] tdd-z-2000 tdd-text-sm tdd-p-1",
2495
2495
  placement: "bottomleft"
2496
2496
  }, {
2497
2497
  reference: vue.withCtx(() => [
@@ -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
  });
@@ -93,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
93
93
  trigger: "native",
94
94
  modelValue: showOption.value,
95
95
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showOption.value = $event),
96
- insertClass: "tdd-min-w-[200px] tdd-z-2000 tdd-text-sm",
96
+ insertClass: "tdd-min-w-[200px] tdd-z-2000 tdd-text-sm tdd-p-1",
97
97
  placement: "bottomleft"
98
98
  }, {
99
99
  reference: withCtx(() => [
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.6",
5
5
  "author": "zhuboy",
6
6
  "keywords": [
7
7
  "vue3",