Skip to content

Commit

Permalink
fix: 修复编辑器中渲染 list 时提示 key 重复 warning (baidu#9562)
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Jan 31, 2024
1 parent 726c7e8 commit 5a49c43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/amis-editor-core/src/component/factory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down
3 changes: 1 addition & 2 deletions packages/amis-ui/scss/components/form/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@
}

.#{$ns}PopOver.#{$ns}Select-popover {
min-width: px2rem(120px);
&.#{$ns}PopOver--v-top {
margin-top: px2rem(4px);
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5a49c43

Please sign in to comment.