Commit b8411c93119335094a4f621f6a027e2edeeb7a7d

Authored by handsomeFu
Committed by GitHub
1 parent 4806aced

chore: fix typo (#1384)

src/components/Table/src/hooks/useTableScroll.ts
... ... @@ -12,7 +12,7 @@ export function useTableScroll(
12 12 propsRef: ComputedRef<BasicTableProps>,
13 13 tableElRef: Ref<ComponentRef>,
14 14 columnsRef: ComputedRef<BasicColumn[]>,
15   - rowSelectionRef: ComputedRef<TableRowSelection<any> | null>,
  15 + rowSelectionRef: ComputedRef<TableRowSelection | null>,
16 16 getDataSourceRef: ComputedRef<Recordable[]>,
17 17 ) {
18 18 const tableHeightRef: Ref<Nullable<number>> = ref(null);
... ... @@ -43,8 +43,8 @@ export function useTableScroll(
43 43 });
44 44 }
45 45  
46   - function setHeight(heigh: number) {
47   - tableHeightRef.value = heigh;
  46 + function setHeight(height: number) {
  47 + tableHeightRef.value = height;
48 48 // Solve the problem of modal adaptive height calculation when the form is placed in the modal
49 49 modalFn?.redoModalHeight?.();
50 50 }
... ...