chore(Slideover): remove header div when unnecessary

This commit is contained in:
Benjamin Canac
2024-04-11 14:41:59 +02:00
parent 2a2e3953cb
commit bc2d9ab620

View File

@@ -88,7 +88,7 @@ const ui = computed(() => tv({ extend: slideover, slots: props.ui })({
<DialogContent :data-side="side" :class="ui.content({ class: props.class })" v-bind="contentProps" v-on="contentEvents">
<slot name="content">
<div :class="ui.header()">
<div v-if="$slots.header || (title || $slots.title) || (description || $slots.description) || (close !== null || $slots.close)" :class="ui.header()">
<slot name="header">
<DialogTitle v-if="title || $slots.title" :class="ui.title()">
<slot name="title">