import{_ as e,i as t,a,b as s,o,c as l,f as n,e as d,w as u,t as h,h as r,p as m,k as c}from"./index-4c6e30ca.js";const i={data:()=>({currentThemeMode:"",themeList:["system","light","dark"]}),mounted(){},methods:{setTheme(e){this.currentThemeMode=e.target.value,console.log("setTheme currentThemeMode:",this.currentThemeMode),t.invoke(a.setTheme,this.currentThemeMode).then((e=>{console.log("result:",e),this.currentThemeMode=e}))},getTheme(){t.invoke(a.getTheme).then((e=>{console.log("result:",e),this.currentThemeMode=e}))}}},T=e=>(m("data-v-5a0f8a17"),e=e(),c(),e),v={id:"app-base-screen"},f=T((()=>n("div",{class:"one-block-1"},[n("span",null," 1. 系统主题模式 ")],-1))),g={class:"one-block-2"},p=T((()=>n("div",{class:"one-block-1"}," 2. 设置主题模式（请自行实现前端UI效果） ",-1))),M={class:"one-block-2"};const k=e(i,[["render",function(e,t,a,m,c,i){const T=s("a-button"),k=s("a-space"),_=s("a-radio"),b=s("a-radio-group");return o(),l("div",v,[f,n("div",g,[d(k,null,{default:u((()=>[d(T,{onClick:t[0]||(t[0]=e=>i.getTheme())},{default:u((()=>[r("获取模式")])),_:1})])),_:1}),n("span",null," 结果："+h(c.currentThemeMode),1)]),p,n("div",M,[d(b,{modelValue:c.currentThemeMode,"onUpdate:modelValue":t[1]||(t[1]=e=>c.currentThemeMode=e),onChange:i.setTheme},{default:u((()=>[d(_,{value:c.themeList[0]},{default:u((()=>[r(h(c.themeList[0]),1)])),_:1},8,["value"]),d(_,{value:c.themeList[1]},{default:u((()=>[r(h(c.themeList[1]),1)])),_:1},8,["value"]),d(_,{value:c.themeList[2]},{default:u((()=>[r(h(c.themeList[2]),1)])),_:1},8,["value"])])),_:1},8,["modelValue","onChange"])])])}],["__scopeId","data-v-5a0f8a17"]]);export{k as default};
