mirror of https://github.com/ElemeFE/element
DatePicker: update week when value changes
parent
bda5754d86
commit
595271f463
|
@ -183,6 +183,7 @@
|
|||
date(newVal) {
|
||||
this.year = newVal.getFullYear();
|
||||
this.month = newVal.getMonth();
|
||||
if (this.selectionMode === 'week') this.week = getWeekNumber(newVal);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue