refactor: allow dialog without description

This commit is contained in:
GouJ committed 2026-09-27 14:44:28 +08:00
1 parent ca70e4d888
commit 383448961b
1 file changed
+1 -1
+1 -1
View File
@@ -59,7 +59,7 @@ onBeforeUnmount(() => {
>
<NScrollbar class="dialog-body-scroll" :style="{ maxHeight: bodyMaxHeight + 'px' }">
<span ref="bodyAnchor" class="dialog-body-anchor" aria-hidden="true" />
<p class="text-sm leading-6 text-muted">{{ description }}</p>
<p v-if="description" class="text-sm leading-6 text-muted">{{ description }}</p>
<slot />
</NScrollbar>
<template v-if="$slots.footer" #footer>