17 lines
542 B
Vue
17 lines
542 B
Vue
<script setup lang="ts">
|
|
import { classes, safeUrl } from './support';
|
|
|
|
defineProps<{ data: Record<string, any>; style?: Record<string, string> }>();
|
|
</script>
|
|
|
|
<template>
|
|
<section :class="['mb-block mb-gallery', classes(style)]">
|
|
<div class="mb-inner">
|
|
<h2 v-if="data.title">{{ data.title }}</h2>
|
|
<div class="mb-grid">
|
|
<img v-for="(photo, index) in data.photos || []" :key="index" :src="safeUrl(photo)" alt="" loading="lazy" />
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</template>
|