mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
refactor(form-item): fix styles
This commit is contained in:
parent
6a9a6b8a58
commit
3a8a986458
@ -28,10 +28,8 @@ export default c([
|
||||
lineHeight: pxfy(depx(blankHeight) + 6)
|
||||
})
|
||||
]),
|
||||
cB('form-item-control', {
|
||||
marginBottom: blankHeight
|
||||
}),
|
||||
cB('form-item-feedback-wrapper', {
|
||||
minHeight: $local[createKey('feedbackHeight', size)],
|
||||
fontSize: feedbackFontSize
|
||||
})
|
||||
])
|
||||
|
@ -2,19 +2,22 @@ export default {
|
||||
blankHeightSmall: '28px',
|
||||
blankHeightMedium: '34px',
|
||||
blankHeightLarge: '40px',
|
||||
feedbackHeightSmall: '1.25em',
|
||||
feedbackHeightMedium: '1.25em',
|
||||
feedbackHeightLarge: '1.25em',
|
||||
feedbackFontSizeSmall: '13px',
|
||||
feedbackFontSizeMedium: '13px',
|
||||
feedbackFontSizeLarge: '14px',
|
||||
labelFontSizeLeftSmall: '14px',
|
||||
labelFontSizeLeftMedium: '14px',
|
||||
labelFontSizeLeftLarge: '15px',
|
||||
labelFontSizeTopSmall: '13px',
|
||||
labelFontSizeTopMedium: '13px',
|
||||
labelFontSizeTopLarge: '14px',
|
||||
labelFontSizeSmallLeft: '14px',
|
||||
labelFontSizeMediumLeft: '14px',
|
||||
labelFontSizeLargeLeft: '15px',
|
||||
labelFontSizeSmallTop: '13px',
|
||||
labelFontSizeMediumTop: '13px',
|
||||
labelFontSizeLargeTop: '14px',
|
||||
labelHeightSmall: '18px',
|
||||
labelHeightMedium: '18px',
|
||||
labelHeightLarge: '20px',
|
||||
labelPaddingVertical: '0 0 8px 2px',
|
||||
labelPaddingVertical: '0 0 0 2px',
|
||||
labelPaddingHorizontal: '0 12px 0 0',
|
||||
labelTextAlignHorizontal: 'right'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user