Use the disabled property of the picker options to set the elapsed time to non-dots.
<el-form-item>
<el-date-picker
type='datetime'
v-model='form.date'
:picker-options='pickeroptions'
</el-date-picker>
</el-form-item>
data(){
return {
pickerOptions:{
disabledDate (time) {
return time.getTime() < Date.now()
}
}
}
}
Copy the code