mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-06-02 21:50:47 +00:00
fix: add FaultComponent style
This commit is contained in:
parent
8c36928580
commit
77b0b2ccec
11
packages/react-renderer/src/index.js
vendored
11
packages/react-renderer/src/index.js
vendored
@ -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>;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user