mirror of https://github.com/ElemeFE/element
TimePicker:fix hour selection can't select 23 bug
parent
6ca280fe56
commit
5f05fd18fd
|
@ -175,7 +175,7 @@
|
||||||
|
|
||||||
handleScroll(type) {
|
handleScroll(type) {
|
||||||
const ajust = {};
|
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.debounceAjustElTop(type);
|
||||||
this.$emit('change', ajust);
|
this.$emit('change', ajust);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue