content text and dynamic zone components

This commit is contained in:
Julian Krauser 2024-11-03 13:13:36 +01:00
parent 44b55d9bbb
commit 3df3ba4ebc
22 changed files with 202 additions and 24 deletions

21
components/field/Text.vue Normal file
View file

@ -0,0 +1,21 @@
<template>
<span
v-for="text in data"
:key="text.text"
:class="[
text.bold ? 'font-bold' : '',
text.strikethrough ? 'line-through' : '',
text.underline ? 'underline' : '',
text.italic ? 'italic' : '',
]"
>{{ text.text }}</span
>
</template>
<script setup lang="ts">
import type { TextField } from "../../types/field/content";
defineProps({
data: Array<TextField>,
});
</script>