|
@@ -20,7 +20,7 @@
|
|
@click="handleShortcutClick(shortcut)">{{ shortcut.text }}</button>
|
|
@click="handleShortcutClick(shortcut)">{{ shortcut.text }}</button>
|
|
</div>
|
|
</div>
|
|
<div class="el-picker-panel__body">
|
|
<div class="el-picker-panel__body">
|
|
- <div class="el-date-picker__time-header" v-if="showTime">
|
|
|
|
|
|
+ <div class="el-date-picker__time-header" v-if="showTime">
|
|
<span class="el-date-picker__editor-wrap">
|
|
<span class="el-date-picker__editor-wrap">
|
|
<input
|
|
<input
|
|
:placehoder="t('el.datepicker.selectDate')"
|
|
:placehoder="t('el.datepicker.selectDate')"
|
|
@@ -310,7 +310,7 @@
|
|
|
|
|
|
this.date.setFullYear(year);
|
|
this.date.setFullYear(year);
|
|
if (this.selectionMode === 'year') {
|
|
if (this.selectionMode === 'year') {
|
|
- this.$emit('pick', year);
|
|
|
|
|
|
+ this.$emit('pick', new Date(year));
|
|
} else {
|
|
} else {
|
|
this.currentView = 'month';
|
|
this.currentView = 'month';
|
|
}
|
|
}
|