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