Update index.js
修复 表格加载时白屏的问题(options.backgroundColor 同时也是 ECharts 的 背景色配置项)
This commit is contained in:
parent
eeeaead411
commit
2c555bf190
|
|
@ -21,6 +21,7 @@ export default class App extends Component {
|
||||||
height: this.props.height || 400,
|
height: this.props.height || 400,
|
||||||
}}
|
}}
|
||||||
source={require('./tpl.html')}
|
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}
|
onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue