fix(components): [dialog] remove footer when not existed (#6590)

This commit is contained in:
三咲智子 2022-03-13 20:11:44 +08:00 committed by GitHub
parent 3ea96be394
commit 61cfd369dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@
<slot name="title" />
</template>
<slot />
<template #footer>
<template v-if="$slots.footer" #footer>
<slot name="footer" />
</template>
</el-dialog-content>