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