From 6df91eb9b627a713c27efd8b0030d2ed7d5981f1 Mon Sep 17 00:00:00 2001 From: GouJ Date: Sat, 26 Sep 2026 23:30:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=85=E6=8F=90=E4=BA=A4=E5=9E=8B?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=90=AF=E7=94=A8=E5=9B=BA=E5=AE=9A=E4=B8=89?= =?UTF-8?q?=E6=AE=B5=E9=AB=98=E5=BA=A6=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ui/AppDialog.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/ui/AppDialog.vue b/src/components/ui/AppDialog.vue index c887fb5..d49bb3e 100644 --- a/src/components/ui/AppDialog.vue +++ b/src/components/ui/AppDialog.vue @@ -14,7 +14,7 @@ const open = defineModel('open', { default: false }) :mask-closable="!busy" :close-on-esc="!busy" :style="{ width: wide ? '1040px' : '600px' }" - class="app-dialog" + class="app-dialog" :class="{ 'app-dialog--with-footer': $slots.footer }" role="dialog" :aria-label="title" > @@ -36,7 +36,10 @@ const open = defineModel('open', { default: false }) --app-field-hover: var(--app-control-hover); } .app-dialog { - @apply max-w-[calc(100vw-32px)] h-[min(760px,calc(100dvh-32px))] max-h-[calc(100dvh-32px)] flex flex-col overflow-hidden; + @apply max-w-[calc(100vw-32px)] max-h-[calc(100dvh-32px)] flex flex-col overflow-hidden; +} +.app-dialog--with-footer { + height: min(760px, calc(100dvh - 32px)); } .app-dialog .n-card-header { @apply shrink-0; @@ -45,7 +48,10 @@ const open = defineModel('open', { default: false }) @apply min-h-0 h-full; } .app-dialog .n-card__content { - @apply min-h-0 flex-1 overflow-hidden; + @apply min-h-0 overflow-hidden; +} +.app-dialog--with-footer .n-card__content { + @apply flex-1; height: 0; } .app-dialog .n-card-header__close {