chore(Slideover): improve header slot

This commit is contained in:
Benjamin Canac
2022-03-30 18:41:28 +02:00
parent cf021a5888
commit 564ae86d63

View File

@@ -22,8 +22,10 @@
leave-to="-translate-x-full"
>
<div class="relative flex-1 flex flex-col w-full max-w-md u-bg-white focus:outline-none">
<div class="flex-shrink-0 flex items-center justify-between px-4 h-16 border-b u-border-gray-200">
<slot name="header" />
<div v-if="$slots.header" class="h-16 border-b u-border-gray-200">
<div class="flex items-center justify-between px-4">
<slot name="header" />
</div>
</div>
<slot />