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