马宇豪
2023-10-20 3943ca967f32343d35f9d384669fc7db29863d1d
1
var g=Object.defineProperty;var f=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var m=(e,a,s)=>a in e?g(e,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[a]=s,l=(e,a)=>{for(var s in a||(a={}))h.call(a,s)&&m(e,s,a[s]);if(f)for(var s of f(a))p.call(a,s)&&m(e,s,a[s]);return e};import{J as v,ay as c,a1 as w,l as T,k as _,g as L,a4 as k,S as u,a as y,b as C,T as D,M as R,aE as V,n as $,al as b,o as x}from"./vue.1683511265143.js";import{_ as I,u as B,e as S}from"./index.1683511265143.js";const U=v({name:"layoutIfameView",setup(){const e=B(),a=S(),{themeConfig:s}=c(e),{isTagsViewCurrenFull:n}=c(a),i=V(),t=w({iframeDom:null,iframeLoading:!0,iframeUrl:""}),r=()=>{t.iframeUrl=i.meta.isLink,$(()=>{t.iframeLoading=!0;const o=t.iframeDom;if(!o)return!1;o.onload=()=>{t.iframeLoading=!1}})},d=T(()=>{let{isTagsview:o}=s.value;return n.value?"1px":o?"86px":"51px"});return _(()=>{r()}),L(()=>i.path,()=>{r()}),l({setIframeHeight:d},k(t))}}),E=["src"];function H(e,a,s,n,i,t){const r=b("loading");return u((x(),y("div",{class:"layout-view-bg-white flex mt1",style:R({height:`calc(100vh - ${e.setIframeHeight}`,border:"none"})},[u(C("iframe",{src:e.iframeUrl,frameborder:"0",height:"100%",width:"100%",ref:"iframeDom"},null,8,E),[[D,!e.iframeLoading]])],4)),[[r,e.iframeLoading]])}var J=I(U,[["render",H]]);export{J as default};