frameView.3fb8404b.js 882 B

1
  1. import{_ as m,r as d,D as r,y as v,x as s,E as p,aw as x,N as g,o as h,p as w,q as D,F as k}from"./index.93d58d1e.js";const y=["element-loading-text"],E=["src"],V={name:"FrameView"},R=d({...V,setup(B){var f,_;const a=r(!1),o=v(),n=r(""),c=r(null);(f=s(o.meta))!=null&&f.frameSrc&&(n.value=(_=s(o.meta))==null?void 0:_.frameSrc);function i(){a.value=!1}function l(){k(()=>{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=x("loading");return g((h(),w("div",{class:"frame","element-loading-text":"\u52A0\u8F7D\u4E2D..."},[D("iframe",{src:n.value,class:"frame-iframe",ref_key:"frameRef",ref:c},null,8,E)],8,y)),[[u,a.value]])}}});var S=m(R,[["__scopeId","data-v-09fc7334"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/layout/frameView.vue"]]);export{S as default};