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 { const {
type = 'a' type = 'a',
href,
label,
} = defineProps<Props>() } = defineProps<Props>()
const actualProps = () => { const actualProps = () => {
if (props.type === 'a') { if (type === 'a') {
return { return {
href: props.href, href: href,
target: props.href!.startsWith('https://') ? '_blank' : undefined, target: href!.startsWith('https://') ? '_blank' : undefined,
} }
} }
} }

6191
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -14,7 +14,7 @@
"build:deploy": "nuxt build && firebase deploy --only hosting" "build:deploy": "nuxt build && firebase deploy --only hosting"
}, },
"devDependencies": { "devDependencies": {
"nuxt": "^3.11.2", "nuxt": "^3.15.3",
"postcss-nesting": "^13.0.0" "postcss-nesting": "^13.0.0"
}, },
"dependencies": { "dependencies": {