import{_ as m,d,n as r,j as v,i as s,p,aw as h,B as w,o as g,c as x,e as k,q as D}from"./index.js";const V={class:"frame","element-loading-text":"\u52A0\u8F7D\u4E2D..."},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=h("loading");return w((g(),x("div",V,[k("iframe",{src:o.value,class:"frame-iframe",ref_key:"frameRef",ref:c},null,8,y)])),[[u,a.value]])}}});var j=m(E,[["__scopeId","data-v-09fc7334"],["__file","D:/work/jiesuan/settle-vue3/src/layout/frameView.vue"]]);export{j as default};
