From 47e5df910385507830de7f0cc9d0a8f0b03d7de8 Mon Sep 17 00:00:00 2001 From: Amour1688 Date: Fri, 2 Oct 2020 22:28:41 +0800 Subject: [PATCH] fix: eslint error --- components/affix/{index.tsx => index.jsx} | 0 components/comment/index.tsx | 2 +- components/vc-virtual-list/hooks/useFrameWheel.ts | 2 +- components/vc-virtual-list/hooks/useHeights.tsx | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename components/affix/{index.tsx => index.jsx} (100%) diff --git a/components/affix/index.tsx b/components/affix/index.jsx similarity index 100% rename from components/affix/index.tsx rename to components/affix/index.jsx diff --git a/components/comment/index.tsx b/components/comment/index.tsx index a9949ffd9..9a34833af 100644 --- a/components/comment/index.tsx +++ b/components/comment/index.tsx @@ -49,7 +49,7 @@ const Comment = ( actions && actions.length ? ( ) : null; diff --git a/components/vc-virtual-list/hooks/useFrameWheel.ts b/components/vc-virtual-list/hooks/useFrameWheel.ts index df7b3286f..ef02e4a18 100644 --- a/components/vc-virtual-list/hooks/useFrameWheel.ts +++ b/components/vc-virtual-list/hooks/useFrameWheel.ts @@ -18,7 +18,7 @@ export default function useFrameWheel( let nextFrame: number | null | undefined = null; // Firefox patch - let wheelValue: null = null; + let wheelValue = null; let isMouseScroll = false; // Scroll status sync diff --git a/components/vc-virtual-list/hooks/useHeights.tsx b/components/vc-virtual-list/hooks/useHeights.tsx index efe7daba7..2f87e51e7 100644 --- a/components/vc-virtual-list/hooks/useHeights.tsx +++ b/components/vc-virtual-list/hooks/useHeights.tsx @@ -10,7 +10,7 @@ export default function useHeights( ): [(item: T, instance: HTMLElement) => void, () => void, CacheMap, Ref] { const instance = new Map(); const heights = reactive({}); - let updatedMark = ref(0); + const updatedMark = ref(0); let heightUpdateId = 0; function collectHeight() { heightUpdateId += 1;