From e0aff8f4c0e9c8f16d1ba07863cf600638067514 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 13 四月 2021 15:08:47 +0800
Subject: [PATCH] 2021-04-13

---
 src/tabviews/custom/components/card/table-card/index.jsx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/custom/components/card/table-card/index.jsx b/src/tabviews/custom/components/card/table-card/index.jsx
index a557611..45ee4dc 100644
--- a/src/tabviews/custom/components/card/table-card/index.jsx
+++ b/src/tabviews/custom/components/card/table-card/index.jsx
@@ -69,9 +69,9 @@
     }
 
     if (_config.setting.laypage) {
-      _config.wrap.contentHeight = _config.wrap.height - (showHeader ? 85 : 40)
+      _config.wrap.contentHeight = showHeader ? 'calc(100% - 85px)' : 'calc(100% - 40px)'
     } else {
-      _config.wrap.contentHeight = _config.wrap.height - (showHeader ? 45 : 0)
+      _config.wrap.contentHeight = showHeader ? 'calc(100% - 45px)' : '100%'
     }
 
     _config.columns.forEach(item => {
@@ -343,7 +343,7 @@
     const { config, loading, data, BID, pageIndex, preIndex, total } = this.state
 
     return (
-      <div className="custom-table-card-box" style={{...config.style, height: config.wrap.height}}>
+      <div className="custom-table-card-box" style={{...config.style}}>
         {loading ?
           <div className="loading-mask">
             {data ? <div className="ant-spin-blur"></div> : null}

--
Gitblit v1.8.0