rimelight-components 1.7.9 → 1.7.10

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.
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import { useAppConfig } from "#imports";
3
- import { computed, defineAsyncComponent } from "#imports";
3
+ import { computed } from "#imports";
4
+ import { NuxtLink } from "#components";
4
5
  const appConfig = useAppConfig();
5
6
  const {
6
7
  variant,
@@ -21,9 +22,7 @@ const config = computed(() => {
21
22
  const icon = computed(() => config.value.icon);
22
23
  const title = computed(() => config.value.title);
23
24
  const tooltip = computed(() => config.value.tooltip);
24
- const RootComponent = computed(
25
- () => to ? resolveComponent("NuxtLink") : "div"
26
- );
25
+ const RootComponent = computed(() => to ? NuxtLink : "div");
27
26
  const rootProps = computed(() => {
28
27
  const commonClasses = {
29
28
  class: "w-full block"
@@ -37,14 +36,6 @@ const rootProps = computed(() => {
37
36
  }
38
37
  return commonClasses;
39
38
  });
40
- const resolveComponent = (name) => {
41
- if (name === "NuxtLink") {
42
- return defineAsyncComponent(
43
- () => import("#components").then((m) => m.NuxtLink || m.default)
44
- );
45
- }
46
- return name;
47
- };
48
39
  </script>
49
40
 
50
41
  <template>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
3
  "description": "My new Nuxt module",
4
- "version": "1.7.9",
4
+ "version": "1.7.10",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/Rimelight-Entertainment/rimelight-components.git"