From c53e69425fb2fc545b002b5e89a27c56dd9620f4 Mon Sep 17 00:00:00 2001 From: Christian Gil Date: Sun, 6 Aug 2023 17:50:14 -0600 Subject: [PATCH] fix: Fix missing imports --- src/runtime/components/elements/Button.ts | 4 +++- src/runtime/components/elements/Link.ts | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/runtime/components/elements/Button.ts b/src/runtime/components/elements/Button.ts index 225cd99..3450039 100644 --- a/src/runtime/components/elements/Button.ts +++ b/src/runtime/components/elements/Button.ts @@ -1,6 +1,6 @@ import { useAppConfig } from "#imports"; import { defu } from "defu"; -import { defineComponent, h, type PropType } from "vue"; +import { computed, defineComponent, h, type PropType } from "vue"; import type { UiButtonColors, UiButtonConfig, @@ -35,6 +35,8 @@ type Props = ParentLinkProps & { }; export default defineComponent({ + components: { UiLink, UiIcon }, + props: { ...UiLink.props, label: String, diff --git a/src/runtime/components/elements/Link.ts b/src/runtime/components/elements/Link.ts index ff276ab..c9466cc 100644 --- a/src/runtime/components/elements/Link.ts +++ b/src/runtime/components/elements/Link.ts @@ -1,11 +1,11 @@ -import type { NuxtLinkProps } from "#app/components/nuxt-link"; import { NuxtLink } from "#components"; import { useRoute } from "#imports"; import { isEqual } from "lodash-es"; -import { defineComponent, h } from "vue"; +import { defineComponent, h, type PropType } from "vue"; import type { RouteLocationNormalized } from "vue-router"; import { classNames } from "../../utils"; +type NuxtLinkProps = InstanceType["$props"]; type Props = NuxtLinkProps & { type?: HTMLButtonElement["type"]; disabled?: boolean; @@ -18,6 +18,8 @@ type Props = NuxtLinkProps & { export default defineComponent({ inheritAttrs: false, + components: { NuxtLink }, + props: { ...NuxtLink.props, type: {