From e9c48bd7356462ba9257540b130a47a65ad1861d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 26 八月 2021 17:17:11 +0800 Subject: [PATCH] 2021-08-26 --- src/menu/components/chart/antv-dashboard/index.jsx | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/menu/components/chart/antv-dashboard/index.jsx b/src/menu/components/chart/antv-dashboard/index.jsx index 54f8e71..a6c9c1e 100644 --- a/src/menu/components/chart/antv-dashboard/index.jsx +++ b/src/menu/components/chart/antv-dashboard/index.jsx @@ -234,7 +234,7 @@ const chart = new Chart({ container: card.uuid + 'dashboard', autoFit: true, - height: plot.title ? plot.height - 45 : plot.height, + height: this.wrap.offsetHeight - 30, }) chart.data(data) @@ -333,7 +333,7 @@ const chart = new Chart({ container: card.uuid + 'dashboard', autoFit: true, - height: plot.title ? plot.height - 45 : plot.height, + height: this.wrap.offsetHeight - 30, padding: [0, 0, 0, 0], }) chart.data(data) @@ -489,7 +489,7 @@ changeStyle = () => { const { card } = this.state - MKEmitter.emit('changeStyle', [card.uuid], ['background', 'border', 'padding', 'margin'], card.style) + MKEmitter.emit('changeStyle', [card.uuid], ['background', 'border', 'padding', 'margin', 'shadow'], card.style) } getStyle = (comIds, style) => { @@ -529,7 +529,7 @@ <Icon type="tool" /> </Popover> {card.plot.title ? <NormalHeader config={card} updateComponent={this.updateComponent}/> : null} - <div className="canvas" id={card.uuid + 'dashboard'}></div> + <div className="canvas" id={card.uuid + 'dashboard'} ref={ref => this.wrap = ref}></div> </div> ) } -- Gitblit v1.8.0