Merge branch fix/loop-key into release/0.16.2

Title: Merge branch 'master' of gitlab.alibaba-inc.com:ali-lowcode/ali-lowcode-engine into fix/loop-key 

修复 antd 组件属性 key 的问题

Link: https://code.aone.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/codereview/5753889
This commit is contained in:
lihao.ylh 2021-06-28 15:07:46 +08:00
commit 6cb8bf2751

View File

@ -476,8 +476,6 @@ export default function baseRenererFactory() {
if (scopeKey && this.__compScopes[scopeKey]) {
props.__scope = this.__compScopes[scopeKey];
}
// FIXME 这里清除 key 是为了避免循环渲染中更改 key 导致的渲染重复
props.key = '';
if (schema?.__ctx?.lceKey) {
if (!isFileSchema(schema)) {
engine?.props?.onCompGetCtx(schema, self);