强调一下我的picker-options是写在了data-return中
picker-options的disabledDate后面一定要加上 => 具体看下图
pickerOptions: {
disabledDate: (time) => {
const startVal = new Date(this.createTimeStart);
const endVal = new Date(this.createTimeEnd);
return startVal.getTime() >= time.getTime() || time.getTime() >= endVal.getTime();
},
},