From 435bf7814a6ad6aab47a357ceae8cd28480fbb57 Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Wed, 17 Jan 2018 13:23:10 +0100 Subject: [PATCH] add split panel props --- src/components/date-picker/panel/Date/date-range.vue | 10 +++++++++- src/components/date-picker/picker.vue | 5 +++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/components/date-picker/panel/Date/date-range.vue b/src/components/date-picker/panel/Date/date-range.vue index 8e7a884..aab7c3e 100644 --- a/src/components/date-picker/panel/Date/date-range.vue +++ b/src/components/date-picker/panel/Date/date-range.vue @@ -21,9 +21,11 @@ :current-view="currentView" :date-prefix-cls="datePrefixCls"> @@ -45,9 +47,11 @@
@@ -125,7 +129,11 @@ mixins: [ Mixin, Locale, DateMixin ], components: { Icon, DateTable, YearTable, MonthTable, TimePicker, Confirm, datePanelLabel }, props: { - // in the mixin + // more props in the mixin + splitPanels: { + type: Boolean, + default: false + }, }, data(){ const [minDate, maxDate] = this.value.map(date => date || initTimeDate()); diff --git a/src/components/date-picker/picker.vue b/src/components/date-picker/picker.vue index 67566ef..d53f27b 100644 --- a/src/components/date-picker/picker.vue +++ b/src/components/date-picker/picker.vue @@ -40,6 +40,7 @@ :format="format" :value="internalValue" :start-date="startDate" + :split-panels="splitPanels" v-bind="ownPickerProps" @@ -205,6 +206,10 @@ type: Boolean, default: false }, + splitPanels: { + type: Boolean, + default: false + }, startDate: { type: Date }, -- libgit2 0.21.4