mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-25 02:58:43 +08:00
chore: fix typo (#1384)
This commit is contained in:
parent
4806aced85
commit
b8411c9311
@ -12,7 +12,7 @@ export function useTableScroll(
|
|||||||
propsRef: ComputedRef<BasicTableProps>,
|
propsRef: ComputedRef<BasicTableProps>,
|
||||||
tableElRef: Ref<ComponentRef>,
|
tableElRef: Ref<ComponentRef>,
|
||||||
columnsRef: ComputedRef<BasicColumn[]>,
|
columnsRef: ComputedRef<BasicColumn[]>,
|
||||||
rowSelectionRef: ComputedRef<TableRowSelection<any> | null>,
|
rowSelectionRef: ComputedRef<TableRowSelection | null>,
|
||||||
getDataSourceRef: ComputedRef<Recordable[]>,
|
getDataSourceRef: ComputedRef<Recordable[]>,
|
||||||
) {
|
) {
|
||||||
const tableHeightRef: Ref<Nullable<number>> = ref(null);
|
const tableHeightRef: Ref<Nullable<number>> = ref(null);
|
||||||
@ -43,8 +43,8 @@ export function useTableScroll(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function setHeight(heigh: number) {
|
function setHeight(height: number) {
|
||||||
tableHeightRef.value = heigh;
|
tableHeightRef.value = height;
|
||||||
// Solve the problem of modal adaptive height calculation when the form is placed in the modal
|
// Solve the problem of modal adaptive height calculation when the form is placed in the modal
|
||||||
modalFn?.redoModalHeight?.();
|
modalFn?.redoModalHeight?.();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user