fix showColumn

This commit is contained in:
2023-11-16 18:48:48 +01:00
parent b1da083557
commit 5c0b83a0a3

View File

@@ -14,7 +14,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) ?? true;
const showColumn = (sortKey: string) => !toValue(options?.ignoredColums)?.includes(sortKey);
const headerProps = computed(() => ({
onSort: sortBy, showColumn,
currentSortKey: sortKey.value,