23 lines
443 B
Vue
Raw Permalink Normal View History

2026-05-31 13:21:13 +02:00
<script setup lang="ts">
import { computed } from 'vue'
import { handleBackground } from '../layoutHelper'
const props = defineProps({
image: {
type: String,
},
backgroundSize: {
type: String,
default: 'cover',
},
})
const style = computed(() => handleBackground(props.image, false, props.backgroundSize))
</script>
<template>
<div class="slidev-layout w-full h-full" :style="style">
<slot />
</div>
</template>