We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94b8c01 commit 3a74ad5Copy full SHA for 3a74ad5
1 file changed
adminforth/spa/src/afcl/Dialog.vue
@@ -76,6 +76,7 @@ interface DialogProps {
76
clickToCloseOutside?: boolean
77
beforeCloseFunction?: (() => void | Promise<void>) | null
78
beforeOpenFunction?: (() => void | Promise<void>) | null
79
+ closable?: boolean
80
}
81
82
const props = withDefaults(defineProps<DialogProps>(), {
@@ -87,6 +88,7 @@ const props = withDefaults(defineProps<DialogProps>(), {
87
88
clickToCloseOutside: true,
89
beforeCloseFunction: null,
90
beforeOpenFunction: null,
91
+ closable: true,
92
})
93
94
onMounted(async () => {
@@ -95,6 +97,7 @@ onMounted(async () => {
95
97
modal.value = new Modal(
96
98
modalEl.value,
99
{
100
+ closable: props.closable,
101
backdrop: props.clickToCloseOutside ? 'dynamic' : 'static',
102
onHide: async () => {
103
if (props.beforeCloseFunction) {
0 commit comments