Skip to content

Commit 4e43dac

Browse files
committed
Merge branch 'next' of https://github.com/devforth/adminforth into next
2 parents 2f59975 + 1fc17fa commit 4e43dac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adminforth/spa/src/afcl/Dialog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</div>
88
<Teleport to="body">
99
<div ref="modalEl" tabindex="-1" aria-hidden="true" class="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-full max-h-full">
10-
<div v-bind="$attrs" class="relative p-4 max-w-2xl max-h-full" :class="$attrs.class?.includes('w-') ? '' : 'w-full'">
10+
<div v-bind="$attrs" class="relative p-4 max-w-2xl max-h-full" :class="($attrs.class as string)?.includes('w-') ? '' : 'w-full'">
1111
<!-- Modal content -->
1212
<div class="relative bg-lightDialogBackgorund rounded-lg shadow-sm dark:bg-darkDialogBackgorund">
1313
<!-- Modal header -->
@@ -66,7 +66,7 @@ const modal: Ref<Modal|null> = ref(null);
6666
interface DialogButton {
6767
label: string
6868
onclick: (dialog: any) => void
69-
type?: string
69+
options?: Record<string, any>
7070
}
7171
7272
interface DialogProps {

0 commit comments

Comments
 (0)