mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 12:18:46 +08:00
DatePicker: fix select year in month type, fixed #1070
This commit is contained in:
parent
0013043ad7
commit
478549bd30
@ -271,6 +271,7 @@
|
||||
this.resetDate();
|
||||
} else {
|
||||
this.date.setMonth(month);
|
||||
this.year && this.date.setFullYear(this.year);
|
||||
this.resetDate();
|
||||
const value = new Date(this.date.getFullYear(), month, 1);
|
||||
this.$emit('pick', value);
|
||||
|
@ -4,6 +4,7 @@
|
||||
@b year-table {
|
||||
font-size: 12px;
|
||||
margin: -1px;
|
||||
border-collapse: collapse;
|
||||
|
||||
.el-icon {
|
||||
color: var(--datepicker-icon-color);
|
||||
|
Loading…
Reference in New Issue
Block a user