From 356953d9588b0865852569763ab6993d5b8bf8ad Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Fri, 13 Jan 2017 20:32:24 +0800 Subject: [PATCH] fixed #201 --- src/components/date-picker/panel/date.vue | 1 + test/routers/date.vue | 23 ++++++++--------------- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/components/date-picker/panel/date.vue b/src/components/date-picker/panel/date.vue index 15b19f9..b29db3e 100644 --- a/src/components/date-picker/panel/date.vue +++ b/src/components/date-picker/panel/date.vue @@ -181,6 +181,7 @@ this.year = this.date.getFullYear(); this.month = this.date.getMonth(); + if (reset) this.isTime = false; }, prevYear () { if (this.currentView === 'year') { diff --git a/test/routers/date.vue b/test/routers/date.vue index 4195856..ab2476f 100644 --- a/test/routers/date.vue +++ b/test/routers/date.vue @@ -1,21 +1,14 @@ -- libgit2 0.21.4