DatePicker: Fix year picker

pull/5440/head
rodrigore 2017-06-14 20:16:33 -04:00 committed by 杨奕
parent 601bd6469b
commit 7986126ab4
1 changed files with 1 additions and 1 deletions

View File

@ -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';
}