fix: 修复判断动态 setter 的逻辑

fix: 修复 Page 中包含 Block 不渲染的 bug
This commit is contained in:
力皓 2020-08-17 20:31:58 +08:00
parent 5d643124c4
commit d195d7fed8
2 changed files with 2 additions and 3 deletions

View File

@ -325,8 +325,7 @@ export default class BaseEngine extends PureComponent {
return engine.createElement(
Comp,
props,
(!isFileSchema(schema) &&
!!schema.children &&
(!!schema.children &&
this.__createVirtualDom(
isJSExpression(schema.children) ? parseExpression(schema.children, self) : schema.children,
self,

View File

@ -47,5 +47,5 @@ export function isCustomView(obj: any): obj is CustomView {
}
export function isDynamicSetter(obj: any): obj is DynamicSetter {
return obj && typeof obj === 'function' && !obj.displayName;
return obj && typeof obj === 'function' && !isReactClass(obj);
}