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); };