mirror of
https://github.com/koel/koel
synced 2024-12-25 12:03:06 +00:00
27 lines
674 B
Vue
27 lines
674 B
Vue
<template>
|
|
<article :class="mode" class="overflow-hidden">
|
|
<h3 v-if="mode === 'aside'" class="text-3xl font-thin gap-3 mb-8">
|
|
<slot name="header" />
|
|
</h3>
|
|
<div>
|
|
<article v-if="mode === 'aside'" class="mb-5">
|
|
<slot name="art" />
|
|
</article>
|
|
|
|
<main>
|
|
<slot />
|
|
</main>
|
|
|
|
<footer v-if="$slots.footer" class="mt-6 text-right text-[0.95rem]">
|
|
<slot name="footer" />
|
|
</footer>
|
|
</div>
|
|
</article>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { toRefs } from 'vue'
|
|
|
|
const props = withDefaults(defineProps<{ mode?: MediaInfoDisplayMode }>(), { mode: 'aside' })
|
|
const { mode } = toRefs(props)
|
|
</script>
|