2 lines
16 KiB
JavaScript
2 lines
16 KiB
JavaScript
|
import{d as P,r as V,cL as F,cU as he,cV as xe,q as I,h as r,c as y,e as s,w as o,a as n,t as $,u as e,N as h,bE as Q,aM as ve,cE as ge,ap as O,cW as le,cX as ee,_ as G,K as J,n as te,cR as we,i as q,af as ye,aJ as be,aT as ke,aU as $e,aV as Se,W as Ee,X as Ve,Y as Ce,E as re,aa as ce,p as De,g as Ie,f as K,U,cS as Re,cM as de,v as Te,I as b,G as A,F as D,B as E,y as oe,cp as se,A as M,cY as Ue,cZ as Me,an as Pe,ao as je,Q as X,O as Y,R as H,c_ as Be,V as ie,ai as Le,c$ as ue,ae as ne,s as pe,d0 as We,cG as _e,d1 as qe,Z as me,cT as Fe,cN as Ne,a_ as Ae,J as ze,a1 as He}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as N}from"./index.vue_vue_type_script_setup_true_lang-9285296e.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css */import{s as Oe}from"./personal-f9857d63.js";/* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css */import{_ as Ge}from"./icon-addon-339e16d0.js";/* empty css */const Je={class:"flex"},Ke={class:"setting-item flex items-center justify-between mb-[10px]"},Xe={class:"title text-base text-tx-secondary"},Ye={class:""},Ze={class:"setting-item flex items-center justify-between mb-[10px]"},Qe={class:"title text-base text-tx-secondary"},et={class:""},tt=P({__name:"layout-setting",setup(u){const x=V(!1),f=F(),p=he(),v=xe(p),t=I({get(){return f.dark},set(a){f.setTheme("dark",a),v(a),ee(f.theme,f.dark?"dark":"light")}}),k=I({get(){return f.theme},set(a){f.setTheme("theme",a),ee(f.theme,f.dark?"dark":"light")}});return(a,l)=>{const g=N,w=ve,c=ge,d=O,i=le;return r(),y("div",Je,[s(g,{name:"element-Setting",onClick:l[0]||(l[0]=_=>x.value=!0)}),s(i,{modelValue:x.value,"onUpdate:modelValue":l[3]||(l[3]=_=>x.value=_),title:e(h)("layout.layoutSetting"),size:"300px"},{default:o(()=>[s(d,null,{default:o(()=>[n("div",Ke,[n("div",Xe,$(e(h)("layout.darkMode")),1),n("div",Ye,[s(w,{modelValue:e(t),"onUpdate:modelValue":l[1]||(l[1]=_=>Q(t)?t.value=_:null),"active-value":!0,"inactive-value":!1},null,8,["modelValue"])])]),n("div",Ze,[n("div",Qe,$(e(h)("layout.themeColor")),1),n("div",et,[s(c,{modelValue:e(k),"onUpdate:modelValue":l[2]||(l[2]=_=>Q(k)?k.value=_:null)},null,8,["modelValue"])])])]),_:1})]),_:1},8,["modelValue","title"])])}}});const ot=G(tt,[["__scopeId","data-v-ddd4e4e2"]]),z=u=>(De("data-v-b07cf2e9"),u=u(),Ie(),u),st={class:"userinfo flex h-full items-center"},nt={class:"user-name pl-[8px]"},at=z(()=>n("div",{class:"flex items-center leading-[1] py-[5px]"},[n("span",{class:"iconfont iconqiehuan ml-[4px] !text-[14px] mr-[10px]"}),n("span",{class:"text-[14px]"},"切换站点")],-1)),lt=z(()=>n("div",{class:"flex items-center leading-[1] py-[5px]"},[n("span",{class:"iconfont iconshezhi1 ml-[4px] !text-[14px] mr-[10px]"}),n("span",{class:"text-[14px]"},"账号设置")],-1)),rt=z(()=>n("div",{class:"flex items-center leading-[1] py-[5px]"},[n("span",{class:"iconfont iconxiugai ml-[4px] !text-[14px] mr-[10px]"}),n("span",{class:"text-[14px]"},"修改密码")],-1)),ct=z(()=>n("div",{class:"flex items-center leading-[1] py-[2px]"},[n("span",{class:"iconfont icontuichudenglu !text-[21px] mr-[8px]"}),n("span",{class:"text-[14px]"},"退出登录")],-1)),dt={class:"form-tip"},it={class:"dialog-footer"},ut=P({__name:"user-info",setup(u){const x=J(),f=K(),p=w=>{switch(w){case"logout":x.logout();break}},v=w=>{f.push(w)},t=V(!1),k=V(),a=te({original_password:"",password:"",password_copy:""}),l=te({original_password:[{required:!0,message:h("originalPasswordPlaceholder"),trigger:"blur"}],password:[{required:!0,message:h("passwordPlaceholder"),trigger:"blur"}],password_copy:[{required:!0,message:h("passwordPlaceholder"),trigger:"blur"}]}),g=w=>{w&&w.validate(c=>{if(c){
|