import{e as f,B as _,h as V}from"./element-plus-z3MwpXC9.js";import{f as x}from"./@vueuse-BQYVjZ5N.js";import{d as C,o as k,c as y,V as l,u as s,i as a,M as v,S as B}from"./@vue-TMcuEboY.js";const E={class:"color-select flex flex-1"},U=C({__name:"index",props:{modelValue:{type:String,default:""},resetColor:{type:String,default:""}},emits:["update:modelValue"],setup(r,{emit:u}){const n=r,e=x(n,"modelValue",u),d=["#FF2C3C","#f7971e","#fa444d","#e0a356","#2f80ed","#2ec840"],m=()=>{e.value=n.resetColor};return(g,o)=>{const p=f,i=_,c=V;return k(),y("div",E,[l(p,{modelValue:s(e),"onUpdate:modelValue":o[0]||(o[0]=t=>a(e)?e.value=t:null),predefine:d},null,8,["modelValue"]),l(i,{modelValue:s(e),"onUpdate:modelValue":o[1]||(o[1]=t=>a(e)?e.value=t:null),class:"mx-[10px] flex-1",type:"text",readonly:""},null,8,["modelValue"]),l(c,{type:"text",onClick:m},{default:v(()=>o[2]||(o[2]=[B("重置")])),_:1})])}}});export{U as _};
