import{d as _,f as a,u as e,e as v,a2 as y,a3 as x,k as H,af as w,a4 as S,a6 as l,ac as m}from"./vue-vendor-CxLCUzY4.js";import{r as C}from"./antd-vue-vendor-CahNzUUa.js";import{useWindowSizeFn as R}from"./useWindowSizeFn-D9PllI8g.js";import{C as k,F as z,_ as B}from"./index-CLZzJyTP.js";import{u as F}from"./useContentViewHeight-BIb_dTbE.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./usePageContext-FyDvfV_K.js";const L=["src"],$=_({__name:"index",props:{frameSrc:z.string.def("")},setup(p){const n=a(!0),u=a(50),o=a(window.innerHeight),r=a(),{headerHeightRef:d}=F(),{prefixCls:i}=k("iframe-page");R(f,150,{immediate:!0});const c=v(()=>({height:`${e(o)}px`}));function f(){const s=e(r);if(!s)return;const t=d.value;u.value=t,o.value=window.innerHeight-t;const h=document.documentElement.clientHeight-t;s.style.height=`${h}px`}function g(){n.value=!1,f()}return(s,t)=>(y(),x("div",{class:l(e(i)),style:m(c.value)},[H(e(C),{spinning:n.value,size:"large",style:m(c.value)},{default:w(()=>[S("iframe",{src:p.frameSrc,class:l(`${e(i)}__main`),ref_key:"frameRef",ref:r,onLoad:g},null,42,L)]),_:1},8,["spinning","style"])],6))}}),P=B($,[["__scopeId","data-v-c68bc0a9"]]);export{P as default};
