Agriculture-front-end/dist/assets/index.30890b7c.js

2 lines
748 B
JavaScript
Raw Normal View History

2023-05-12 18:10:29 +08:00
import{_ as l,r as s,v as u,D as d,V as m,Q as p,f as e,o as _,c as f,l as h,S as g}from"./index.be11ec00.js";const v=["src"],x={__name:"index",props:{src:{type:String,required:!0}},setup(n){const r=n,t=s(document.documentElement.clientHeight-94.5+"px;"),o=s(!0),c=u(()=>r.src);return d(()=>{setTimeout(()=>{o.value=!1},300),window.onresize=function(){t.value=document.documentElement.clientHeight-94.5+"px;"}}),(i,w)=>{const a=m("loading");return p((_(),f("div",{style:g("height:"+e(t))},[h("iframe",{src:e(c),frameborder:"no",style:{width:"100%",height:"100%"},scrolling:"auto"},null,8,v)],4)),[[a,e(o)]])}}},D=l(x,[["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/iFrame/index.vue"]]);export{D as i};