From 595271f46332287cfcd42385c5b9ba05927e951d Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Mon, 8 May 2017 15:48:21 +0800 Subject: [PATCH] DatePicker: update week when value changes --- packages/date-picker/src/panel/date.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/date-picker/src/panel/date.vue b/packages/date-picker/src/panel/date.vue index b74e23ed..48b3e310 100644 --- a/packages/date-picker/src/panel/date.vue +++ b/packages/date-picker/src/panel/date.vue @@ -183,6 +183,7 @@ date(newVal) { this.year = newVal.getFullYear(); this.month = newVal.getMonth(); + if (this.selectionMode === 'week') this.week = getWeekNumber(newVal); } },