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