fix: fix space duplicated key (#7048)
parent
72b8d09b92
commit
0abcd25b2a
|
@ -107,7 +107,10 @@ const Space = defineComponent({
|
||||||
style={[style.value, attrs.style as CSSProperties]}
|
style={[style.value, attrs.style as CSSProperties]}
|
||||||
>
|
>
|
||||||
{items.map((child, index) => {
|
{items.map((child, index) => {
|
||||||
const originIndex = children.indexOf(child);
|
let originIndex = children.indexOf(child);
|
||||||
|
if (originIndex === -1) {
|
||||||
|
originIndex = `$$space-${index}`;
|
||||||
|
}
|
||||||
let itemStyle: CSSProperties = {};
|
let itemStyle: CSSProperties = {};
|
||||||
if (!supportFlexGap.value) {
|
if (!supportFlexGap.value) {
|
||||||
if (direction === 'vertical') {
|
if (direction === 'vertical') {
|
||||||
|
|
Loading…
Reference in New Issue