mirror of https://github.com/ElemeFE/element
TimePicker: fix scrolltop error (#2054)
parent
c639474fcc
commit
119188a634
|
@ -159,7 +159,7 @@
|
||||||
handleScroll(type) {
|
handleScroll(type) {
|
||||||
const ajust = {};
|
const ajust = {};
|
||||||
|
|
||||||
ajust[`${type}s`] = Math.min(Math.floor((this[`${type}Elm`].scrollTop - 80) / 32 + 3), 59);
|
ajust[`${type}s`] = Math.min(Math.floor((this[`${type}El`].scrollTop - 80) / 32 + 3), 59);
|
||||||
this.$emit('change', ajust);
|
this.$emit('change', ajust);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue