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