fix: to prop type

This commit is contained in:
Benjamin Canac
2022-07-22 13:07:23 +02:00
parent c08501db3f
commit be94fea84a
3 changed files with 3 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ const props = defineProps({
default: false default: false
}, },
to: { to: {
type: [String, Object] as PropType<RouteLocationNormalized>, type: [String, Object] as PropType<string | RouteLocationNormalized>,
default: null default: null
}, },
target: { target: {

View File

@@ -31,7 +31,7 @@ import { RouterLink } from 'vue-router'
const props = defineProps({ const props = defineProps({
...RouterLink.props, ...RouterLink.props,
to: { to: {
type: [String, Object] as PropType<RouteLocationNormalized>, type: [String, Object] as PropType<string | RouteLocationNormalized>,
default: null default: null
}, },
inactiveClass: { inactiveClass: {

View File

@@ -38,7 +38,7 @@ const props = defineProps({
} }
}, },
to: { to: {
type: [String, Object] as PropType<RouteLocationNormalized>, type: [String, Object] as PropType<string | RouteLocationNormalized>,
default: null default: null
}, },
click: { click: {