2 lines
832 B
JavaScript
2 lines
832 B
JavaScript
import{_ as n,w as r,D as i,Y as d,j as c,c as u,b as l,a1 as m,y as s}from"./index-CIAVq8iD-1776148658686.js";const y={__name:"MaskLayer",props:{maskLayerShow:{type:Boolean,required:!0}},setup(t){const a=t;return r(()=>a.maskLayerShow,o=>{o?(document.body.style.overflow="hidden",document.body.style.touchAction="none"):(document.body.style.overflow="",document.body.style.touchAction="")},{immediate:!0}),(o,e)=>i((c(),u("div",{style:{width:"100vw",height:"100vh","background-color":"#00000080",position:"fixed",inset:"0","z-index":"999"},onTouchmove:e[1]||(e[1]=s(()=>{},["prevent"]))},[l("div",{style:{position:"absolute",inset:"0","overflow-y":"auto"},onTouchmove:e[0]||(e[0]=s(()=>{},["stop"]))},[m(o.$slots,"default",{},void 0,!0)],32)],544)),[[d,t.maskLayerShow]])}},p=n(y,[["__scopeId","data-v-0c831f52"]]);export{p as m};
|