fix(space): use display flex on item wrapper

nor its item wrapper won't has same size as its item
This commit is contained in:
07akioni 2020-10-21 17:10:15 +08:00
parent e33056c2e0
commit 76e6766db2

View File

@ -57,7 +57,7 @@ export default {
'small',
'medium',
'large'
].includes(value) || typeof size === 'number'
].includes(value) || typeof value === 'number'
},
default: 'medium'
}
@ -86,6 +86,7 @@ export default {
}
}, children.map((child, index) => h('div', {
style: {
display: 'flex',
marginRight: index !== lastIndex ? marginRight : null,
marginBottom: index !== lastIndex ? marginBottom : null
}