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<HTMLElement | null>) => { // 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();