feat: fixed regression of modal for element plus (#7999)

This commit is contained in:
HaroldZhangCode91
2026-06-03 13:27:12 +08:00
committed by GitHub
parent 0eb72ca4fd
commit 79707a2ebd
6 changed files with 15 additions and 39 deletions

View File

@@ -156,7 +156,7 @@ async function handleOpenChange(val: boolean) {
:class="
cn(
containerClass,
'inset-x-0 mx-auto flex max-h-[80%] flex-col p-0 duration-300 sm:w-130 sm:max-w-[80%] sm:rounded-(--radius)',
'flex max-h-[80%] flex-col p-0 duration-300 sm:w-130 sm:max-w-[80%] sm:rounded-(--radius)',
{
'border border-border': bordered,
'shadow-3xl': !bordered,
@@ -197,7 +197,7 @@ async function handleOpenChange(val: boolean) {
<component
:is="components.DefaultButton || VbenButton"
:disabled="loading"
variant="ghost"
variant="outline"
@click="handleCancel"
>
{{ cancelText || $t('cancel') }}

View File

@@ -344,7 +344,7 @@ function handleClosed() {
<component
:is="components.DefaultButton || VbenButton"
v-if="showCancelButton"
variant="ghost"
variant="outline"
:disabled="submitting"
@click="() => modalApi?.onCancel()"
>