Merge remote-tracking branch 'origin/develop' into release/1.0.80

This commit is contained in:
lihao.ylh 2022-03-31 11:24:29 +08:00
commit 5431363e43

View File

@ -527,7 +527,7 @@ export default function baseRendererFactory() {
engine?.props?.onCompGetCtx(schema, scope);
}
props.key = props.key || `${schema.__ctx.lceKey}_${schema.__ctx.idx || 0}_${idx !== undefined ? idx : ''}`;
} else if (typeof idx === 'number' && !props.key) {
} else if ((typeof idx === 'number' || typeof idx === 'string') && !props.key) {
// 仅当循环场景走这里
props.key = idx;
}