From be94fea84acc69c0114099b5251ff34e3a239726 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Fri, 22 Jul 2022 13:07:23 +0200 Subject: [PATCH] fix: `to` prop type --- src/runtime/components/elements/Button.vue | 2 +- src/runtime/components/elements/Link.vue | 2 +- src/runtime/components/feedback/Alert.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/components/elements/Button.vue b/src/runtime/components/elements/Button.vue index 7cf1b63b..0523fd83 100644 --- a/src/runtime/components/elements/Button.vue +++ b/src/runtime/components/elements/Button.vue @@ -81,7 +81,7 @@ const props = defineProps({ default: false }, to: { - type: [String, Object] as PropType, + type: [String, Object] as PropType, default: null }, target: { diff --git a/src/runtime/components/elements/Link.vue b/src/runtime/components/elements/Link.vue index d7fb1c29..af23e307 100644 --- a/src/runtime/components/elements/Link.vue +++ b/src/runtime/components/elements/Link.vue @@ -31,7 +31,7 @@ import { RouterLink } from 'vue-router' const props = defineProps({ ...RouterLink.props, to: { - type: [String, Object] as PropType, + type: [String, Object] as PropType, default: null }, inactiveClass: { diff --git a/src/runtime/components/feedback/Alert.vue b/src/runtime/components/feedback/Alert.vue index 63651c7e..b6d8ccf2 100644 --- a/src/runtime/components/feedback/Alert.vue +++ b/src/runtime/components/feedback/Alert.vue @@ -38,7 +38,7 @@ const props = defineProps({ } }, to: { - type: [String, Object] as PropType, + type: [String, Object] as PropType, default: null }, click: {