From d635b51ae0ffe922d7e56bbceb7229fe7a5fd8f2 Mon Sep 17 00:00:00 2001
From: pyt <626651354@qq.com>
Date: 星期四, 10 四月 2025 10:25:29 +0800
Subject: [PATCH] feat

---
 src/components/Table/index.vue |   36 ++++++++++++++++++++++++++++++------
 1 files changed, 30 insertions(+), 6 deletions(-)

diff --git a/src/components/Table/index.vue b/src/components/Table/index.vue
index f8d4e03..a2867ab 100644
--- a/src/components/Table/index.vue
+++ b/src/components/Table/index.vue
@@ -1,6 +1,6 @@
 <template>
     <div class="table-container">
-        <el-table border :data="tableData" :height="height">
+        <el-table border v-bind="$attrs" v-on="$listeners" :height="height">
             <slot></slot>
         </el-table>
         <div v-if="total > 0">
@@ -16,6 +16,7 @@
 </template>
 
 <script>
+import Vue from 'vue';
 export default {
     props: {
         tableData: {
@@ -34,12 +35,11 @@
                     pageNum: 1
                 }
             }
-        }
-    },
-    computed: {
-        height() {
-            return this.$baseTableHeight()
         },
+        height: {
+            type: Number,
+            default: () => Vue.prototype.$baseTableHeight()
+        }
     },
     methods: {
         handleCurrentChange(page) {
@@ -53,6 +53,10 @@
 </script>
 
 <style scoped lang="less">
+::v-deep .select-row {
+    background: #E6FFFF !important;
+}
+
 .el-table--border,
 .el-table--group {
     border-radius: 8px 8px 0px 0px;
@@ -66,6 +70,26 @@
     }
 }
 
+::v-deep .el-checkbox__inner:hover {
+    border-color: #049C9A !important;
+}
+
+::v-deep .el-checkbox__input.is-focus .el-checkbox__inner {
+    border-color: #049C9A !important;
+}
+
+
+::v-deep .el-checkbox__input.is-checked .el-checkbox__inner {
+    background-color: #049C9A !important;
+    border-color: #049C9A !important;
+}
+
+::v-deep .el-checkbox__input.is-indeterminate .el-checkbox__inner {
+    background-color: #049C9A !important;
+    border-color: #049C9A !important;
+
+}
+
 .pagination {
     display: flex;
     justify-content: flex-end;

--
Gitblit v1.7.1