TimePicker: fix time calculation error, fixed #3479 (#3721)

pull/3831/head
cinwell.li 2017-03-28 15:07:45 +08:00 committed by baiyaaaaa
parent 7d89f0d269
commit 01d747358b
1 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,9 @@
MIN_TIME.setFullYear(this.minTime.getFullYear());
MIN_TIME.setMonth(this.minTime.getMonth());
MIN_TIME.setDate(this.minTime.getDate());
MAX_TIME.setFullYear(this.maxTime.getFullYear());
MAX_TIME.setMonth(this.maxTime.getMonth());
MAX_TIME.setDate(this.maxTime.getDate());
this.$refs.minSpinner.selectableRange = [[MIN_TIME, this.maxTime]];
this.$refs.maxSpinner.selectableRange = [[this.minTime, MAX_TIME]];
this.handleConfirm(true);