ADD: RichText
Added RichText system
This commit is contained in:
parent
311894d6d0
commit
b014d31577
9 changed files with 250 additions and 95 deletions
22
app/components/RichText/RichText.vue
Normal file
22
app/components/RichText/RichText.vue
Normal file
|
@ -0,0 +1,22 @@
|
|||
<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>
|
Loading…
Add table
Add a link
Reference in a new issue