x-php-Admin/dist/static/js/599.25c7ae90.js

1 line
3.9 KiB
JavaScript
Raw Normal View History

2023-10-15 08:16:41 +00:00
"use strict";(self["webpackChunkX_PHP_Admin"]=self["webpackChunkX_PHP_Admin"]||[]).push([[599],{5599:function(e,l,a){a.r(l),a.d(l,{default:function(){return f}});var t=a(6252),o=a(3577);const m={class:"el-form-item-msg"},n={class:"el-form-item-msg"},i=(0,t._)("div",{class:"el-form-item-msg"},"自动登出设置将在下次登录时生效",-1);function r(e,l,a,r,d,u){const c=(0,t.up)("el-switch"),s=(0,t.up)("el-form-item"),f=(0,t.up)("el-color-picker"),g=(0,t.up)("el-option"),p=(0,t.up)("el-select"),h=(0,t.up)("el-form"),_=(0,t.up)("el-card");return(0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(_,{shadow:"never",header:"语言主题",style:{margin:"10px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(h,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{label:e.$t("user.nightmode")},{default:(0,t.w5)((()=>[(0,t.Wm)(c,{modelValue:d.config.dark,"onUpdate:modelValue":l[0]||(l[0]=e=>d.config.dark=e),"inline-prompt":"","active-icon":"el-icon-moon","inactive-icon":"el-icon-sunny"},null,8,["modelValue"]),(0,t._)("div",m,(0,o.zw)(e.$t("user.nightmode_msg")),1)])),_:1},8,["label"]),(0,t.Wm)(s,{label:"主题颜色"},{default:(0,t.w5)((()=>[(0,t.Wm)(f,{modelValue:d.config.colorPrimary,"onUpdate:modelValue":l[1]||(l[1]=e=>d.config.colorPrimary=e),predefine:d.colorList},{default:(0,t.w5)((()=>[(0,t.Uk)(">")])),_:1},8,["modelValue","predefine"])])),_:1}),(0,t.Wm)(s,{label:e.$t("user.language")},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{modelValue:d.config.lang,"onUpdate:modelValue":l[2]||(l[2]=e=>d.config.lang=e)},{default:(0,t.w5)((()=>[(0,t.Wm)(g,{label:"简体中文",value:"zh-cn"}),(0,t.Wm)(g,{label:"English",value:"en"})])),_:1},8,["modelValue"]),(0,t._)("div",n,(0,o.zw)(e.$t("user.language_msg")),1)])),_:1},8,["label"])])),_:1},512)])),_:1}),(0,t.Wm)(_,{shadow:"never",header:"个人设置",style:{margin:"10px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(h,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{label:"自动登出"},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{modelValue:d.config.autoExit,"onUpdate:modelValue":l[3]||(l[3]=e=>d.config.autoExit=e)},{default:(0,t.w5)((()=>[(0,t.Wm)(g,{label:"从不",value:0}),(0,t.Wm)(g,{label:"1分钟",value:1}),(0,t.Wm)(g,{label:"5分钟",value:5}),(0,t.Wm)(g,{label:"10分钟",value:10}),(0,t.Wm)(g,{label:"15分钟",value:15}),(0,t.Wm)(g,{label:"20分钟",value:20}),(0,t.Wm)(g,{label:"25分钟",value:25}),(0,t.Wm)(g,{label:"30分钟",value:30}),(0,t.Wm)(g,{label:"35分钟",value:35}),(0,t.Wm)(g,{label:"40分钟",value:40}),(0,t.Wm)(g,{label:"45分钟",value:45}),(0,t.Wm)(g,{label:"50分钟",value:50}),(0,t.Wm)(g,{label:"55分钟",value:55}),(0,t.Wm)(g,{label:"60分钟",value:60})])),_:1},8,["modelValue"]),i])),_:1})])),_:1},512)])),_:1})],64)}var d=a(3111),u={data(){return{colorList:["#409EFF","#009688","#536dfe","#ff5c93","#c62f2f","#fd726d"],config:{lang:this.$tool.data.get("APP_LANG")||this.$config.LANG,dark:this.$tool.data.get("APP_DARK")||!1,colorPrimary:this.$tool.data.get("APP_COLOR")||this.$config.COLOR||"#409EFF",autoExit:this.$tool.data.get("AUTO_EXIT")||0}}},watch:{"config.dark"(e){e?(document.documentElement.classList.add("dark"),this.$tool.data.set("APP_DARK",e)):(document.documentElement.classList.remove("dark"),this.$tool.data.remove("APP_DARK"))},"config.lang"(e){this.$i18n.locale=e,this.$tool.data.set("APP_LANG",e)},"config.colorPrimary"(e){e||(e="#409EFF",this.config.colorPrimary="#409EFF"),document.documentElement.style.setProperty("--el-color-primary",e);for(let l=1;l<=9;l++)document.documentElement.style.setProperty(`--el-color-primary-light-${l}`,d.Z.lighten(e,l/10));for(let l=1;l<=9;l++)document.documentElement.style.setProperty(`--el-color-primary-dark-${l}`,d.Z.darken(e,l/10));this.$tool.data.set("APP_COLOR",e)},"config.autoExit"(e){0==e?this.$tool.data.remove("AUTO_EXIT"):this.$tool.data.set("AUTO_EXIT",e)}}},c=a(3744);const s=(0,c.Z)(u,[["render",r]]);var f=s}}]);