fix: add FaultComponent style

This commit is contained in:
zude.hzd 2020-08-21 16:44:59 +08:00
parent 8c36928580
commit 77b0b2ccec

View File

@ -30,7 +30,16 @@ class FaultComponent extends PureComponent {
render() {
// FIXME: errorlog
console.error('render error', this.props);
return <Div>RenderError</Div>;
return <Div style={{
width:'100%',
height:'50px',
lineHeight: '50px',
textAlign: 'center',
fontSize: '15px',
color: '#ff0000',
border: '2px solid #ff0000'
}}>组件渲染异常请查看控制台日志</Div>;
}
}