From 7c71766291f8feec35934de8077fa0f50221f1de Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 28 四月 2021 21:36:05 +0800 Subject: [PATCH] 2021-04-28 --- src/tabviews/custom/index.jsx | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index 2fc9acb..0fe4f3d 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -518,12 +518,18 @@ } if (col.type === 'number' && col.sum === 'true' && !statFields.includes(col.field)) { statFields.push(col) - } - if (col.type === 'colspan') { + } else if (col.type === 'colspan') { col.subcols = getCols(col.subcols || []) if (col.subcols.length === 0) { return false } + } else if (col.type === 'custom') { + col.elements = col.elements.map(cell => { + if (['text', 'number', 'link'].includes(cell.eleType) && !cell.height) { + cell.innerHeight = 'auto' + } + return cell + }) } if (col.linkmenu && col.linkmenu.length > 0) { @@ -532,7 +538,7 @@ } else { col.linkThdMenu = '' } - + return true }) } -- Gitblit v1.8.0