fix: 修复编辑器中渲染 list 时提示 key 重复 warning (#9562)

This commit is contained in:
liaoxuezhi 2024-01-31 12:45:05 +08:00 committed by GitHub
parent 726c7e861f
commit 5a49c43a3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -161,7 +161,7 @@ export function makeWrapper(
// $$id 变化,渲染器最好也变化
if (node?.$$id) {
props = props || {}; // props 可能为 undefined
props.key = node.$$id || props.key;
props.key = `${props.key}-${node.$$id}`;
}
return render(region, node, {...props, $$editor: info});

View File

@ -149,7 +149,6 @@
}
.#{$ns}PopOver.#{$ns}Select-popover {
min-width: px2rem(120px);
&.#{$ns}PopOver--v-top {
margin-top: px2rem(4px);
}
@ -591,7 +590,7 @@
border: var(--Form-select-outer-borderWidth) solid
var(--Form-select-outer-borderColor);
box-shadow: var(--Form-select-outer-boxShadow);
// min-width: px2rem(100px);
min-width: px2rem(120px);
// PopOver 上已经配置了这个要是配置就会覆盖所以先干掉好了
// z-index: 10;