refactor: rename components

zio/stable
Anthony Fu 2022-11-23 10:22:18 +08:00
parent a4d235b6fe
commit df9ee293a7
9 changed files with 11 additions and 2 deletions

View File

@ -6,12 +6,21 @@ const { modelValue } = defineModel<{
const el = ref<HTMLDivElement>() const el = ref<HTMLDivElement>()
onClickOutside(el, () => { onClickOutside(el, () => {
modelValue.value = false if (modelValue)
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>