mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 22:58:15 +00:00
fix: 修复判断动态 setter 的逻辑
fix: 修复 Page 中包含 Block 不渲染的 bug
This commit is contained in:
parent
5d643124c4
commit
d195d7fed8
@ -325,8 +325,7 @@ export default class BaseEngine extends PureComponent {
|
|||||||
return engine.createElement(
|
return engine.createElement(
|
||||||
Comp,
|
Comp,
|
||||||
props,
|
props,
|
||||||
(!isFileSchema(schema) &&
|
(!!schema.children &&
|
||||||
!!schema.children &&
|
|
||||||
this.__createVirtualDom(
|
this.__createVirtualDom(
|
||||||
isJSExpression(schema.children) ? parseExpression(schema.children, self) : schema.children,
|
isJSExpression(schema.children) ? parseExpression(schema.children, self) : schema.children,
|
||||||
self,
|
self,
|
||||||
|
|||||||
@ -47,5 +47,5 @@ export function isCustomView(obj: any): obj is CustomView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function isDynamicSetter(obj: any): obj is DynamicSetter {
|
export function isDynamicSetter(obj: any): obj is DynamicSetter {
|
||||||
return obj && typeof obj === 'function' && !obj.displayName;
|
return obj && typeof obj === 'function' && !isReactClass(obj);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user