v0.9.4
This commit is contained in:
commit
217b733bf2
286 files changed
+19180
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<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-text-media', classes(style)]">
|
||||
<div class="mb-inner mb-split">
|
||||
<div class="mb-text">
|
||||
<h2 v-if="data.title">{{ data.title }}</h2>
|
||||
<div class="mb-prose" v-html="data.body_html" />
|
||||
<ul v-if="data.points && data.points.length" class="mb-points">
|
||||
<li v-for="(point, index) in data.points" :key="index">{{ point }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<figure v-if="data.photo" class="mb-media">
|
||||
<img :src="safeUrl(data.photo)" :alt="data.caption || data.title || ''" loading="lazy" />
|
||||
<figcaption v-if="data.caption">{{ data.caption }}</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
Reference in new issue
Block a user