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/card/double-data-card/index.jsx | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/tabviews/custom/components/card/double-data-card/index.jsx b/src/tabviews/custom/components/card/double-data-card/index.jsx index 3e78040..0000c90 100644 --- a/src/tabviews/custom/components/card/double-data-card/index.jsx +++ b/src/tabviews/custom/components/card/double-data-card/index.jsx @@ -131,7 +131,13 @@ if (_config.wrap.zHeight || _config.wrap.minWidth) { if (_config.wrap.zHeight) { - _config.wrap.zHeight = _config.wrap.zHeight <= 100 ? _config.wrap.zHeight + 'vh' : _config.wrap.zHeight + if (_config.wrap.zHeight <= 100) { + if (_config.wrap.zHeight < 0) { + _config.wrap.zHeight = `calc(100vh - ${-_config.wrap.zHeight}px)` + } else { + _config.wrap.zHeight = _config.wrap.zHeight + 'vh' + } + } _config.wrap.wrapClass += ' fix-height' } _config.wrap.minWidth = _config.wrap.minWidth ? _config.wrap.minWidth + 'px' : '100%' -- Gitblit v1.8.0