# useVisibilityChange

侦听某个元素的可见
``` ts
setup() {
    const root = ref(null)

    useVisibilityChange(root, (visible: boolean) => {
        if (visible) {
            window.alert('吓老子一跳')
        } else {
            window.alert('休想看见老子')
        }
    })
}
```




沧海一声笑🤣🤣🤣    
喵喵喵喵喵🐶🐶🐶

