mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
fix: render error样式
This commit is contained in:
parent
270e27cc38
commit
d601d5e1a9
@ -30,7 +30,16 @@ class FaultComponent extends PureComponent {
|
||||
render() {
|
||||
// FIXME: errorlog
|
||||
console.error('render error', this.props);
|
||||
return <Div>RenderError</Div>;
|
||||
const { _componentName: componentName } = this.props;
|
||||
return <Div
|
||||
style={{
|
||||
backgroundColor: '#DE2710',
|
||||
padding: '15px',
|
||||
fontSize: '18px',
|
||||
textAlign: 'center',
|
||||
color: 'white',
|
||||
}}
|
||||
>组件 {componentName} 渲染错误,请打开控制台排查</Div>;;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user