Skip to content

Commit

Permalink
fix(module: datepickerview): fix days can't select 31 (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuonuoge authored and Guoyuanqiang committed Apr 14, 2019
1 parent 3fac2f1 commit aac65b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/date-picker-view/date-picker-view.component.ts
Expand Up @@ -105,10 +105,12 @@ export class DatePickerViewComponent extends DatePickerComponent implements OnIn
this.options.onValueChange = this.onValueChange;
this.checkMode(this.options.mode);
const value = this.transformDateFormat(this.options.value).split('-');
if (value.length > 0) {
this.currentTime = value.map(item => {
if (value.length > 1) {
this.current_time = this.currentTime = value.map(item => {
return parseInt(item, 0);
});
} else {
this.currentTime = this.current_time;
}
}

Expand Down

0 comments on commit aac65b6

Please sign in to comment.