22 lines
439 B
Vue
22 lines
439 B
Vue
<template>
|
|
<section>
|
|
<template v-if="Array.isArray(elements)">
|
|
<General v-for="element in elements" :element="element" />
|
|
</template>
|
|
<template v-else>
|
|
<General :element="elements" />
|
|
</template>
|
|
</section>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { RichText } from './Types'
|
|
import General from './General.vue'
|
|
|
|
type Props = {
|
|
elements : RichText | RichText[]
|
|
}
|
|
|
|
|
|
defineProps<Props>()
|
|
</script>
|