update DatePicker
update DatePicker
This commit is contained in:
parent
e1874103ad
commit
344131a7af
4 changed files with 10 additions and 4 deletions
|
@ -178,7 +178,7 @@
|
|||
|
||||
this.date.setFullYear(year);
|
||||
if (this.selectionMode === 'year') {
|
||||
this.$emit('on-pick', new Date(year));
|
||||
this.$emit('on-pick', new Date(year, 0, 1));
|
||||
} else {
|
||||
this.currentView = 'month';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue