Skip to content

Commit

Permalink
Merge pull request #1093 from QingWei-Li/fix/datepicker-month
Browse files Browse the repository at this point in the history
DatePicker: fix select year in month type, fixed #1070
  • Loading branch information
csvwolf committed Nov 16, 2016
2 parents 238f862 + 478549b commit d4e45e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/date-picker/src/panel/date.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions packages/theme-default/src/date-picker/year-table.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@b year-table {
font-size: 12px;
margin: -1px;
border-collapse: collapse;

.el-icon {
color: var(--datepicker-icon-color);
Expand Down

0 comments on commit d4e45e8

Please sign in to comment.