mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +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,
|
||||
AddonEngine,
|
||||
TempEngine,
|
||||
// DivEngine: BlockEngine,
|
||||
DivEngine: BlockEngine,
|
||||
};
|
||||
|
||||
class FaultComponent extends PureComponent {
|
||||
@ -157,7 +157,8 @@ export default class Engine extends PureComponent {
|
||||
if (isEmpty(schema)) {
|
||||
return null;
|
||||
}
|
||||
if (!isFileSchema(schema)) {
|
||||
// 兼容乐高区块模板
|
||||
if (schema.componentName !== 'Div' && !isFileSchema(schema)) {
|
||||
return '模型结构异常';
|
||||
}
|
||||
debug('entry.render');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user