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>()
|
const el = ref<HTMLDivElement>()
|
||||||
|
|
||||||
onClickOutside(el, () => {
|
onClickOutside(el, () => {
|
||||||
|
if (modelValue)
|
||||||
modelValue.value = false
|
modelValue.value = false
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div ref="el" absolute bg-base>
|
<div
|
||||||
|
v-show="modelValue"
|
||||||
|
ref="el"
|
||||||
|
absolute
|
||||||
|
bg-base
|
||||||
|
rounded
|
||||||
|
shadow-xl
|
||||||
|
dark="border border-base"
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
Loading…
Reference in a new issue