feat: allow for multifield inputs in EditableTable

This commit is contained in:
Sérgio Salgado 2023-05-29 17:47:27 +01:00
parent 6fbb2b4c5b
commit e194509d10
3 changed files with 120 additions and 73 deletions

View file

@ -25,6 +25,21 @@ export default {
suffix: {
margin: [[0, 0, 0, 7]]
},
withPrefix: ({ textAlign }) => {
const justifyContent = textAlign === 'right' ? 'flex-end' : textAlign
return {
display: 'flex',
alignItems: 'center',
justifyContent
}
},
prefix: {
margin: [[0, 7, 0, 0]]
},
size: ({ size }) => bySize(size),
bold
bold,
fields: {
display: 'flex',
flexDirection: 'column'
}
}