DatePicker: update week when value changes

This commit is contained in:
Leopoldthecoder 2017-05-08 15:48:21 +08:00 committed by 杨奕
parent bda5754d86
commit 595271f463

View File

@ -183,6 +183,7 @@
date(newVal) {
this.year = newVal.getFullYear();
this.month = newVal.getMonth();
if (this.selectionMode === 'week') this.week = getWeekNumber(newVal);
}
},