fix showColumn
This commit is contained in:
@@ -14,7 +14,7 @@ export const useSort = <T>(array: MaybeRefOrGetter<T[]>, options?: UseSortOption
|
|||||||
sortKey.value = key;
|
sortKey.value = key;
|
||||||
sortDirection.value = direction;
|
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(() => ({
|
const headerProps = computed(() => ({
|
||||||
onSort: sortBy, showColumn,
|
onSort: sortBy, showColumn,
|
||||||
currentSortKey: sortKey.value,
|
currentSortKey: sortKey.value,
|
||||||
|
|||||||
Reference in New Issue
Block a user