From ac6966408a1de4c95c383d91da6bfd45d63ddbb5 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期四, 26 十二月 2024 18:52:56 +0800
Subject: [PATCH] 优化页面自适应滚动条

---
 src/views/home/components/suifangjilu/index.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/views/home/components/suifangjilu/index.vue b/src/views/home/components/suifangjilu/index.vue
index 30b27dc..be4665e 100644
--- a/src/views/home/components/suifangjilu/index.vue
+++ b/src/views/home/components/suifangjilu/index.vue
@@ -3,7 +3,8 @@
         <el-row>
             <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
                 <div class="tableDiv">
-                    <table>
+                    <el-scrollbar :height="(tableHeight-130)+'px'">
+                    <table v-if="tableHeight > 0" >
                         <tr>
                             <th colspan="7" style="text-align: left">营养服务管理记录</th>
                         </tr>
@@ -545,6 +546,7 @@
                         </tr>
 
                     </table>
+                    </el-scrollbar>
                 </div>
             </el-col>
             

--
Gitblit v1.8.0