mirror of https://github.com/ElemeFE/element
DatePicker: fix scroll render bug (#1290)
parent
60701ad408
commit
c3aba68ecc
|
@ -136,10 +136,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
handleScroll(type) {
|
handleScroll(type) {
|
||||||
const ajust = {};
|
window.setTimeout(() => {
|
||||||
|
const ajust = {};
|
||||||
|
|
||||||
ajust[`${type}s`] = Math.min(Math.floor((this.$refs[type].scrollTop - 80) / 32 + 3), 59);
|
ajust[`${type}s`] = Math.min(Math.floor((this.$refs[type].scrollTop - 80) / 32 + 3), 59);
|
||||||
this.$emit('change', ajust);
|
this.$emit('change', ajust);
|
||||||
|
}, 0);
|
||||||
},
|
},
|
||||||
|
|
||||||
ajustScrollTop() {
|
ajustScrollTop() {
|
||||||
|
|
Loading…
Reference in New Issue