mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
fix: 修复 JSSlot 被转成 i18n 结构
refactor: 优化 getNodeInstance 的循环出口
This commit is contained in:
parent
17e1f07cb7
commit
f2c3292210
@ -124,6 +124,8 @@ designer.addPropsReducer((props, node) => {
|
||||
if (isUseI18NSetter(node.componentMeta.prototype, item.name) &&
|
||||
!isI18NObject(ov) &&
|
||||
!isJSExpression(ov) &&
|
||||
!isJSBlock(ov) &&
|
||||
!isJSSlot(ov) &&
|
||||
!isVariable(ov)) {
|
||||
newProps[item.name] = convertToI18NObject(v);
|
||||
}
|
||||
|
||||
@ -54,5 +54,5 @@
|
||||
"publishConfig": {
|
||||
"registry": "http://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@0.13.1-1/build/index.html"
|
||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@0.13.1-2/build/index.html"
|
||||
}
|
||||
|
||||
@ -468,6 +468,7 @@ function getNodeInstance(fiberNode: any, specId?: string): NodeInstance<ReactIns
|
||||
};
|
||||
}
|
||||
}
|
||||
if (!instance && !fiberNode?.return) return null;
|
||||
return getNodeInstance(fiberNode?.return);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user