Skip to content
Snippets Groups Projects
Commit c766dfa7 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

remove item per page all

parent a1fa2b5a
No related branches found
No related tags found
1 merge request!153Cell distri
Pipeline #118539 passed
...@@ -45,6 +45,7 @@ const { search: msSearch, result: msResult } = useMeiliSearch(props.db) ...@@ -45,6 +45,7 @@ const { search: msSearch, result: msResult } = useMeiliSearch(props.db)
const search: Ref<string> = ref(""); const search: Ref<string> = ref("");
const filterOrSearch: Ref<FilterItem[] | null> = ref(null) const filterOrSearch: Ref<FilterItem[] | null> = ref(null)
const hitsPerPage: Ref<number> = ref(25) const hitsPerPage: Ref<number> = ref(25)
const itemsPerPage: Ref<number[]> = ref([25, 50, 100])
const filterError: Ref<string | null> = ref(null) const filterError: Ref<string | null> = ref(null)
const msFilter: Ref<string | undefined> = ref(undefined) const msFilter: Ref<string | undefined> = ref(undefined)
const page = ref(1) const page = ref(1)
...@@ -373,7 +374,7 @@ function clearSearch() { ...@@ -373,7 +374,7 @@ function clearSearch() {
<v-data-table-server v-if="!msError" v-model:page="page" color="primary" v-bind="dataTableServerProps" <v-data-table-server v-if="!msError" v-model:page="page" color="primary" v-bind="dataTableServerProps"
v-model:items-per-page="hitsPerPage" v-model:sortBy="sortByRef" v-model:expanded="expanded" fixed-header v-model:items-per-page="hitsPerPage" v-model:sortBy="sortByRef" v-model:expanded="expanded" fixed-header
:loading="loading" :items="msResult?.hits ?? []" :items-length="totalHits" density="compact" :loading="loading" :items="msResult?.hits ?? []" :items-length="totalHits" density="compact"
:height="computedTableHeight" class="elevation-1 mt-2"> :items-per-page-options="itemsPerPage" :height="computedTableHeight" class="elevation-1 mt-2">
<template v-for="(slot, index) of Object.keys(slots)" :key="index" v-slot:[slot]="data"> <template v-for="(slot, index) of Object.keys(slots)" :key="index" v-slot:[slot]="data">
<slot :name="slot" v-bind="data"></slot> <slot :name="slot" v-bind="data"></slot>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment