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-10 07:29:08 +00:00
|
|
|
class="max-sm:w-full sm:h-48 object-cover object-center"
|
2024-11-03 12:13:36 +00:00
|
|
|
:src="baseUrl + img.url"
|
2024-11-10 07:29:08 +00:00
|
|
|
:imgAttrs="{ class: 'max-sm:w-full sm:h-48 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-05 17:31:12 +00:00
|
|
|
const runtimeConfig = useRuntimeConfig();
|
|
|
|
const baseUrl = runtimeConfig.public.strapi.url;
|
2024-11-03 12:13:36 +00:00
|
|
|
|
2024-11-02 11:47:07 +00:00
|
|
|
defineProps({
|
|
|
|
data: Object as PropType<DynamicZoneGallery>,
|
|
|
|
});
|
|
|
|
</script>
|