fix: 去掉清空key的逻辑,避免影响组件属性

This commit is contained in:
wuyue.xht 2021-06-24 16:41:20 +08:00
parent c5c142c124
commit 7f23b371ae

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);