index-f2c2d1cf-D7xJgI7E.js 1.3 KB

1
  1. import{f as r,e as m,u,d as l,ag as p,v as f,q as h,ar as v,aq as w,as as C,k as L}from"./vue-vendor-Be68asQ6.js";import{co as P,F as y,cM as x,D as H}from"./index-BFfnEkVs.js";import{createPageContext as D}from"./usePageContext-WlOC5VNa.js";import{useWindowSizeFn as k}from"./useWindowSizeFn-BTSGGcie.js";import"./antd-vue-vendor-DcqS7Wvq.js";import"./vxe-table-vendor-DHF2TRpV.js";var M=(e,o,t)=>new Promise((a,i)=>{var d=n=>{try{s(t.next(n))}catch(c){i(c)}},g=n=>{try{s(t.throw(n))}catch(c){i(c)}},s=n=>n.done?a(n.value):Promise.resolve(n.value).then(d,g);s((t=t.apply(e,o)).next())});const S=r(0),z=r(0);function O(){const e=r(window.innerHeight),o=r(window.innerHeight),t=m(()=>u(e)-u(S)-u(z)||0);k(()=>{e.value=window.innerHeight},100,{immediate:!0});function a(i){return M(this,null,function*(){o.value=i})}D({contentHeight:t,setPageHeight:a,pageHeight:o})}const q=l({name:"LayoutContent",components:{},setup(){const{prefixCls:e}=y("layout-content"),{getOpenPageLoading:o}=x(),{getLayoutContentMode:t,getPageLoading:a}=H();return O(),{prefixCls:e,getOpenPageLoading:o,getLayoutContentMode:t,getPageLoading:a}}});function B(e,o,t,a,i,d){const g=p("RouterView"),s=f("loading");return h((v(),w("div",{class:C([e.prefixCls,e.getLayoutContentMode])},[L(g)],2)),[[s,e.getOpenPageLoading&&e.getPageLoading]])}const T=P(q,[["render",B]]);export{T as default};