Explorar el Código

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

cinwell.li hace 8 años
padre
commit
01d747358b
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      packages/date-picker/src/panel/time-range.vue

+ 3 - 0
packages/date-picker/src/panel/time-range.vue

@@ -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);