import{_ as i}from"./index-M_JNBppB.js";/* empty css                             *//* empty css                 *//* empty css                     *//* empty css                  *//* empty css                  */import{r as V}from"./request-CEvu378m.js";import{ax as b,r as s,w as c,j as y,X as d,B as f,z as m,y as g,W as v,u as K}from"./vue-BJk78QHK.js";import{S as k}from"./element-3_pOinej.js";import"./threejs-BafxXW5-.js";import"./utils-YI6ye1sf.js";import"./vxe-Dx3zSILm.js";const x={class:"box"},q=Object.assign({name:"DatePicker"},{__name:"DatePicker",props:{propValue:{type:Object,default:()=>({})},request:{type:Object,default:()=>({})},element:{type:Object,default:()=>({})}},setup(l){const e=l,o=b(),u=s(0),r=s(null);return c(()=>e.propValue.type,()=>{e.propValue.value=null,u.value++},{deep:!0}),c(()=>e.propValue.value,t=>{const a=o.state.globalKey.findIndex(p=>p.globalKey===e.propValue.globalKey);a>-1&&(o.state.globalKey[a].globalValue=t)}),y(()=>{e.request&&(r.value=V(e.request,e.element.propValue,"value","")),e.propValue.global&&e.propValue.globalKey&&e.propValue.globalName&&(o.state.globalKey.some(t=>t.globalKey===e.propValue.globalKey)||o.commit("addGlobalKey",{globalKey:e.propValue.globalKey,globalName:e.propValue.globalName,globalValue:e.propValue.value}))}),d(()=>{e.request&&r.value&&r.value()}),(t,a)=>{const p=k;return m(),f("div",x,[(m(),g(p,{key:K(u),style:v([l.propValue.selectStyle,{width:"100%"}]),size:l.propValue.size,clearable:l.propValue.clearable,modelValue:l.propValue.value,"onUpdate:modelValue":a[0]||(a[0]=n=>l.propValue.value=n),type:l.propValue.type,"value-format":l.propValue.format,placeholder:l.propValue.placeholder},null,8,["style","size","clearable","modelValue","type","value-format","placeholder"]))])}}}),U=i(q,[["__scopeId","data-v-9ea6c3e3"]]);export{U as default};
