import{_ as m,q as d,B as n,w as v,v as s,C as p,as as g,L as h,o as x,n as w,p as D,D as k}from"./index.d8ce26ef.js";const B=["element-loading-text"],E=["src"],R={name:"FrameView"},V=d({...R,setup(y){var f,_;const a=n(!1),r=v(),o=n(""),c=n(null);(f=s(r.meta))!=null&&f.frameSrc&&(o.value=(_=s(r.meta))==null?void 0:_.frameSrc);function i(){a.value=!1}function l(){k(()=>{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(),w("div",{class:"frame","element-loading-text":"\u52A0\u8F7D\u4E2D..."},[D("iframe",{src:o.value,class:"frame-iframe",ref_key:"frameRef",ref:c},null,8,E)],8,B)),[[u,a.value]])}}});var C=m(V,[["__scopeId","data-v-de9fb3ee"]]);export{C as default};
