chore: update date-picker comment notes (#12899)

pull/12735/merge
Jiewei Qian 2018-09-27 17:37:58 +10:00 committed by hetech
parent 143f0c64d1
commit e7725797c4
1 changed files with 0 additions and 2 deletions

View File

@ -387,8 +387,6 @@
} else if (Array.isArray(newVal)) { } else if (Array.isArray(newVal)) {
this.minDate = isDate(newVal[0]) ? new Date(newVal[0]) : null; this.minDate = isDate(newVal[0]) ? new Date(newVal[0]) : null;
this.maxDate = isDate(newVal[1]) ? new Date(newVal[1]) : null; this.maxDate = isDate(newVal[1]) ? new Date(newVal[1]) : null;
// NOTE: currently, maxDate = minDate + 1 month
// should allow them to be set individually in the future
if (this.minDate) { if (this.minDate) {
this.leftDate = this.minDate; this.leftDate = this.minDate;
if (this.unlinkPanels && this.maxDate) { if (this.unlinkPanels && this.maxDate) {