feat: modal&drawer support center-footer slot (#5956)

This commit is contained in:
ming4762
2025-04-15 16:04:44 +08:00
committed by GitHub
parent d864085c13
commit c7e6210c8d
5 changed files with 17 additions and 14 deletions

View File

@@ -274,7 +274,7 @@ const getAppendTo = computed(() => {
{{ cancelText || $t('cancel') }}
</slot>
</component>
<slot name="center-footer"></slot>
<component
:is="components.PrimaryButton || VbenButton"
v-if="showConfirmButton"

View File

@@ -321,7 +321,7 @@ function handleClosed() {
{{ cancelText || $t('cancel') }}
</slot>
</component>
<slot name="center-footer"></slot>
<component
:is="components.PrimaryButton || VbenButton"
v-if="showConfirmButton"