fix: fix a few typos

This commit is contained in:
Sophie-Gaëlle CALLOCH
2026-07-07 15:51:53 +02:00
parent 75d1d5f7fa
commit 55c2628c75
9 changed files with 31 additions and 31 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ describe('useSort', () => {
})
test('Hides ignored columns', () => {
const { showColumn } = useSort(array, { ignoredColums: ['key1'] })
const { showColumn } = useSort(array, { ignoredColumns: ['key1'] })
expect(showColumn('key1')).toBe(false)
})
+2 -2
View File
@@ -5,7 +5,7 @@ export type SortDirection = "asc" | "desc";
export type UseSortOptions = {
defaultSortKey?: string;
defaultSortDirection?: SortDirection;
ignoredColums?: MaybeRefOrGetter<string[]>;
ignoredColumns?: MaybeRefOrGetter<string[]>;
headerComponent?: HeaderComponent;
};
@@ -16,7 +16,7 @@ export const useSort = <T>(array: MaybeRefOrGetter<T[]>, options?: UseSortOption
sortKey.value = key;
sortDirection.value = direction;
};
const showColumn = (sortKey: string) => !toValue(options?.ignoredColums)?.includes(sortKey);
const showColumn = (sortKey: string) => !toValue(options?.ignoredColumns)?.includes(sortKey);
const headerProps = computed(() => ({
onSort: sortBy,
showColumn,