refactor(form-item): fix styles

This commit is contained in:
07akioni 2020-11-17 02:28:08 +08:00
parent 6a9a6b8a58
commit 3a8a986458
2 changed files with 11 additions and 10 deletions

View File

@ -28,10 +28,8 @@ export default c([
lineHeight: pxfy(depx(blankHeight) + 6) lineHeight: pxfy(depx(blankHeight) + 6)
}) })
]), ]),
cB('form-item-control', {
marginBottom: blankHeight
}),
cB('form-item-feedback-wrapper', { cB('form-item-feedback-wrapper', {
minHeight: $local[createKey('feedbackHeight', size)],
fontSize: feedbackFontSize fontSize: feedbackFontSize
}) })
]) ])

View File

@ -2,19 +2,22 @@ export default {
blankHeightSmall: '28px', blankHeightSmall: '28px',
blankHeightMedium: '34px', blankHeightMedium: '34px',
blankHeightLarge: '40px', blankHeightLarge: '40px',
feedbackHeightSmall: '1.25em',
feedbackHeightMedium: '1.25em',
feedbackHeightLarge: '1.25em',
feedbackFontSizeSmall: '13px', feedbackFontSizeSmall: '13px',
feedbackFontSizeMedium: '13px', feedbackFontSizeMedium: '13px',
feedbackFontSizeLarge: '14px', feedbackFontSizeLarge: '14px',
labelFontSizeLeftSmall: '14px', labelFontSizeSmallLeft: '14px',
labelFontSizeLeftMedium: '14px', labelFontSizeMediumLeft: '14px',
labelFontSizeLeftLarge: '15px', labelFontSizeLargeLeft: '15px',
labelFontSizeTopSmall: '13px', labelFontSizeSmallTop: '13px',
labelFontSizeTopMedium: '13px', labelFontSizeMediumTop: '13px',
labelFontSizeTopLarge: '14px', labelFontSizeLargeTop: '14px',
labelHeightSmall: '18px', labelHeightSmall: '18px',
labelHeightMedium: '18px', labelHeightMedium: '18px',
labelHeightLarge: '20px', labelHeightLarge: '20px',
labelPaddingVertical: '0 0 8px 2px', labelPaddingVertical: '0 0 0 2px',
labelPaddingHorizontal: '0 12px 0 0', labelPaddingHorizontal: '0 12px 0 0',
labelTextAlignHorizontal: 'right' labelTextAlignHorizontal: 'right'
} }