zhxy-jsd/dist/build/h5/assets/Layout.7385e6f6.js
2025-05-21 02:44:13 +08:00

2 lines
1.1 KiB
JavaScript

import{d as e,r as s,Z as t,aa as o,b as l,e as a,w as d,N as f,h as i,q as p,O as r,g as u,aP as n,_ as x,l as c}from"./index-f6e54d8f.js";import{_ as m}from"./_plugin-vue_export-helper.1b428a4d.js";const y=m(e({__name:"Layout",props:{scroll:{type:Boolean,default:!1},fixed:{type:Boolean,default:!0},modePopup:{type:String,default:"bottom"}},emits:["closePopup"],setup(e,{emit:m}){const y=s(0);return t((()=>{setTimeout((()=>{y.value=o().windowTop}),200)})),(s,t)=>{const o=c;return l(),a(o,{class:x(["wh-full flex-col",{fixed:e.fixed}])},{default:d((()=>[e.fixed?(l(),a(o,{key:0,style:f("height:"+i(y)+"px")},null,8,["style"])):p("v-if",!0),r(s.$slots,"top",{},void 0,!0),u(o,{class:"flex-1 ov-hidden po-re flex-shrink"},{default:d((()=>[u(o,{class:"po-ab",style:{top:"0",left:"0",right:"0",bottom:"0","overflow-y":"scroll"}},{default:d((()=>[r(s.$slots,"default",{},void 0,!0)])),_:3})])),_:3}),r(s.$slots,"bottom",{},void 0,!0),e.fixed?(l(),a(o,{key:1,style:f({height:i(n)()+"px"})},null,8,["style"])):p("v-if",!0)])),_:3},8,["class"])}}}),[["__scopeId","data-v-0e9d75ff"]]);export{y as _};