This commit is contained in:
2023-05-20 12:14:48 +02:00
parent 95359c792a
commit b4c9076986
6 changed files with 33 additions and 42 deletions

View File

@@ -3,14 +3,14 @@ import { onClickOutside } from '@vueuse/core'
const props = withDefaults(
defineProps<{
open: boolean
open?: boolean
}>(),
{
open: false
}
)
const show = ref<boolean>(props.open)
const show = ref<boolean>(Boolean(props.open))
const modal = ref<HTMLElement | null>(null)
const modalBox = ref(null)