ThemeSwitch-029c6be5.js 1000 B

1
  1. import{d as p,y as v,r as f,o as y,A as b,a,a2 as g,ac as j,ae as k,cH as w,__tla as I}from"./index-685a9214.js";import{u as l,__tla as T}from"./useIcon-7445c9f0.js";import{_ as V}from"./_plugin-vue_export-helper-1b428a4d.js";let r,x=Promise.all([(()=>{try{return I}catch{}})(),(()=>{try{return T}catch{}})()]).then(async()=>{let e;e="var(--el-color-black)",r=V(p({name:"ThemeSwitch",__name:"ThemeSwitch",setup(C){const{getPrefixCls:s}=k(),i=s("theme-switch"),m=l({icon:"emojione-monotone:sun",color:"#fde047"}),_=l({icon:"emojione-monotone:crescent-moon",color:"#fde047"}),t=v(),o=f(t.getIsDark),u=c=>{t.setIsDark(c)};return(c,n)=>{const d=w;return y(),b(d,{modelValue:a(o),"onUpdate:modelValue":n[0]||(n[0]=h=>g(o)?o.value=h:null),"active-color":e,"active-icon":a(m),"border-color":e,class:j(a(i)),"inactive-color":e,"inactive-icon":a(_),"inline-prompt":"",onChange:u},null,8,["modelValue","active-icon","class","inactive-icon"])}}}),[["__scopeId","data-v-3b3542c2"]])});export{r as T,x as __tla};