diff --git a/src/components/date-picker/base/time-spinner.vue b/src/components/date-picker/base/time-spinner.vue index cbb8359..133552b 100644 --- a/src/components/date-picker/base/time-spinner.vue +++ b/src/components/date-picker/base/time-spinner.vue @@ -171,7 +171,7 @@ const times = ['hours', 'minutes', 'seconds']; this.$nextTick(() => { times.forEach(type => { - this.$refs[type].scrollTop = 24 * this.getScrollIndex(type, this[type]); + this.$refs[type].scrollTop = 24 * this.getItemIndex(type, this[type]); }); }); }, -- libgit2 0.21.4