This commit is contained in:
2023-08-11 10:45:20 +08:00
commit 161ca982f3
31850 changed files with 2706500 additions and 0 deletions

9
node_modules/vant/es/utils/dom/style.js generated vendored Normal file
View File

@ -0,0 +1,9 @@
export function isHidden(el) {
var style = window.getComputedStyle(el);
var hidden = style.display === 'none'; // offsetParent returns null in the following situations:
// 1. The element or its parent element has the display property set to none.
// 2. The element has the position property set to fixed
var parentHidden = el.offsetParent === null && style.position !== 'fixed';
return hidden || parentHidden;
}