zhouwx
2025-06-16 7c8c06b5397d22151b02407b1f4f19d771bb15dd
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 b,S as u,a as k,b as y,T as C,M as D,aE as R,n as V,al as $,o as x}from"./vue.1704421723665.js";import{_ as I,u as B,b as S}from"./index.1704421723665.js";const U=v({name:"layoutIfameView",setup(){const e=B(),a=S(),{themeConfig:s}=c(e),{isTagsViewCurrenFull:n}=c(a),i=R(),t=w({iframeDom:null,iframeLoading:!0,iframeUrl:""}),r=()=>{t.iframeUrl=i.meta.isLink,V(()=>{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},b(t))}}),E=["src"];function H(e,a,s,n,i,t){const r=$("loading");return u((x(),k("div",{class:"layout-view-bg-white flex mt1",style:D({height:`calc(100vh - ${e.setIframeHeight}`,border:"none"})},[u(y("iframe",{src:e.iframeUrl,frameborder:"0",height:"100%",width:"100%",ref:"iframeDom"},null,8,E),[[C,!e.iframeLoading]])],4)),[[r,e.iframeLoading]])}var J=I(U,[["render",H]]);export{J as default};