mirror of
https://github.com/amir20/dozzle.git
synced 2026-01-02 11:07:26 +01:00
@@ -129,6 +129,7 @@ const sortedContainers = computedWithControl(
|
||||
const totalPages = computed(() => Math.ceil(sortedContainers.value.length / perPage.value));
|
||||
const isPaginated = computed(() => totalPages.value > 1);
|
||||
const currentPage = ref(1);
|
||||
watch(perPage, () => (currentPage.value = 1));
|
||||
const paginated = computed(() => {
|
||||
const start = (currentPage.value - 1) * perPage.value;
|
||||
const end = start + perPage.value;
|
||||
|
||||
Reference in New Issue
Block a user