From a977ec1f3af4e944268b5fef28367ab60bfcdd9d Mon Sep 17 00:00:00 2001
From: leip247 <200684632@qq.com>
Date: Wed, 19 Mar 2025 09:15:41 +0800
Subject: [PATCH] fix: #113 (#116)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* fix(slot): 优化部分slot写法,减少手动判断
* fix(slot): 优化部分slot写法,减少手动判断
* feat(table): 添加vxe-table,适配naiveui主题,并替换掉之前table,自带导出
* feat(table): 添加vxe-table,适配naiveui主题,并替换掉之前table,自带导出
* fix: 完善table总条数不显示问题
---
src/components/common/MeVxeGrid.vue | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/components/common/MeVxeGrid.vue b/src/components/common/MeVxeGrid.vue
index 6ecb1ea..5e0ac3d 100644
--- a/src/components/common/MeVxeGrid.vue
+++ b/src/components/common/MeVxeGrid.vue
@@ -21,6 +21,9 @@
+
+ 共 {{ pagerConfig.total }} 条数据
+
@@ -135,7 +138,7 @@ const pagerConfig = computed(() => {
return {
currentPage: props.pagination.pageNo,
pageSize: props.pagination.pageSize,
- total: props.pagination.itemCount,
+ total: props.pagination.itemCount || 0,
background: true,
size: 'small',
layouts: [
@@ -146,8 +149,11 @@ const pagerConfig = computed(() => {
'End',
'Sizes',
'FullJump',
- 'Total',
+ // 'Total',
],
+ slots: {
+ right: 'total',
+ },
}
})
/**