content text and dynamic zone components
This commit is contained in:
parent
44b55d9bbb
commit
3df3ba4ebc
22 changed files with 202 additions and 24 deletions
|
@ -1,11 +1,18 @@
|
|||
<template>
|
||||
<p>{{ data }}</p>
|
||||
<NuxtPicture
|
||||
loading="lazy"
|
||||
class="w-1/2 min-w-[50%] h-fit object-cover object-center mx-auto"
|
||||
:src="baseUrl + data?.image.url"
|
||||
:imgAttrs="{ class: 'w-full h-fit object-cover object-center' }"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { PropType } from "vue";
|
||||
import type DynamicZoneFullImage from "../../types/component/dynamicZoneFullImage";
|
||||
|
||||
const baseUrl = useStrapiUrl().replace("/api", "");
|
||||
|
||||
defineProps({
|
||||
data: Object as PropType<DynamicZoneFullImage>,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue