Merge branch 'fix/rootNodeSupportDiv' into 'release/0.9.0'

Fix/root node support div



See merge request !869860
This commit is contained in:
康为 2020-06-30 15:07:34 +08:00
commit 1515dea67f

View File

@ -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');