Explorar o código

DatePicker: Fix year picker

rodrigore %!s(int64=8) %!d(string=hai) anos
pai
achega
7986126ab4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/date-picker/src/panel/date.vue

+ 1 - 1
packages/date-picker/src/panel/date.vue

@@ -310,7 +310,7 @@
 
         this.date.setFullYear(year);
         if (this.selectionMode === 'year') {
-          this.$emit('pick', new Date(year));
+          this.$emit('pick', new Date(year, 0, 1));
         } else {
           this.currentView = 'month';
         }