update DatePicker
update DatePicker
This commit is contained in:
parent
3cf7cfd1de
commit
472b4ff150
5 changed files with 120 additions and 67 deletions
|
@ -208,18 +208,6 @@
|
|||
}
|
||||
|
||||
this.resetDate();
|
||||
},
|
||||
resetView() {
|
||||
if (this.selectionMode === 'month') {
|
||||
this.currentView = 'month';
|
||||
} else if (this.selectionMode === 'year') {
|
||||
this.currentView = 'year';
|
||||
} else {
|
||||
this.currentView = 'date';
|
||||
}
|
||||
|
||||
this.year = this.date.getFullYear();
|
||||
this.month = this.date.getMonth();
|
||||
}
|
||||
},
|
||||
compiled () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue