FIX: Usage of RichText
Actually using my implemented functionality
This commit is contained in:
parent
b014d31577
commit
3f2f0f984c
2 changed files with 7 additions and 9 deletions
|
@ -1,12 +1,10 @@
|
|||
<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">
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<div class="flex-col gap-default">
|
||||
<h3>{{skill.title}}</h3>
|
||||
<main class="flex-col gap-sm">
|
||||
<RichText v-for="(t, index) in skill.text" :key="`${t.type}-${index}`" :elements="t" />
|
||||
<RichText :elements="skill.text" />
|
||||
</main>
|
||||
</div>
|
||||
</article>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue