15 lines
387 B
Vue
15 lines
387 B
Vue
<template>
|
|
<FieldText v-if="data?.type == 'text'" :data="[data]" />
|
|
<NuxtLink v-else :href="data?.url" class="text-primary">
|
|
<FieldText :data="data?.children" />
|
|
</NuxtLink>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { PropType } from "vue";
|
|
import type { TypeField } from "../../types/field/content";
|
|
|
|
defineProps({
|
|
data: Object as PropType<TypeField>,
|
|
});
|
|
</script>
|