This commit is contained in:
dap
2024-10-25 07:53:50 +08:00
18 changed files with 112 additions and 50 deletions

View File

@@ -29,7 +29,7 @@ export class ModalApi {
} = options;
const defaultState: ModalState = {
bordered: false,
bordered: true,
centered: false,
class: '',
closeOnClickModal: true,

View File

@@ -258,7 +258,13 @@ function handleFocusOutside(e: Event) {
v-if="showFooter"
ref="footerRef"
:class="
cn('flex-row items-center justify-end border-t p-2', footerClass)
cn(
'flex-row items-center justify-end p-2',
{
'border-t': bordered,
},
footerClass,
)
"
>
<slot name="prepend-footer"></slot>