Files
chat/backend/public/assets/ThemeToggle-BwEr7zqG.js
T
2026-08-05 15:56:08 +08:00

7 lines
1.2 KiB
JavaScript

import{q as n,_ as i,m as p,c as d,d as t,e as a,z as r,S as m}from"./index-CTF1v35B.js";/**
* @license @tabler/icons-vue v3.45.0 - MIT
*
* This source code is licensed under the MIT license.
* See the LICENSE file in the root directory of this source tree.
*/var T=n("outline","sparkles","Sparkles",[["path",{d:"M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6",key:"svg-0"}]]);const u={class:"theme-toggle",role:"group","aria-label":"界面主题"},g=["aria-pressed"],k=["aria-pressed"],_={__name:"ThemeToggle",setup(c){const{theme:s,setTheme:o}=m();return(b,e)=>(p(),d("div",u,[t("button",{type:"button",class:r({active:a(s)==="light"}),"aria-pressed":a(s)==="light","aria-label":"使用浅色主题",title:"浅色主题",onClick:e[0]||(e[0]=l=>a(o)("light"))},[...e[2]||(e[2]=[t("span",null,"浅色",-1)])],10,g),t("button",{type:"button",class:r({active:a(s)==="dark"}),"aria-pressed":a(s)==="dark","aria-label":"使用深色主题",title:"深色主题",onClick:e[1]||(e[1]=l=>a(o)("dark"))},[...e[3]||(e[3]=[t("span",null,"深色",-1)])],10,k)]))}},h=i(_,[["__scopeId","data-v-6644b9d7"]]);export{T as I,h as T};