UnisKB/static/chat/assets/SimpleLayout-CSlF401H.js

2 lines
1.3 KiB
JavaScript

import{S as f,_,a as h}from"./SystemHeader-nU89e1N4.js";import{ay as y,b7 as x,aA as b,b8 as r,aD as v,aE as i,bf as E,aI as e,bn as l,aF as g,bm as w,aH as s,cf as n}from"./chat-u6cKkSMp.js";import"./ResetPassword.vue_vue_type_script_setup_true_lang-Dbk2wQcz.js";import"./SettingAPIKeyDialog.vue_vue_type_script_setup_true_lang--E5Yj0Bn.js";import"./index-BBfL7ROb.js";const S={class:"app-layout",style:{display:"flex","flex-direction":"column",height:"100vh"}},k={style:{width:"240px","border-right":"1px solid #e5e7eb"}},B={style:{flex:"1",overflow:"auto"}},T=y({__name:"SimpleLayout",setup(C){const a=x(),{user:t,theme:c}=b(),{params:{folderId:m},query:{from:o}}=a;r(()=>m==="shared"||o==="systemShare"||o==="systemManage"||a.path.includes("resource-management"));const p=r(()=>c.isDefaultTheme());return(d,D)=>{const u=v("el-alert");return i(),E("div",S,[e("div",{class:n(["app-header",p.value?"":"custom-header"]),style:{position:"static"}},[l(t).isExpire()?(i(),g(u,{key:0,title:d.$t("layout.isExpire"),type:"warning",class:"border-b","show-icon":"",closable:!1},null,8,["title"])):w("",!0),s(f)],2),e("div",{class:n(["app-main",l(t).isExpire()?"isExpire":""]),style:{display:"flex",flex:"1",overflow:"hidden"}},[e("div",k,[s(_)]),e("div",B,[s(h)])],2)])}}});export{T as default};