mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-04-20 12:28:08 +00:00
Merge branch 'fix/rootNodeSupportDiv' into 'release/0.9.0'
Fix/root node support div See merge request !869860
This commit is contained in:
commit
1515dea67f
@ -23,7 +23,7 @@ const ENGINE_COMPS = {
|
|||||||
BlockEngine,
|
BlockEngine,
|
||||||
AddonEngine,
|
AddonEngine,
|
||||||
TempEngine,
|
TempEngine,
|
||||||
// DivEngine: BlockEngine,
|
DivEngine: BlockEngine,
|
||||||
};
|
};
|
||||||
|
|
||||||
class FaultComponent extends PureComponent {
|
class FaultComponent extends PureComponent {
|
||||||
@ -157,7 +157,8 @@ export default class Engine extends PureComponent {
|
|||||||
if (isEmpty(schema)) {
|
if (isEmpty(schema)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (!isFileSchema(schema)) {
|
// 兼容乐高区块模板
|
||||||
|
if (schema.componentName !== 'Div' && !isFileSchema(schema)) {
|
||||||
return '模型结构异常';
|
return '模型结构异常';
|
||||||
}
|
}
|
||||||
debug('entry.render');
|
debug('entry.render');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user