We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72b8d09 commit 0abcd25Copy full SHA for 0abcd25
components/space/index.tsx
@@ -107,7 +107,10 @@ const Space = defineComponent({
107
style={[style.value, attrs.style as CSSProperties]}
108
>
109
{items.map((child, index) => {
110
- const originIndex = children.indexOf(child);
+ let originIndex = children.indexOf(child);
111
+ if (originIndex === -1) {
112
+ originIndex = `$$space-${index}`;
113
+ }
114
let itemStyle: CSSProperties = {};
115
if (!supportFlexGap.value) {
116
if (direction === 'vertical') {
0 commit comments