From e812829d83b1fd296b25fbc244f89e9b38f687a9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 28 九月 2020 09:28:15 +0800 Subject: [PATCH] 2020-09-28 --- src/menu/components/chart/antv-bar/index.jsx | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/menu/components/chart/antv-bar/index.jsx b/src/menu/components/chart/antv-bar/index.jsx index e800e66..c3e22df 100644 --- a/src/menu/components/chart/antv-bar/index.jsx +++ b/src/menu/components/chart/antv-bar/index.jsx @@ -84,6 +84,7 @@ name: _plot.name, subtype: card.subtype, setting: { interType: 'system' }, + style: { marginLeft: '8px', marginRight: '8px', marginTop: '8px', marginBottom: '8px' }, columns: [], scripts: [], search: [], @@ -642,7 +643,7 @@ const { card } = this.state return ( - <div className="menu-line-chart-edit-box" style={{height: card.plot.height || 400}}> + <div className="menu-line-chart-edit-box" style={{...card.style, height: card.plot.height || 400}}> <div className="chart-header"> <span className="chart-title">{card.plot.title || ''}</span> <SearchComponent -- Gitblit v1.8.0