import{d as u,q as o,H as v,f as a,B as p,b as g,w as h,o as w,c as x,g as V,U as k,_ as B}from "./index-f5e1fd05.js";const R={class:"frame","element-loading-text":"加载中..."},y=["src"],E=u({name:"FrameView",__name:"frameView",setup(S){var f,_,l;const r=o(!0),t=v(),c=o(""),i=o(null);(f=a(t.meta))!=null&&f.frameSrc&&(c.value=(_=a(t.meta))==null?void 0:_.frameSrc),((l=a(t.meta))==null?void 0:l.frameLoading)===!1&&n();function n(){r.value=!1}function m(){k(()=>{const e=a(i);if(!e)return;const s=e;s.attachEvent?s.attachEvent("onload",()=>{n()}):e.onload=()=>{n()}})}return p(()=>{m()}),(e, s)=>{const d=g("loading");return h((w(),x("div",R,[V("iframe",{src:c.value,class:"frame-iframe",ref_key:"frameRef",ref:i},null,8,y)])),[[d,r.value]])}}});const L=B(E,[["__scopeId","data-v-d038a369"]]);export{L as default};
