mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-18 21:38:14 +00:00
Merge branch 'release/0.9.3' of gitlab.alibaba-inc.com:ali-lowcode/ali-lowcode-engine into release/0.9.3
This commit is contained in:
commit
9a12eb2a61
@ -63,6 +63,13 @@ export default class LeftFloatPane extends Component<{ area: Area<any, Panel> }>
|
|||||||
const { area } = this.props;
|
const { area } = this.props;
|
||||||
if (area.visible) {
|
if (area.visible) {
|
||||||
this.focusing?.active();
|
this.focusing?.active();
|
||||||
|
// 关闭当前fixed区域的面板
|
||||||
|
// TODO: 看看有没有更合适的地方
|
||||||
|
const fixedContainer = area?.skeleton?.leftFixedArea?.container;
|
||||||
|
const currentFixed = fixedContainer?.current;
|
||||||
|
if (currentFixed) {
|
||||||
|
fixedContainer.unactive(currentFixed);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.focusing?.suspense();
|
this.focusing?.suspense();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,7 +30,16 @@ class FaultComponent extends PureComponent {
|
|||||||
render() {
|
render() {
|
||||||
// FIXME: errorlog
|
// FIXME: errorlog
|
||||||
console.error('render error', this.props);
|
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