TimePicker:fix hour selection can't select 23 bug

pull/6740/head
QingDeng 2017-08-28 11:03:22 +08:00 committed by 杨奕
parent 6ca280fe56
commit 5f05fd18fd
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@
handleScroll(type) {
const ajust = {};
ajust[`${type}s`] = Math.min(Math.floor((this[`${type}El`].scrollTop - 80) / 32 + 3), 59);
ajust[`${type}s`] = Math.min(Math.floor((this[`${type}El`].scrollTop - 80) / 32 + 3), (`${type}` === 'hour' ? 23 : 59));
this.debounceAjustElTop(type);
this.$emit('change', ajust);
},