"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../confirm-button/index.js");require("../../count-down-button/index.js");require("../../ellipsis/index.js");require("../../rich-text-editor/index.js");require("../index.js");const n=require("../../pro-form/index.js");require("../../pro-table/index.js");require("../../pro-descriptions/index.js");require("../../layout/index.js");require("../../page/index.js");require("../../guide/index.js");const c=require("element-plus"),s=require("../../pro-form/src/types.js"),i=e.defineComponent({name:"WetFormDatePicker",__name:"date-picker",props:{...s.wetProFormItemProps,placeholder:[String,Array],formInputProps:{type:Object}},setup(a){const r=a,o=e.computed(()=>{var t,l,u;return((t=r.formInputProps)==null?void 0:t.type)==="daterange"||((l=r.formInputProps)==null?void 0:l.type)==="datetimerange"||((u=r.formInputProps)==null?void 0:u.type)==="monthrange"?Array.isArray(r.placeholder)?r.placeholder:["请选择开始时间","请选择结束时间"]:r.placeholder?r.placeholder:`请选择${r.label}`}),p=e.computed(()=>{const t={...r};return delete t.formInputProps,t});return(t,l)=>(e.openBlock(),e.createBlock(e.unref(n.WetProFormItem),e.normalizeProps(e.guardReactiveProps(p.value)),{default:e.withCtx(({modelValue:u})=>[e.createVNode(e.unref(c.ElDatePicker),e.mergeProps({...u,placeholder:Array.isArray(o.value)?"":o.value,...r.formInputProps},{"start-placeholder":o.value[0],"end-placeholder":o.value[1]}),null,16,["start-placeholder","end-placeholder"])]),_:1},16))}});exports.default=i;
