From d596b9e4f8591f36d9bf4f8edf9ae2da6ff3dcec Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Thu, 29 Dec 2016 18:09:16 +0800 Subject: [PATCH] update TimePicker --- src/components/date-picker/panel/time-range.vue | 4 +++- src/components/date-picker/panel/time.vue | 4 +++- src/styles/components/time-picker.less | 4 ++-- test/routers/date.vue | 8 ++++++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/components/date-picker/panel/time-range.vue b/src/components/date-picker/panel/time-range.vue index ad7038d..dd1a71e 100644 --- a/src/components/date-picker/panel/time-range.vue +++ b/src/components/date-picker/panel/time-range.vue @@ -30,6 +30,7 @@ @on-pick-click="handlePickClick"> @@ -66,7 +67,8 @@ disabledHours: [], disabledMinutes: [], disabledSeconds: [], - hideDisabledOptions: false + hideDisabledOptions: false, + confirm: false }; }, computed: { diff --git a/src/components/date-picker/panel/time.vue b/src/components/date-picker/panel/time.vue index a945408..53dad98 100644 --- a/src/components/date-picker/panel/time.vue +++ b/src/components/date-picker/panel/time.vue @@ -15,6 +15,7 @@ @on-pick-click="handlePickClick"> @@ -47,7 +48,8 @@ disabledHours: [], disabledMinutes: [], disabledSeconds: [], - hideDisabledOptions: false + hideDisabledOptions: false, + confirm: false }; }, computed: { diff --git a/src/styles/components/time-picker.less b/src/styles/components/time-picker.less index e506a41..fb269e7 100644 --- a/src/styles/components/time-picker.less +++ b/src/styles/components/time-picker.less @@ -18,10 +18,10 @@ border-left: 1px solid @border-color-split; &:first-child{ border-left: none; - border-radius: @btn-border-radius 0 0 0; + border-radius: @btn-border-radius 0 0 @btn-border-radius; } &:last-child{ - border-radius: 0 @btn-border-radius 0 0; + border-radius: 0 @btn-border-radius @btn-border-radius 0; } ul{ width: 100%; diff --git a/test/routers/date.vue b/test/routers/date.vue index cc289a7..4caeebf 100644 --- a/test/routers/date.vue +++ b/test/routers/date.vue @@ -24,7 +24,7 @@ - + @@ -36,6 +36,7 @@ + time