FIX: fix bugs caused by upgrade
Remove with defaults as it is no longer needed, props is removed
This commit is contained in:
parent
c82262e02d
commit
cbe1f89ec6
3 changed files with 3276 additions and 2925 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
6191
package-lock.json
generated
6191
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -14,7 +14,7 @@
|
|||
"build:deploy": "nuxt build && firebase deploy --only hosting"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nuxt": "^3.11.2",
|
||||
"nuxt": "^3.15.3",
|
||||
"postcss-nesting": "^13.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue