DatePicker: fix scroll render bug (#1290)

pull/1314/head
kingwl 2016-11-23 19:48:01 +08:00 committed by FuryBean
parent 60701ad408
commit c3aba68ecc
1 changed files with 5 additions and 3 deletions

View File

@ -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() {