mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 20:28:52 +08:00
DatePicker: update week when value changes
This commit is contained in:
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
Block a user