mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-20 15:38:32 +00:00
fix: 跳过 JSExpression 并带有 events 的初始化流程
This commit is contained in:
parent
ab45c0f255
commit
37809e71e8
@ -27,7 +27,11 @@ export function initNodeReducer(props, node) {
|
|||||||
initials.forEach(item => {
|
initials.forEach(item => {
|
||||||
try {
|
try {
|
||||||
// FIXME! item.name could be 'xxx.xxx'
|
// FIXME! item.name could be 'xxx.xxx'
|
||||||
|
const value = props[item.name];
|
||||||
|
// JSExpression 并且带有 events 字段属于特殊情况,不再处理
|
||||||
|
if (!(isJSExpression(value) && value.events)) {
|
||||||
newProps[item.name] = item.initial(node as any, newProps[item.name]);
|
newProps[item.name] = item.initial(node as any, newProps[item.name]);
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (hasOwnProperty(props, item.name)) {
|
if (hasOwnProperty(props, item.name)) {
|
||||||
newProps[item.name] = props[item.name];
|
newProps[item.name] = props[item.name];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user