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
},
to: {
type: [String, Object] as PropType<RouteLocationNormalized>,
type: [String, Object] as PropType<string | RouteLocationNormalized>,
default: null
},
target: {

View File

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

View File

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