17 lines
496 B
Vue
17 lines
496 B
Vue
<script setup lang="ts">
|
|
import { classes } from './support';
|
|
|
|
defineProps<{ data: Record<string, any>; style?: Record<string, string> }>();
|
|
</script>
|
|
|
|
<template>
|
|
<section :class="['mb-block mb-stats', classes(style)]">
|
|
<dl class="mb-inner mb-grid">
|
|
<div v-for="(item, index) in data.items || []" :key="index">
|
|
<dt>{{ item.label }}</dt>
|
|
<dd>{{ item.value }}{{ item.suffix }}</dd>
|
|
</div>
|
|
</dl>
|
|
</section>
|
|
</template>
|