From f5a3f794ed00a567d7b0ade93be75b5b4f3ab0dd Mon Sep 17 00:00:00 2001 From: reactjser Date: Tue, 17 Aug 2021 10:47:52 +0800 Subject: [PATCH] fix: remove console --- package.json | 2 +- src/item.tsx | 1 - src/virtual-list.tsx | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index 19f1cbb..44ab49d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue3-virtual-scroll-list", - "version": "0.1.1", + "version": "0.1.2", "description": "A vue3 component support big amount data list with high scroll performance.", "main": "dist/index.js", "scripts": { diff --git a/src/item.tsx b/src/item.tsx index daf9ca7..84909ae 100644 --- a/src/item.tsx +++ b/src/item.tsx @@ -24,7 +24,6 @@ const useResizeChange = (props: any, rootRef: Ref) => { // tell parent current size identify by unqiue key const dispatchSizeChange = () => { const { event, uniqueKey, hasInitial } = props; - console.log(getCurrentSize()); emitter.emit(event, uniqueKey, getCurrentSize(), hasInitial); }; diff --git a/src/virtual-list.tsx b/src/virtual-list.tsx index 5a8c81c..57646ae 100644 --- a/src/virtual-list.tsx +++ b/src/virtual-list.tsx @@ -156,7 +156,6 @@ export default defineComponent({ }; // set current scroll position to a expectant index const scrollToIndex = (index: number) => { - console.log(index); // scroll to bottom if (index >= props.dataSources.length - 1) { scrollToBottom();