chore(form): simplify cssr

This commit is contained in:
07akioni 2020-11-16 01:12:19 +08:00
parent cb21b1d8a9
commit 4db3125fe6

View File

@ -34,14 +34,10 @@ export default c([
]) ])
]), ]),
cTB('form-item', { cTB('form-item', {
raw: ` width: '100%'
width: 100%;
`
}, [ }, [
cM('top-labelled', { cM('top-labelled', {
raw: ` marginRight: '18px'
margin-right: 18px;
`
}, [ }, [
cB('form-item-label', { cB('form-item-label', {
raw: ` raw: `
@ -67,21 +63,15 @@ export default c([
` `
}), }),
cB('form-item-control', { cB('form-item-control', {
raw: ` flexGrow: 1
flex-grow: 1;
`
}) })
]), ]),
cM('right-label-aligned', [ cM('right-label-aligned', [
cB('form-item-label', { cB('form-item-label', {
raw: ` textAlign: 'right'
text-align: right;
`
}, [ }, [
c('&::after', { c('&::after', {
raw: ` display: 'none'
display: none;
`
}) })
]) ])
]), ]),
@ -128,11 +118,8 @@ export default c([
color: labelTextColor color: labelTextColor
}, [ }, [
c('&::after', { c('&::after', {
raw: ` transition: `color .3s ${cubicBezierEaseInOut}`
transition: color .3s ${cubicBezierEaseInOut};
`
}) })
]), ]),
cB('form-item-feedback-wrapper', { cB('form-item-feedback-wrapper', {
raw: ` raw: `