You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
819 B
JavaScript
2 lines
819 B
JavaScript
1 year ago
|
import{d as u,q as o,H as v,f as a,B as p,b as g,w as h,o as w,c as x,g as V,U as k,_ as B}from "./index-f5e1fd05.js";const R={class:"frame","element-loading-text":"加载中..."},y=["src"],E=u({name:"FrameView",__name:"frameView",setup(S){var f,_,l;const r=o(!0),t=v(),c=o(""),i=o(null);(f=a(t.meta))!=null&&f.frameSrc&&(c.value=(_=a(t.meta))==null?void 0:_.frameSrc),((l=a(t.meta))==null?void 0:l.frameLoading)===!1&&n();function n(){r.value=!1}function m(){k(()=>{const e=a(i);if(!e)return;const s=e;s.attachEvent?s.attachEvent("onload",()=>{n()}):e.onload=()=>{n()}})}return p(()=>{m()}),(e, s)=>{const d=g("loading");return h((w(),x("div",R,[V("iframe",{src:c.value,class:"frame-iframe",ref_key:"frameRef",ref:i},null,8,y)])),[[d,r.value]])}}});const L=B(E,[["__scopeId","data-v-d038a369"]]);export{L as default};
|