frameView.8026b4.js 840 B

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