"use strict";const e=require("../../common/vendor.js");if(!Array){e.resolveComponent("hs-cell")()}Math;const l=e.defineComponent({__name:"hs-date-picker",props:["valueModel","tip","title","required","hasFutureDate","borderTop","isLink"],emits:["change","update:valueModel"],setup(l,{emit:t}){const o=l,u=e.ref(""),a=e.ref(""),i=e.ref(""),n=e=>{u.value=null==e?void 0:e.detail.value,t("update:valueModel",null==e?void 0:e.detail.value),t("change",null==e?void 0:e.detail.value)};return e.onMounted((()=>{const e=new Date;let l=e.getFullYear(),t=e.getMonth()+1,u=e.getDate();t=t>9?t:"0"+t,u=u>9?u:"0"+u,a.value=(null==o?void 0:o.hasFutureDate)?`${l}-${t}-${u}`:`${l-60}-${t}-${u}`,i.value=`${l+60}-${t}-${u}`})),(l,t)=>({a:e.p({title:(null==o?void 0:o.title)||"选择日期",required:null==o?void 0:o.required,borderTop:null==o?void 0:o.borderTop,value:u.value,isLink:null==o?void 0:o.isLink,isPlaceholder:!0}),b:o.valueModel,c:e.o(n),d:a.value,e:i.value})}});wx.createComponent(l);
