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>
|
<template>
|
||||||
<section>
|
<template v-if="Array.isArray(elements)">
|
||||||
<template v-if="Array.isArray(elements)">
|
<General v-for="element in elements" :element="element" />
|
||||||
<General v-for="element in elements" :element="element" />
|
</template>
|
||||||
</template>
|
<template v-else>
|
||||||
<template v-else>
|
<General :element="elements" />
|
||||||
<General :element="elements" />
|
</template>
|
||||||
</template>
|
|
||||||
</section>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<div class="flex-col gap-default">
|
<div class="flex-col gap-default">
|
||||||
<h3>{{skill.title}}</h3>
|
<h3>{{skill.title}}</h3>
|
||||||
<main class="flex-col gap-sm">
|
<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>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue