mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
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:
parent
e33056c2e0
commit
76e6766db2
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user