多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

6 lines
244 B

const isElementInvisible = (el: HTMLElement | Element) => {
const rect = el.getBoundingClientRect()
return rect.bottom < 0 || rect.right < 0 || rect.left > window.innerWidth || rect.top > window.innerHeight
}
export { isElementInvisible }