From 61d5d48b9c1d1cb3a39d5df1336760c0024f02fb Mon Sep 17 00:00:00 2001 From: Rijn Date: Tue, 8 Aug 2017 14:17:47 -0500 Subject: [PATCH] return array of format string when type is datetimerange --- examples/routers/date.vue | 8 ++++++-- src/components/date-picker/picker.vue | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/routers/date.vue b/examples/routers/date.vue index aad3af9..4a66d2c 100644 --- a/examples/routers/date.vue +++ b/examples/routers/date.vue @@ -2,12 +2,16 @@
- +
diff --git a/src/components/date-picker/picker.vue b/src/components/date-picker/picker.vue index c61a88d..9f03d55 100644 --- a/src/components/date-picker/picker.vue +++ b/src/components/date-picker/picker.vue @@ -459,7 +459,7 @@ ).formatter; let newDate = formatter(date, format); - if (type === 'daterange' || type === 'timerange') { + if (type === 'daterange' || type === 'timerange' || type === 'datetimerange') { newDate = [newDate.split(RANGE_SEPARATOR)[0], newDate.split(RANGE_SEPARATOR)[1]]; } return newDate; -- libgit2 0.21.4