From 7449eee8fa9f8a251e9c4e9162030f1e004bae0f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 15 十月 2020 09:17:04 +0800 Subject: [PATCH] 2020-10-15 --- src/tabviews/custom/components/chart/antv-bar-line/index.jsx | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/chart/antv-bar-line/index.jsx b/src/tabviews/custom/components/chart/antv-bar-line/index.jsx index 1ca90a9..0a7e252 100644 --- a/src/tabviews/custom/components/chart/antv-bar-line/index.jsx +++ b/src/tabviews/custom/components/chart/antv-bar-line/index.jsx @@ -102,8 +102,11 @@ } let showHeader = false - if (config.plot.title || _config.plot.datatype === 'statistics') { + if (config.plot.title || _config.plot.datatype === 'statistics' || config.search.length > 0) { showHeader = true + _config.plot.height = _config.plot.height - 80 + } else { + _config.plot.height = _config.plot.height - 30 } this.setState({ @@ -1077,7 +1080,7 @@ } })} </div> - <div className={'canvas' + (empty ? ' empty' : '')} style={{minHeight: plot.height ? plot.height : 400}} id={this.state.chartId}></div> + <div className={'canvas' + (empty ? ' empty' : '')} id={this.state.chartId}></div> </div> {empty ? <Empty description={false}/> : null} </div> -- Gitblit v1.8.0