From 5e9a9e5b55db9852ccd29d3ead23ba706f8bef5f Mon Sep 17 00:00:00 2001 From: lyswhut Date: Fri, 29 Oct 2021 20:29:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/components/material/VirtualizedList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/material/VirtualizedList.vue b/src/renderer/components/material/VirtualizedList.vue index 5a6a9e2e..6246756a 100644 --- a/src/renderer/components/material/VirtualizedList.vue +++ b/src/renderer/components/material/VirtualizedList.vue @@ -229,8 +229,8 @@ export default { }) }, - scrollToIndex(index, offset = 0, animate = false, callback = () => {}) { - return this.scrollTo(Math.max(index * this.itemHeight + offset, 0), animate, callback) + scrollToIndex(index, offset = 0, animate = false) { + return this.scrollTo(Math.max(index * this.itemHeight + offset, 0), animate) }, getScrollTop() {