import{_ as m,d,w as r,m as v,l as s,x as p,aC as h,H as x,o as g,c as w,h as k,y}from"./index.js";const D=["element-loading-text"],V=["src"],E={name:"FrameView"},R=d({...E,setup(B){var f,l;const a=r(!1),n=v(),o=r(""),c=r(null);(f=s(n.meta))!=null&&f.frameSrc&&(o.value=(l=s(n.meta))==null?void 0:l.frameSrc);function i(){a.value=!1}function _(){y(()=>{const e=s(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(),w("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,D)),[[u,a.value]])}}});var S=m(R,[["__scopeId","data-v-09fc7334"],["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/layout/frameView.vue"]]);export{S as default};
