1 |
- import{a as m,ad as p,r as o,B as g,u as e,o as h,a7 as x,Z as k,c as w,e as B,m as R,Y as V,_ as y}from"./index.4d061c66.js";const E=["element-loading-text"],L=["src"],S=m({name:"FrameView"}),D=m({...S,setup(I){var f,_,l;const{t:u}=p(),r=o(!0),t=g(),c=o(""),i=o(null);(f=e(t.meta))!=null&&f.frameSrc&&(c.value=(_=e(t.meta))==null?void 0:_.frameSrc),((l=e(t.meta))==null?void 0:l.frameLoading)===!1&&s();function s(){r.value=!1}function d(){V(()=>{const a=e(i);if(!a)return;const n=a;n.attachEvent?n.attachEvent("onload",()=>{s()}):a.onload=()=>{s()}})}return h(()=>{d()}),(a,n)=>{const v=x("loading");return k((w(),B("div",{class:"frame","element-loading-text":e(u)("status.hsLoad")},[R("iframe",{src:c.value,class:"frame-iframe",ref_key:"frameRef",ref:i},null,8,L)],8,E)),[[v,r.value]])}}});const F=y(D,[["__scopeId","data-v-02537a84"]]);export{F as default};
|