var _=Object.defineProperty;var c=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var f=(s,e,a)=>e in s?_(s,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[e]=a,p=(s,e)=>{for(var a in e||(e={}))k.call(e,a)&&f(s,a,e[a]);if(c)for(var a of c(e))T.call(e,a)&&f(s,a,e[a]);return s};import{J as y,ay as v,a1 as A,l as w,I as K,n as d,k as C,G as L,g as B,a4 as I,a as P,Y as h,R as V,j as $,aE as x,a5 as U,o as l,Z as j,Q as R,U as E,aI as M}from"./vue.1704421723665.js";import{_ as S,j as D,u as G,S as J}from"./index.1704421723665.js";const Q=y({name:"layoutParentView",setup(){const{proxy:s}=$(),e=x(),a=D(),m=G(),{keepAliveNames:n,cachedViews:r}=v(a),{themeConfig:o}=v(m),t=A({refreshRouterViewKey:null,keepAliveNameList:[]}),g=w(()=>o.value.animation),N=w(()=>o.value.isTagsview?r.value:t.keepAliveNameList);return K(()=>{t.keepAliveNameList=n.value,s.mittBus.on("onTagsViewRefreshRouterView",i=>{t.keepAliveNameList=n.value.filter(u=>e.name!==u),t.refreshRouterViewKey=null,d(()=>{t.refreshRouterViewKey=i,t.keepAliveNameList=n.value})})}),C(()=>{d(()=>{setTimeout(()=>{var i;o.value.isCacheTagsView&&(r.value=(i=J.get("tagsViewList"))==null?void 0:i.map(u=>u.name))},0)})}),L(()=>{s.mittBus.off("onTagsViewRefreshRouterView",()=>{})}),B(()=>e.fullPath,()=>{t.refreshRouterViewKey=decodeURI(e.fullPath)}),p({setTransitionName:g,getKeepAliveNames:N},I(t))}}),Y={class:"h100"};function Z(s,e,a,m,n,r){const o=U("router-view");return l(),P("div",Y,[h(o,null,{default:V(({Component:t})=>[h(j,{name:s.setTransitionName,mode:"out-in"},{default:V(()=>[(l(),R(M,{include:s.getKeepAliveNames},[(l(),R(E(t),{key:s.refreshRouterViewKey,class:"w100"}))],1032,["include"]))]),_:2},1032,["name"])]),_:1})])}var F=S(Q,[["render",Z]]);export{F as default};
|