Skip to content

Commit

Permalink
fix: Fix missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisGV04 committed Aug 6, 2023
1 parent 0678dde commit c53e694
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/runtime/components/elements/Button.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -35,6 +35,8 @@ type Props = ParentLinkProps & {
};

export default defineComponent<Props>({
components: { UiLink, UiIcon },

props: {
...UiLink.props,
label: String,
Expand Down
6 changes: 4 additions & 2 deletions src/runtime/components/elements/Link.ts
Original file line number Diff line number Diff line change
@@ -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<typeof NuxtLink>["$props"];
type Props = NuxtLinkProps & {
type?: HTMLButtonElement["type"];
disabled?: boolean;
Expand All @@ -18,6 +18,8 @@ type Props = NuxtLinkProps & {
export default defineComponent<Props>({
inheritAttrs: false,

components: { NuxtLink },

props: {
...NuxtLink.props,
type: {
Expand Down

0 comments on commit c53e694

Please sign in to comment.