fix: fix space duplicated key (#7048)

pull/7058/head
cc heart 2023-10-23 10:12:26 +08:00 committed by GitHub
parent 72b8d09b92
commit 0abcd25b2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -107,7 +107,10 @@ const Space = defineComponent({
style={[style.value, attrs.style as CSSProperties]}
>
{items.map((child, index) => {
const originIndex = children.indexOf(child);
let originIndex = children.indexOf(child);
if (originIndex === -1) {
originIndex = `$$space-${index}`;
}
let itemStyle: CSSProperties = {};
if (!supportFlexGap.value) {
if (direction === 'vertical') {