element中日期时间插件(DateTimePicke) el-date 开始时间大于等于当前时间小于结束时间,结束时间大于开始时间且大于当前时间
pickerOptions1: { disabledDate: time => { if (this.endTime) { return ( time.getTime() > new Date(this.endTime).getTime() || time.getTime() < Date.now() ); } else { return time.getTime() < Date.now(); } } }, pickerOptions2: { disabledDate: time => { if (this.startTime) { return ( time.getTime() < Date.now() || time.getTime() < new Date(this.startTime).getTime() ); } else { return time.getTime() < Date.now(); } } }