pickerOptionsStart: {
disabledDate: (time) => {
if (this.searchData.end_at) {
var endTime = new Date(this.searchData.end_at).valueOf();
}
return time.valueOf() > endTime;
},
},
pickerOptionsEnd: {
disabledDate: (time) => {
if (this.searchData.start_from) {
// 让用户可以选择开始结束同一天
var startTime =
new Date(this.searchData.start_from).valueOf() - 8.64e7 + 1;
} else {
var startTime;
}
return time && time.valueOf() < startTime;
},
},