From 2c555bf1901c72e8d2dc937a1b1e6397970d1f6d Mon Sep 17 00:00:00 2001 From: Qiyuan Date: Sat, 25 Nov 2017 10:15:41 +0800 Subject: [PATCH] Update index.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 表格加载时白屏的问题(options.backgroundColor 同时也是 ECharts 的 背景色配置项) --- src/components/Echarts/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Echarts/index.js b/src/components/Echarts/index.js index e505b10..9a79c6b 100644 --- a/src/components/Echarts/index.js +++ b/src/components/Echarts/index.js @@ -21,6 +21,7 @@ export default class App extends Component { height: this.props.height || 400, }} source={require('./tpl.html')} + style={{backgroundColor: this.props.option.backgroundColor || '#FFFFFF'}} onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null} />