Commit c3aba68e authored by kingwl's avatar kingwl Committed by FuryBean

DatePicker: fix scroll render bug (#1290)

parent 60701ad4
......@@ -136,10 +136,12 @@
},
handleScroll(type) {
const ajust = {};
window.setTimeout(() => {
const ajust = {};
ajust[`${type}s`] = Math.min(Math.floor((this.$refs[type].scrollTop - 80) / 32 + 3), 59);
this.$emit('change', ajust);
ajust[`${type}s`] = Math.min(Math.floor((this.$refs[type].scrollTop - 80) / 32 + 3), 59);
this.$emit('change', ajust);
}, 0);
},
ajustScrollTop() {
......
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