From e27906a4f932b68578095a39485c969f1622f970 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 05 十一月 2025 20:20:30 +0800
Subject: [PATCH] 用电时段分页bug

---
 src/components/PIMTable/PIMTable.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/components/PIMTable/PIMTable.vue b/src/components/PIMTable/PIMTable.vue
index c0a67a6..1fa1695 100644
--- a/src/components/PIMTable/PIMTable.vue
+++ b/src/components/PIMTable/PIMTable.vue
@@ -10,7 +10,7 @@
     :row-class-name="rowClassName"
     :row-style="rowStyle"
     :row-key="rowKey"
-    style="width: 100%"
+    :style="tableStyle"
     tooltip-effect="dark"
     :expand-row-keys="expandRowKeys"
     :show-summary="isShowSummary"
@@ -204,7 +204,6 @@
     </el-table-column>
   </el-table>
   <pagination
-    v-if="page.total > 0"
     :total="page.total"
     :layout="page.layout"
     :page="page.current"
@@ -313,6 +312,10 @@
     type: Number,
     default: 0,
   },
+  tableStyle: {
+    type: [String, Object],
+    default: () => ({ width: "100%" }),
+  },
 });
 
 // Data

--
Gitblit v1.9.3