From fc5fb920066b4f2d9d2c1304890ce7dd513d05f4 Mon Sep 17 00:00:00 2001
From: hejianhao <15708179461@qq.com>
Date: 星期四, 08 五月 2025 18:02:08 +0800
Subject: [PATCH] 添加项目组(65%

---
 laboratory/src/components/Table/index.vue |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/laboratory/src/components/Table/index.vue b/laboratory/src/components/Table/index.vue
index ddc06cf..764aa68 100644
--- a/laboratory/src/components/Table/index.vue
+++ b/laboratory/src/components/Table/index.vue
@@ -1,6 +1,6 @@
 <template>
     <div class="table-container">
-        <el-table border v-bind="$attrs" v-on="$listeners" :height="height">
+        <el-table ref="elTable" border v-bind="$attrs" v-on="$listeners" :height="height">
             <slot></slot>
         </el-table>
         <div v-if="total > 0">
@@ -42,6 +42,14 @@
         }
     },
     methods: {
+        toggleRowSelection(row, selected) {
+            this.$refs.elTable.toggleRowSelection(row, selected)
+            this.$forceUpdate()
+        },
+        clearSelection() {
+            this.$refs.elTable.clearSelection()
+            this.$forceUpdate()
+        },
         handleCurrentChange(page) {
             this.$emit('handleCurrentChange', page)
         },

--
Gitblit v1.7.1