HTML()
<el-date-picker
@change="change1"
:picker-options="pickerOptions" //加上这个就可以
v-model="value"
type="datetime"
placeholder="选择日期时间">
</el-date-picker>
JS
data() {
return {
pickerOptions: {
disabledDate(time) {
return time.getTime() < Date.now() - 8.64e7;
},
value:''
},
}
}