Files
supplier-dispatch-h5/node_modules/.cache/babel-loader/957e5251eb741b3b54786030be925628187b946fd74d0748d12f76f93401b8de.json
2023-08-11 10:45:20 +08:00

1 line
1.4 KiB
JSON

{"ast":null,"code":"export function isHidden(el) {\n var style = window.getComputedStyle(el);\n var hidden = style.display === 'none'; // offsetParent returns null in the following situations:\n // 1. The element or its parent element has the display property set to none.\n // 2. The element has the position property set to fixed\n\n var parentHidden = el.offsetParent === null && style.position !== 'fixed';\n return hidden || parentHidden;\n}","map":{"version":3,"names":["isHidden","el","style","window","getComputedStyle","hidden","display","parentHidden","offsetParent","position"],"sources":["E:/work/sino/sino-h5/node_modules/vant/es/utils/dom/style.js"],"sourcesContent":["export function isHidden(el) {\n var style = window.getComputedStyle(el);\n var hidden = style.display === 'none'; // offsetParent returns null in the following situations:\n // 1. The element or its parent element has the display property set to none.\n // 2. The element has the position property set to fixed\n\n var parentHidden = el.offsetParent === null && style.position !== 'fixed';\n return hidden || parentHidden;\n}"],"mappings":"AAAA,OAAO,SAASA,QAAQA,CAACC,EAAE,EAAE;EAC3B,IAAIC,KAAK,GAAGC,MAAM,CAACC,gBAAgB,CAACH,EAAE,CAAC;EACvC,IAAII,MAAM,GAAGH,KAAK,CAACI,OAAO,KAAK,MAAM,CAAC,CAAC;EACvC;EACA;;EAEA,IAAIC,YAAY,GAAGN,EAAE,CAACO,YAAY,KAAK,IAAI,IAAIN,KAAK,CAACO,QAAQ,KAAK,OAAO;EACzE,OAAOJ,MAAM,IAAIE,YAAY;AAC/B"},"metadata":{},"sourceType":"module","externalDependencies":[]}