254 B
254 B
::: title useClickOutside :::
<div ref="dropdownRef"></div>
const dropdownRef = (ref < null) | (HTMLElement > null)
const isClickOutside = useClickOutside(dropdownRef)
watch(isClickOutside, () => {
// do something
})