Skip to content

Commit

Permalink
fix: remove console
Browse files Browse the repository at this point in the history
  • Loading branch information
reactjser committed Aug 17, 2021
1 parent 8d43e6f commit f5a3f79
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
1 change: 0 additions & 1 deletion src/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down
1 change: 0 additions & 1 deletion src/virtual-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f5a3f79

Please sign in to comment.