From b8411c93119335094a4f621f6a027e2edeeb7a7d Mon Sep 17 00:00:00 2001 From: handsomeFu Date: Mon, 22 Nov 2021 09:15:59 +0800 Subject: [PATCH] chore: fix typo (#1384) --- src/components/Table/src/hooks/useTableScroll.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Table/src/hooks/useTableScroll.ts b/src/components/Table/src/hooks/useTableScroll.ts index 340015123..dd1014244 100644 --- a/src/components/Table/src/hooks/useTableScroll.ts +++ b/src/components/Table/src/hooks/useTableScroll.ts @@ -12,7 +12,7 @@ export function useTableScroll( propsRef: ComputedRef, tableElRef: Ref, columnsRef: ComputedRef, - rowSelectionRef: ComputedRef | null>, + rowSelectionRef: ComputedRef, getDataSourceRef: ComputedRef, ) { const tableHeightRef: Ref> = ref(null); @@ -43,8 +43,8 @@ export function useTableScroll( }); } - function setHeight(heigh: number) { - tableHeightRef.value = heigh; + function setHeight(height: number) { + tableHeightRef.value = height; // Solve the problem of modal adaptive height calculation when the form is placed in the modal modalFn?.redoModalHeight?.(); }