UnisKB/static/chat/assets/SimpleLayout-DixL_e-Q.js

2 lines
1.2 KiB
JavaScript

import{S as f,_,a as h}from"./SystemHeader-BrbZ0bw8.js";import{aW as y,aX as b,bj as x,aY as r,a$ as v,b0 as l,bc as g,b5 as e,bl as i,b1 as k,bk as w,b3 as s,cf as n}from"./chat-5z0zeJ6U.js";import"./index-aNnMQYUY.js";import"./SettingAPIKeyDialog.vue_vue_type_script_setup_true_lang-mz8_rMZa.js";const E={class:"app-layout",style:{display:"flex","flex-direction":"column",height:"100vh"}},S={style:{width:"240px","border-right":"1px solid #e5e7eb"}},B={style:{flex:"1",overflow:"auto"}},j=y({__name:"SimpleLayout",setup(C){const a=b(),{user:t,theme:c}=x(),{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,$)=>{const u=v("el-alert");return l(),g("div",E,[e("div",{class:n(["app-header",p.value?"":"custom-header"]),style:{position:"static"}},[i(t).isExpire()?(l(),k(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",i(t).isExpire()?"isExpire":""]),style:{display:"flex",flex:"1",overflow:"hidden"}},[e("div",S,[s(_)]),e("div",B,[s(h)])],2)])}}});export{j as default};