Files
PandaX/static/assets/parent.55ef82e6.js
feilong.teng@rheinchina.com cd824b7f0c 集成完成
2021-12-12 19:49:39 +08:00

2 lines
1.6 KiB
JavaScript

var w=Object.defineProperty;var m=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var c=(s,e,t)=>e in s?w(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,f=(s,e)=>{for(var t in e||(e={}))k.call(e,t)&&c(s,t,e[t]);if(m)for(var t of m(e))N.call(e,t)&&c(s,t,e[t]);return s};import{h as _,L as V,i as y,I as r,M as C,n as R,j as g,O as A,t as L,k as T,l as K,y as p,z as v,F as B,C as i,T as P,P as h,a2 as x,a3 as $}from"./vendor.14d7a511.js";import{_ as j,u as I}from"./index.d7413c26.js";const M=_({name:"layoutParentView",setup(){const{proxy:s}=B(),e=V(),t=I(),a=y({refreshRouterViewKey:null,keepAliveNameList:[],keepAliveNameNewList:[]}),u=r(()=>t.state.themeConfig.themeConfig.animation),l=r(()=>t.state.themeConfig.themeConfig),o=r(()=>t.state.keepAliveNames.keepAliveNames);return C(()=>{a.keepAliveNameList=o.value,s.mittBus.on("onTagsViewRefreshRouterView",n=>{a.keepAliveNameList=o.value.filter(d=>e.name!==d),a.refreshRouterViewKey=null,R(()=>{a.refreshRouterViewKey=n,a.keepAliveNameList=o.value})})}),g(()=>{s.mittBus.off("onTagsViewRefreshRouterView")}),A(()=>e.fullPath,()=>{a.refreshRouterViewKey=e.fullPath}),f({getThemeConfig:l,getKeepAliveNames:o,setTransitionName:u},L(a))}}),z={class:"h100"};function D(s,e,t,a,u,l){const o=T("router-view");return i(),K("div",z,[p(o,null,{default:v(({Component:n})=>[p(P,{name:s.setTransitionName,mode:"out-in"},{default:v(()=>[(i(),h($,{include:s.keepAliveNameList},[(i(),h(x(n),{key:s.refreshRouterViewKey,class:"w100"}))],1032,["include"]))]),_:2},1032,["name"])]),_:1})])}var S=j(M,[["render",D]]);export{S as default};