chore(Modal): remove header div when unnecessary

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

View File

@@ -85,7 +85,7 @@ const ui = computed(() => tv({ extend: modal, slots: props.ui })({
<DialogContent :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">