diff --git a/src/components/date-picker/base/date-table.vue b/src/components/date-picker/base/date-table.vue index 3cbdc7b..028eafe 100644 --- a/src/components/date-picker/base/date-table.vue +++ b/src/components/date-picker/base/date-table.vue @@ -67,7 +67,6 @@ if (newVal && !oldVal) { this.rangeState.selecting = false; this.markRange(newVal); - // todo 待验证 this.$emit('on-pick', { minDate: this.minDate, maxDate: this.maxDate diff --git a/src/components/date-picker/panel/date-range.vue b/src/components/date-picker/panel/date-range.vue index 23f07c1..f8d09c5 100644 --- a/src/components/date-picker/panel/date-range.vue +++ b/src/components/date-picker/panel/date-range.vue @@ -8,24 +8,28 @@
-
+
+ @click="prevYear('left')"> + v-show="leftCurrentView === 'date'"> {{ leftYear }} 年 + @click="showYearPicker('left')">{{ leftYearLabel }} {{ leftMonth + 1 }} 月 + @click="showMonthPicker('left')" + v-show="leftCurrentView === 'date'">{{ leftMonth + 1 }} 月 +
+ +
-
+
+ {{ rightYear }} 年 + @click="showYearPicker('right')">{{ rightYearLabel }} {{ rightMonth + 1 }} 月 + @click="showMonthPicker('right')" + v-show="rightCurrentView === 'date'">{{ rightMonth + 1 }} 月 + @click="nextYear('right')"> + v-show="rightCurrentView === 'date'">
+ +
@@ -73,7 +113,9 @@