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