diff --git a/src/scrollbar/src/ScrollBar.vue b/src/scrollbar/src/ScrollBar.vue index bc4108ae1..4a489c18a 100644 --- a/src/scrollbar/src/ScrollBar.vue +++ b/src/scrollbar/src/ScrollBar.vue @@ -280,8 +280,9 @@ export default { handleContentResize () { this.sync() }, - scrollTo (options) { + scrollTo (options, y) { if (!this.scrollable) return + if (typeof options === 'number') this.scrollToPosition(options, y, 0, false, 'auto') const { left, top,