From 1fc6b39e37c0a1fb9b2405c6af9dde420f11f51e Mon Sep 17 00:00:00 2001 From: puriphatt Date: Mon, 3 Feb 2025 11:22:33 +0700 Subject: [PATCH] refactor: 05 => xs scroll & adjust TableQuotation row index calculation --- .../05_quotation/TableQuotation.vue | 10 +- src/pages/05_quotation/MainPage.vue | 229 ++++++++++-------- 2 files changed, 137 insertions(+), 102 deletions(-) diff --git a/src/components/05_quotation/TableQuotation.vue b/src/components/05_quotation/TableQuotation.vue index d24b0448..e51b9979 100644 --- a/src/components/05_quotation/TableQuotation.vue +++ b/src/components/05_quotation/TableQuotation.vue @@ -16,12 +16,16 @@ const props = withDefaults( grid?: boolean; visibleColumns?: string[]; hideEdit?: boolean; + page?: number; + pageSize?: number; }>(), { row: () => [], column: () => [], grid: false, visibleColumns: () => [], + page: 1, + pageSize: 30, }, ); @@ -64,7 +68,11 @@ defineEmits<{