From 9be28daa8b377b054127fd78254dfa63d29e3a7b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 06 六月 2024 15:08:13 +0800 Subject: [PATCH] 2024-06-06 --- src/tabviews/custom/components/table/edit-table/normalTable/index.jsx | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx b/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx index f0037fb..916818a 100644 --- a/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx +++ b/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx @@ -2653,8 +2653,14 @@ } let height = setting.height || false - if (height && height <= 100) { - height = height + 'vh' + if (height) { + if (height <= 100) { + if (height < 0) { + height = `calc(100vh - ${-height}px)` + } else { + height = height + 'vh' + } + } } let style = { -- Gitblit v1.8.0