mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
fix: lifecycle reducer 跳过非 vc 的组件
This commit is contained in:
parent
3bcf34926d
commit
b295da1a02
@ -2,6 +2,10 @@ import { editor } from '@ali/lowcode-engine';
|
||||
import { Node } from '@ali/lowcode-designer';
|
||||
|
||||
export function liveLifecycleReducer(props: any, node: Node) {
|
||||
// 如果不是 vc 体系,不做这个兼容处理
|
||||
if (!node.componentMeta.prototype) {
|
||||
return props;
|
||||
}
|
||||
// live 模式下解析 lifeCycles
|
||||
if (node.isRoot() && props && props.lifeCycles) {
|
||||
if (editor.get('designMode') === 'live') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user