@@ -16,8 +16,9 @@ export const wrapperComputedProps = {
1616 wrapperClasses ( ) {
1717 if ( this . haveWrapper )
1818 return [ this . addWrapperClasses , {
19- [ this . horizontal . input || 'col-10' ] : this . isHorizontal ,
20- 'input-group' : this . haveInputGroup
19+ [ this . horizontal . input || 'col-sm-9' ] : this . isHorizontal ,
20+ 'input-group' : this . haveInputGroup ,
21+ [ `input-group-${ this . size } ` ] : this . haveCustomSize
2122 } ]
2223 }
2324 }
@@ -50,25 +51,27 @@ export const watchValue = {
5051export const classesComputedProps = {
5152 computed : {
5253 haveCustomSize ( ) {
53- return [ '' , ' sm', 'lg' ] . includes ( this . size ) && Boolean ( this . size )
54+ return [ 'sm' , 'lg' ] . includes ( this . size )
5455 } ,
5556 computedClasses ( ) {
5657 return [
57- this . isHorizontal ? 'form-row' : 'form-group' ,
58+ 'form-group' ,
5859 {
59- 'was-validated' : this . wasValidated
60+ 'was-validated' : this . wasValidated ,
61+ 'form-row' : this . isHorizontal
6062 }
6163 ]
6264 } ,
6365 labelClasses ( ) {
6466 return [ this . addLabelClasses , {
6567 'col-form-label' : this . isHorizontal ,
66- [ this . horizontal . label || 'col-2 ' ] : this . isHorizontal ,
68+ [ this . horizontal . label || 'col-sm-3 ' ] : this . isHorizontal ,
6769 [ `col-form-label-${ this . size } ` ] : this . haveCustomSize ,
6870 } ]
6971 } ,
7072 customSizeClass ( ) {
71- return this . haveCustomSize ? `form-control-${ this . size } ` : null
73+ return this . haveCustomSize && ! this . haveWrapper ?
74+ `form-control-${ this . size } ` : null
7275 } ,
7376 inputClasses ( ) {
7477 return [
0 commit comments