This commit is contained in:
2024-05-17 14:19:57 +02:00
parent 2143fc83f1
commit 77b1c485d3
2 changed files with 9 additions and 8 deletions

View File

@@ -16,7 +16,8 @@ export const useSort = <T>(array: MaybeRefOrGetter<T[]>, options?: UseSortOption
};
const showColumn = (sortKey: string) => !toValue(options?.ignoredColums)?.includes(sortKey);
const headerProps = computed(() => ({
onSort: sortBy, showColumn,
onSort: sortBy,
showColumn,
currentSortKey: sortKey.value,
sortDirection: sortDirection.value
}));