From dd496a7b55fe792c71839ca1118f94a829fe5c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A9=E7=8E=8B=E7=9B=96=E5=9C=B0=E8=99=8E?= <100254239@qq.com> Date: Mon, 31 Jul 2023 02:51:41 +0000 Subject: [PATCH] =?UTF-8?q?VolTable=20=E5=A2=9E=E5=8A=A0=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E5=88=86=E9=A1=B5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 天王盖地虎 <100254239@qq.com> --- .../src/components/basic/VolTable.vue" | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git "a/Vol.Vue3\347\211\210\346\234\254/src/components/basic/VolTable.vue" "b/Vol.Vue3\347\211\210\346\234\254/src/components/basic/VolTable.vue" index 7d9d412b..28e32b77 100644 --- "a/Vol.Vue3\347\211\210\346\234\254/src/components/basic/VolTable.vue" +++ "b/Vol.Vue3\347\211\210\346\234\254/src/components/basic/VolTable.vue" @@ -32,7 +32,7 @@ tooltip-effect="dark" :height="realHeight" :max-height="realMaxHeight" - :data="url ? rowData : tableData" + :data="url ? rowData : paginationHide ? tableData : tableData.slice((paginations.page - 1) * paginations.size, paginations.page * paginations.size)" border :row-class-name="initIndex" :cell-style="getCellStyle" @@ -477,6 +477,7 @@ export default defineComponent({ 'tableData.length': { handler(newLen, oldLen) { this.watchRowSelectChange(newLen, oldLen); + this.paginations.total = newLen; } }, 'rowData.length': { -- Gitee