@anweb/nuxt-ancore 1.16.4 → 1.16.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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "AnCore",
3
3
  "configKey": "ancore",
4
- "version": "1.16.4",
4
+ "version": "1.16.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,12 +1,13 @@
1
1
  <script setup>
2
2
  import { computed, ref, useTemplateRef, useId } from "vue";
3
- import { onClickOutside, useEventListener } from "@vueuse/core";
3
+ import { onClickOutside, useEventListener, useMounted } from "@vueuse/core";
4
4
  const props = defineProps({
5
5
  area: { type: String, required: false }
6
6
  });
7
7
  const id = useId();
8
8
  const state = ref(false);
9
9
  const refTarget = useTemplateRef("refTarget");
10
+ const isMounted = useMounted();
10
11
  const toggle = (value) => {
11
12
  state.value = value !== void 0 ? value : !state.value;
12
13
  };
@@ -38,7 +39,7 @@ defineExpose({ toggle, close });
38
39
  <slot name="button" :toggle="toggle" />
39
40
  </div>
40
41
 
41
- <teleport to="body">
42
+ <teleport to="body" :disabled="!isMounted">
42
43
  <div
43
44
  v-show="state"
44
45
  :id="menuId"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anweb/nuxt-ancore",
3
- "version": "1.16.4",
3
+ "version": "1.16.5",
4
4
  "description": "AnCore Nuxt module",
5
5
  "repository": "https://github.com/ANLTD/ancore",
6
6
  "license": "MIT",
@@ -36,16 +36,16 @@
36
36
  "@vueuse/core": "^14.2.1",
37
37
  "@vueuse/integrations": "^14.2.1",
38
38
  "async-validator": "^4.2.5",
39
- "i18next": "^25.8.17"
39
+ "i18next": "^25.8.18"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@nuxt/devtools": "^3.2.3",
43
- "@nuxt/kit": "^4.3.1",
43
+ "@nuxt/kit": "^4.4.2",
44
44
  "@nuxt/module-builder": "^1.0.2",
45
- "@nuxt/schema": "^4.3.1",
45
+ "@nuxt/schema": "^4.4.2",
46
46
  "@types/node": "latest",
47
47
  "changelogen": "^0.6.2",
48
- "nuxt": "^4.3.1",
48
+ "nuxt": "^4.4.2",
49
49
  "typescript": "~5.9.3"
50
50
  }
51
51
  }