Commit 5f05fd18 authored by QingDeng's avatar QingDeng Committed by 杨奕

TimePicker:fix hour selection can't select 23 bug

parent 6ca280fe
......@@ -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);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment