frameView.a4d3c435.js 850 B

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