2024-11-02 11:47:07 +00:00
|
|
|
<template>
|
2024-11-03 12:13:36 +00:00
|
|
|
<div class="flex flex-row flex-wrap gap-2 w-full min-h-fit">
|
|
|
|
<NuxtPicture
|
|
|
|
v-for="img in data?.images"
|
|
|
|
loading="lazy"
|
2024-11-05 13:41:48 +00:00
|
|
|
class="w-full h-fit md:w-fit md:h-48 object-cover object-center"
|
2024-11-03 12:13:36 +00:00
|
|
|
:src="baseUrl + img.url"
|
2024-11-05 13:41:48 +00:00
|
|
|
:imgAttrs="{ class: 'w-full h-full object-cover object-center' }"
|
2024-11-03 12:13:36 +00:00
|
|
|
/>
|
|
|
|
</div>
|
2024-11-02 11:47:07 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import type { PropType } from "vue";
|
|
|
|
import type DynamicZoneGallery from "../../types/component/dynamicZoneGallery";
|
|
|
|
|
2024-11-03 12:13:36 +00:00
|
|
|
const baseUrl = useStrapiUrl().replace("/api", "");
|
|
|
|
|
2024-11-02 11:47:07 +00:00
|
|
|
defineProps({
|
|
|
|
data: Object as PropType<DynamicZoneGallery>,
|
|
|
|
});
|
|
|
|
</script>
|