Explorar o código

DatePicker: fix the panel is not updated when value change, fixed #1158

qingwei.li %!s(int64=8) %!d(string=hai) anos
pai
achega
2f6750964e
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      packages/date-picker/src/panel/date.vue

+ 4 - 0
packages/date-picker/src/panel/date.vue

@@ -228,6 +228,8 @@
           this.$refs.yearTable.nextTenYear();
         } else {
           this.year++;
+          this.date.setFullYear(this.year);
+          this.resetDate();
         }
       },
 
@@ -236,6 +238,8 @@
           this.$refs.yearTable.prevTenYear();
         } else {
           this.year--;
+          this.date.setFullYear(this.year);
+          this.resetDate();
         }
       },