diff --git a/packages/components/virtual-list/src/hooks/use-wheel.ts b/packages/components/virtual-list/src/hooks/use-wheel.ts index 5c70c0eeb3..6ec2c6f7c7 100644 --- a/packages/components/virtual-list/src/hooks/use-wheel.ts +++ b/packages/components/virtual-list/src/hooks/use-wheel.ts @@ -1,4 +1,3 @@ -// @ts-nocheck import { cAF, isFirefox, rAF } from '@element-plus/utils' import { HORIZONTAL, VERTICAL } from '../defaults' @@ -8,7 +7,7 @@ import type { LayoutDirection } from '../types' const LayoutKeys = { [HORIZONTAL]: 'deltaX', [VERTICAL]: 'deltaY', -} +} as const interface ListWheelState { atStartEdge: ComputedRef // exclusive to reachEnd