From 3c0b74f13a2d56c44296b10a129dd2fbca0106bd Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期五, 12 六月 2026 17:07:44 +0800
Subject: [PATCH] fix: 增加分页组件的可选页面大小

---
 src/components/PIMTable/PIMTable.vue |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/components/PIMTable/PIMTable.vue b/src/components/PIMTable/PIMTable.vue
index f99b1eb..631d956 100644
--- a/src/components/PIMTable/PIMTable.vue
+++ b/src/components/PIMTable/PIMTable.vue
@@ -11,6 +11,7 @@
             :row-key="rowKey"
             :style="tableStyle"
             tooltip-effect="dark"
+            :tooltip-options="{ appendTo: 'body' }"
             :expand-row-keys="expandRowKeys"
             :show-summary="isShowSummary"
             :summary-method="summaryMethod"
@@ -119,6 +120,7 @@
             <el-button v-show="o.type != 'upload'"
                        v-if="o.showHide ? o.showHide(scope.row) : true"
                        :disabled="isOperationDisabled(o, scope.row)"
+                       :loading="isOperationLoading(o, scope.row)"
                        :plain="o.plain"
                        type="primary"
                        :style="{
@@ -372,6 +374,13 @@
       : !!operation.disabled;
   };
 
+  const isOperationLoading = (operation, row) => {
+    if (!operation?.loading) return false;
+    return typeof operation.loading === "function"
+      ? !!operation.loading(row)
+      : !!operation.loading;
+  };
+
   const parseHexToRgb = hex => {
     const normalized = String(hex || "")
       .trim()

--
Gitblit v1.9.3