diff --git a/src/components/Table/src/hooks/useTableScroll.ts b/src/components/Table/src/hooks/useTableScroll.ts index 34001512..dd101424 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?.(); }