选煤厂安全管理系统前端代码
houzhongjian
2024-11-25 37b2044f04a09e89f82f8484279b5f06b7194481
1
import{d as p,a8 as h,r as f,o as I,g,a as o,I as _,n as b,ac as j,cF as k,H as w}from"./index-CHTXMeh8.js";import{u as t}from"./useIcon-DbhWU3UK.js";const a="var(--el-color-black)",T=w(p({name:"ThemeSwitch",__name:"ThemeSwitch",setup(V){const{getPrefixCls:i}=j(),r=i("theme-switch"),l=t({icon:"emojione-monotone:sun",color:"#fde047"}),m=t({icon:"emojione-monotone:crescent-moon",color:"#fde047"}),c=h(),e=f(c.getIsDark),d=n=>{c.setIsDark(n)};return(n,s)=>{const u=k;return I(),g(u,{modelValue:o(e),"onUpdate:modelValue":s[0]||(s[0]=v=>_(e)?e.value=v:null),"active-color":a,"active-icon":o(l),"border-color":a,class:b(o(r)),"inactive-color":a,"inactive-icon":o(m),"inline-prompt":"",onChange:d},null,8,["modelValue","active-icon","class","inactive-icon"])}}}),[["__scopeId","data-v-3b3542c2"]]);export{T};