From e9fce9baecbe8a0f5d9b5b42d8cec8de64e1b6f1 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Mon, 30 Dec 2024 10:54:52 +0100 Subject: [PATCH] hotfix: pagination --- src/components/Pagination.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/Pagination.vue b/src/components/Pagination.vue index b401880..8b6ead5 100644 --- a/src/components/Pagination.vue +++ b/src/components/Pagination.vue @@ -20,10 +20,10 @@

{{ item }}

@@ -106,7 +106,7 @@ const emit = defineEmits({ search(search: string) { return typeof search == "number"; }, - clickRow(id: FieldType) { + clickRow(elem: T) { return true; }, }); @@ -163,7 +163,11 @@ const filterData = (array: Array, searchString: string, start: number, end: (elem) => !props.enablePreSearch || searchString.trim() == "" || - props.config.some((col) => typeof elem?.[col.key] == "string" && elem[col.key].includes(searchString.trim())) + props.config.some( + (col) => + typeof elem?.[col.key] == "string" && + elem[col.key].toLowerCase().includes(searchString.trim().toLowerCase()) + ) ) .filter((elem, index) => (elem?.tab_pos ?? index) >= start && (elem?.tab_pos ?? index) < end); };