Merge branch refactor/leafVisible into release/1.0.70

Title: fix: 存在 curDocumentId 才存储组件 

Link: https://code.aone.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/codereview/6739257
This commit is contained in:
lihao.ylh 2021-10-20 14:52:35 +08:00
commit c48d61acb5

View File

@ -446,7 +446,9 @@ export function leafWrapper(Comp: types.IBaseRenderer, {
LeafWrapper.displayName = (Comp as any).displayName;
cache.component.set(schema.componentName, LeafWrapper);
if (curDocumentId) {
cache.component.set(schema.componentName, LeafWrapper);
}
return LeafWrapper;
}