FIX: mpa, nuxt4 future, improvements in intro and services
Added mpa support, nuxt4 future compatibility, improvements in intro and services
This commit is contained in:
parent
078d4bfd82
commit
9642496e5a
35 changed files with 324 additions and 172 deletions
|
@ -1,29 +0,0 @@
|
|||
<template>
|
||||
<component :is="type" v-bind="actualProps()" class="Button">
|
||||
{{ label }}
|
||||
</component>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
type Props = {
|
||||
type ?: 'a' | 'button'
|
||||
href ?: string
|
||||
label : string
|
||||
}
|
||||
|
||||
const {
|
||||
type = 'a',
|
||||
href,
|
||||
label,
|
||||
} = defineProps<Props>()
|
||||
|
||||
const actualProps = () => {
|
||||
if (type === 'a') {
|
||||
return {
|
||||
href: href,
|
||||
target: href!.startsWith('https://') ? '_blank' : undefined,
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue