UNPKG

@aplus-frontend/antdv

Version:

Vue basic component library maintained based on ant-design-vue

21 lines 413 B
export default element => { if (!element) { return false; } if (element.offsetParent) { return true; } if (element.getBBox) { const box = element.getBBox(); if (box.width || box.height) { return true; } } if (element.getBoundingClientRect) { const box = element.getBoundingClientRect(); if (box.width || box.height) { return true; } } return false; };