FIX: fix bugs caused by upgrade

Remove with defaults as it is no longer needed, props is removed
This commit is contained in:
webfussel 2025-01-29 09:28:12 +01:00
parent c82262e02d
commit cbe1f89ec6
3 changed files with 3276 additions and 2925 deletions

View file

@ -13,14 +13,16 @@ type Props = {
}
const {
type = 'a'
type = 'a',
href,
label,
} = defineProps<Props>()
const actualProps = () => {
if (props.type === 'a') {
if (type === 'a') {
return {
href: props.href,
target: props.href!.startsWith('https://') ? '_blank' : undefined,
href: href,
target: href!.startsWith('https://') ? '_blank' : undefined,
}
}
}