import{s as B,b as C}from"./index.c52b1b09.js";import{d as V,a6 as y,b as g,c as a,e as r,k as c,i as e,h as t,u as l,A as p,m as _,E as k}from"./index.0308b213.js";const x=_("\u9ED8\u8BA4\u4E3B\u9898"),D=_("\u7EFF\u8272"),w=_("\u81EA\u5B9A\u4E49"),N=_("\u9ED1\u8272"),U=_("\u767D\u8272"),v=_("\u63D0\u4EA4"),T=V({setup(S){y();const o=g({id:"",name:"default",theme_color:"#FFCA28",font_color:"#000000"}),E=()=>{B(o).then(u=>{k.success("\u8BBE\u7F6E\u6210\u529F"),i()})},i=()=>{C().then(u=>{o.id=u.id,o.name=u.name||"default",o.theme_color=u.theme_color||"#FFCA28",o.font_color=u.font_color||"#000000"})};return i(),(u,n)=>{const d=a("el-radio"),f=a("el-radio-group"),m=a("el-form-item"),b=a("el-color-picker"),F=a("el-button"),A=a("el-form"),h=a("el-card");return r(),c(h,{shadow:"always",style:{"margin-top":"20px"}},{default:e(()=>[t(A,{"label-width":"120px"},{default:e(()=>[t(m,{label:"\u989C\u8272\u4E3B\u9898"},{default:e(()=>[t(f,{modelValue:l(o).name,"onUpdate:modelValue":n[0]||(n[0]=s=>l(o).name=s)},{default:e(()=>[t(d,{label:"default"},{default:e(()=>[x]),_:1}),t(d,{label:"green"},{default:e(()=>[D]),_:1}),t(d,{label:"diy"},{default:e(()=>[w]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(o).name=="diy"?(r(),c(m,{key:0,label:"\u81EA\u5B9A\u4E49\u4E3B\u9898\u989C\u8272"},{default:e(()=>[t(b,{modelValue:l(o).theme_color,"onUpdate:modelValue":n[1]||(n[1]=s=>l(o).theme_color=s)},null,8,["modelValue"])]),_:1})):p("",!0),l(o).name=="diy"?(r(),c(m,{key:1,label:"\u81EA\u5B9A\u4E49\u5B57\u4F53\u989C\u8272"},{default:e(()=>[t(f,{modelValue:l(o).font_color,"onUpdate:modelValue":n[2]||(n[2]=s=>l(o).font_color=s)},{default:e(()=>[t(d,{label:"#000000"},{default:e(()=>[N]),_:1}),t(d,{label:"#FFFFFF"},{default:e(()=>[U]),_:1})]),_:1},8,["modelValue"])]),_:1})):p("",!0),t(m,{label:"",class:"continer-item"},{default:e(()=>[t(F,{type:"primary",onClick:E},{default:e(()=>[v]),_:1})]),_:1})]),_:1})]),_:1})}}});export{T as default};
