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

DatePicker: fix scroll render bug (#1290)

parent 60701ad4
...@@ -136,10 +136,12 @@ ...@@ -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() {
......
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