From 5c7328c84c02cfa7b36ae71e375ea99d7b7086a8 Mon Sep 17 00:00:00 2001 From: Shyam-Chen Date: Tue, 5 Nov 2024 10:18:19 +0800 Subject: [PATCH] 1,583rd Commit --- ui/src/components/table/Table.vue | 8 ++++---- ui/src/components/text-field/TextField.vue | 23 +++++++++++++++++----- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/ui/src/components/table/Table.vue b/ui/src/components/table/Table.vue index c04ca60a..af1648f2 100644 --- a/ui/src/components/table/Table.vue +++ b/ui/src/components/table/Table.vue @@ -84,12 +84,10 @@ const flux = reactive({ rowsPerPage: 10, currentPage: 1, previousPage() { - if (flux.currentPage === 1) return; flux.currentPage -= 1; flux._updateChange(); }, nextPage() { - if (flux.currentPage === Math.ceil(countRef.value / flux.rowsPerPage)) return; flux.currentPage += 1; flux._updateChange(); }, @@ -429,7 +427,7 @@ watchEffect( :label="locale.previousPage || 'Previous'" variant="text" color="secondary" - :disabled="loading" + :disabled="!countRef || flux.currentPage === 1 || loading" @click="flux.previousPage" />