pickerBeginDateBefore: { disabledDate(value) { if (new Date(value).getTime() + 3600 * 1000 * 24 < new Date().getTime()) { return true } return false } },
.vue
<el-date-picker :picker-options="pickerBeginDateBefore" v-model="ruleForm.deliverTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" :startDate="{now}" placeholder="选择时间"> </el-date-picker>
只选择时分秒
<el-time-picker v-model="ruleForm.deliverTime" :picker-options="{ selectableRange: ‘00:00:01 - 23:59:59‘ }" placeholder="选择时间"> </el-time-picker>
elmentUI 选择年月日时分秒-并且只选择当前时间之后的时间
原文:https://www.cnblogs.com/shuihanxiao/p/13386391.html