Agriculture-front-end/dist/assets/index.57bc4d17.js
2023-09-21 17:37:29 +08:00

2 lines
620 B
JavaScript

import{r as n,z as l,t as u,O as d,G as m,f as e,o as p,c as h,k as _,I as g}from"./index.57224d07.js";const f=["src"],w={__name:"index",props:{src:{type:String,required:!0}},setup(s){const r=s,t=n(document.documentElement.clientHeight-94.5+"px;"),o=n(!0),c=l(()=>r.src);return u(()=>{setTimeout(()=>{o.value=!1},300),window.onresize=function(){t.value=document.documentElement.clientHeight-94.5+"px;"}}),(i,v)=>{const a=d("loading");return m((p(),h("div",{style:g("height:"+e(t))},[_("iframe",{src:e(c),frameborder:"no",style:{width:"100%",height:"100%"},scrolling:"auto"},null,8,f)],4)),[[a,e(o)]])}}};export{w as _};