import{_ as m,d,m as r,i as v,u as s,n as p,ag as g,B as h,o as x,c as k,b as w,p as D}from"./index.e80c366d.js";const V=["element-loading-text"],y=["src"],B={name:"FrameView"},E=d({...B,setup(R){var f,_;const a=r(!1),n=v(),o=r(""),c=r(null);(f=s(n.meta))!=null&&f.frameSrc&&(o.value=(_=s(n.meta))==null?void 0:_.frameSrc);function i(){a.value=!1}function l(){D(()=>{const e=s(c);if(!e)return;const t=e;t.attachEvent?t.attachEvent("onload",()=>{i()}):e.onload=()=>{i()}})}return p(()=>{a.value=!0,l()}),(e,t)=>{const u=g("loading");return h((x(),k("div",{class:"frame","element-loading-text":"\u52A0\u8F7D\u4E2D..."},[w("iframe",{src:o.value,class:"frame-iframe",ref_key:"frameRef",ref:c},null,8,y)],8,V)),[[u,a.value]])}}});var C=m(E,[["__scopeId","data-v-09fc7334"],["__file","C:/Users/63107/Desktop/projects/report-v3/src/layout/frameView.vue"]]);export{C as default};
