2024-11-03 13:13:36 +01:00
|
|
|
<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">
|
2025-07-23 13:46:18 +02:00
|
|
|
import type { TextField } from "~~/types/field/content";
|
2024-11-03 13:13:36 +01:00
|
|
|
|
|
|
|
defineProps({
|
|
|
|
data: Array<TextField>,
|
|
|
|
});
|
|
|
|
</script>
|