mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
fix: 修复编辑器中渲染 list 时提示 key 重复 warning (#9562)
This commit is contained in:
parent
726c7e861f
commit
5a49c43a3d
@ -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});
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user