mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
fix: 修复 ReactRenderer 运行时弹窗不展示问题
This commit is contained in:
parent
5fedc37074
commit
cd4308fc10
@ -1,22 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>LowCodeEngine DEMO</title>
|
||||
<script src="https://g.alicdn.com/code/lib/react/16.9.0/umd/react.development.js"></script>
|
||||
<script src="https://g.alicdn.com/code/lib/react-dom/16.9.0/umd/react-dom.development.js"></script>
|
||||
<script src="https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js"></script>
|
||||
<script> React.PropTypes = PropTypes; </script>
|
||||
<script src="https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alifd/next/1.11.6/next.min.css">
|
||||
<script src="https://unpkg.alibaba-inc.com/@alifd/next@1.18.17/dist/next.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="lce-container"></div>
|
||||
<script type="text/javascript" src="/js/preview.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -414,11 +414,11 @@ export default function baseRenererFactory() {
|
||||
let Comp = components[schema.componentName] || this.props.__container?.components?.[schema.componentName];
|
||||
|
||||
if (!Comp) {
|
||||
console.error(`${schema.componentName} is not found! component list is:`, this.props.__container?.components);
|
||||
console.error(`${schema.componentName} is not found! component list is:`, components || this.props.__container?.components);
|
||||
Comp = engine.getNotFoundComponent();
|
||||
}
|
||||
|
||||
if (schema.hidden && !this._designModeIsDesign) {
|
||||
if (schema.hidden && (engine?.props?.designMode && engine?.props?.designMode !== 'design')) {
|
||||
// designMode 为 design 情况下,需要进入 leaf Hoc,进行相关事件注册
|
||||
return null;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user