query views, router and store

This commit is contained in:
Julian Krauser 2024-12-12 16:34:03 +01:00
parent 8849d3e273
commit 0508e40494
8 changed files with 208 additions and 14 deletions

View file

@ -64,7 +64,7 @@
</div>
</template>
<script setup lang="ts" generic="T">
<script setup lang="ts" generic="T extends { id: number }">
import { computed, ref, watch } from "vue";
import { ChevronRightIcon, ChevronLeftIcon, XMarkIcon } from "@heroicons/vue/20/solid";
import Spinner from "./Spinner.vue";
@ -105,6 +105,9 @@ const emit = defineEmits({
search(search: string) {
return typeof search == "number";
},
clickRow(id: number) {
return typeof id == "number";
},
});
const entryCount = computed(() => props.totalCount ?? props.items.length);