x-php-Admin/dist/static/js/875.898b0ed5.js

1 line
3.3 KiB
JavaScript
Raw Normal View History

2023-12-22 14:57:41 +00:00
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[875],{9875:function(e,l,a){a.r(l),a.d(l,{default:function(){return c}});var t=a(6252);const o=(0,t._)("div",{class:"el-form-item-msg"},null,-1),r=(0,t._)("div",{class:"el-form-item-msg"},"自动登出设置将在下次登录时生效",-1);function m(e,l,a,m,i,n){const d=(0,t.up)("el-switch"),u=(0,t.up)("el-form-item"),c=(0,t.up)("el-color-picker"),s=(0,t.up)("el-form"),f=(0,t.up)("el-card"),p=(0,t.up)("el-option"),g=(0,t.up)("el-select");return(0,t.wg)(),(0,t.iD)(t.HY,null,[(0,t.Wm)(f,{shadow:"never",header:"语言主题",style:{margin:"10px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{label:"主题"},{default:(0,t.w5)((()=>[(0,t.Wm)(d,{modelValue:i.config.dark,"onUpdate:modelValue":l[0]||(l[0]=e=>i.config.dark=e),"inline-prompt":"","active-icon":"el-icon-moon","inactive-icon":"el-icon-sunny"},null,8,["modelValue"]),o])),_:1}),(0,t.Wm)(u,{label:"主题颜色"},{default:(0,t.w5)((()=>[(0,t.Wm)(c,{modelValue:i.config.colorPrimary,"onUpdate:modelValue":l[1]||(l[1]=e=>i.config.colorPrimary=e),predefine:i.colorList},{default:(0,t.w5)((()=>[(0,t.Uk)(">")])),_:1},8,["modelValue","predefine"])])),_:1})])),_:1},512)])),_:1}),(0,t.Wm)(f,{shadow:"never",header:"个人设置",style:{margin:"10px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{label:"自动登出"},{default:(0,t.w5)((()=>[(0,t.Wm)(g,{modelValue:i.config.autoExit,"onUpdate:modelValue":l[2]||(l[2]=e=>i.config.autoExit=e)},{default:(0,t.w5)((()=>[(0,t.Wm)(p,{label:"从不",value:0}),(0,t.Wm)(p,{label:"1分钟",value:1}),(0,t.Wm)(p,{label:"5分钟",value:5}),(0,t.Wm)(p,{label:"10分钟",value:10}),(0,t.Wm)(p,{label:"15分钟",value:15}),(0,t.Wm)(p,{label:"20分钟",value:20}),(0,t.Wm)(p,{label:"25分钟",value:25}),(0,t.Wm)(p,{label:"30分钟",value:30}),(0,t.Wm)(p,{label:"35分钟",value:35}),(0,t.Wm)(p,{label:"40分钟",value:40}),(0,t.Wm)(p,{label:"45分钟",value:45}),(0,t.Wm)(p,{label:"50分钟",value:50}),(0,t.Wm)(p,{label:"55分钟",value:55}),(0,t.Wm)(p,{label:"60分钟",value:60})])),_:1},8,["modelValue"]),r])),_:1})])),_:1},512)])),_:1})],64)}var i=a(3111),n={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.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}`,i.Z.lighten(e,l/10));for(let l=1;l<=9;l++)document.documentElement.style.setProperty(`--el-color-primary-dark-${l}`,i.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)}}},d=a(3744);const u=(0,d.Z)(n,[["render",m]]);var c=u}}]);