forked from Mirrors/elk
refactor: rename components
This commit is contained in:
parent
a4d235b6fe
commit
df9ee293a7
9 changed files with 11 additions and 2 deletions
|
@ -6,12 +6,21 @@ const { modelValue } = defineModel<{
|
|||
const el = ref<HTMLDivElement>()
|
||||
|
||||
onClickOutside(el, () => {
|
||||
modelValue.value = false
|
||||
if (modelValue)
|
||||
modelValue.value = false
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div ref="el" absolute bg-base>
|
||||
<div
|
||||
v-show="modelValue"
|
||||
ref="el"
|
||||
absolute
|
||||
bg-base
|
||||
rounded
|
||||
shadow-xl
|
||||
dark="border border-base"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
Loading…
Reference in a new issue