@@ -57,35 +57,26 @@ export default (resolve, reject) => {
57
57
} )
58
58
59
59
// Supports classes like: .col-sm, .col-md-6, .col-lg-auto
60
- const breakpointCol = breakpoints . filter ( Boolean ) . reduce (
61
- ( propMap , breakpoint ) => {
62
- if ( breakpoint ) {
63
- // We filter out the '' breakpoint (xs), as making a prop name ''
64
- // would not work. The `cols` prop is used for `xs`
65
- propMap [ breakpoint ] = boolStrNum ( )
66
- }
67
- return propMap
68
- } ,
69
- create ( null )
70
- )
60
+ const breakpointCol = breakpoints . filter ( Boolean ) . reduce ( ( propMap , breakpoint ) => {
61
+ if ( breakpoint ) {
62
+ // We filter out the '' breakpoint (xs), as making a prop name ''
63
+ // would not work. The `cols` prop is used for `xs`
64
+ propMap [ breakpoint ] = boolStrNum ( )
65
+ }
66
+ return propMap
67
+ } , create ( null ) )
71
68
72
69
// Supports classes like: .offset-3, .offset-md-1, .offset-lg-12
73
- const breakpointOffset = breakpoints . reduce (
74
- ( propMap , breakpoint ) => {
75
- propMap [ suffixPropName ( breakpoint , 'offset' ) ] = strNum ( )
76
- return propMap
77
- } ,
78
- create ( null )
79
- )
70
+ const breakpointOffset = breakpoints . reduce ( ( propMap , breakpoint ) => {
71
+ propMap [ suffixPropName ( breakpoint , 'offset' ) ] = strNum ( )
72
+ return propMap
73
+ } , create ( null ) )
80
74
81
75
// Supports classes like: .order-3, .order-md-1, .order-lg-12
82
- const breakpointOrder = breakpoints . reduce (
83
- ( propMap , breakpoint ) => {
84
- propMap [ suffixPropName ( breakpoint , 'order' ) ] = strNum ( )
85
- return propMap
86
- } ,
87
- create ( null )
88
- )
76
+ const breakpointOrder = breakpoints . reduce ( ( propMap , breakpoint ) => {
77
+ propMap [ suffixPropName ( breakpoint , 'order' ) ] = strNum ( )
78
+ return propMap
79
+ } , create ( null ) )
89
80
90
81
// For loop doesn't need to check hasOwnProperty
91
82
// when using an object created from null
@@ -123,7 +114,8 @@ export default (resolve, reject) => {
123
114
alignSelf : {
124
115
type : String ,
125
116
default : null ,
126
- validator : str => arrayIncludes ( [ 'auto' , 'start' , 'end' , 'center' , 'baseline' , 'stretch' ] , str )
117
+ validator : str =>
118
+ arrayIncludes ( [ 'auto' , 'start' , 'end' , 'center' , 'baseline' , 'stretch' ] , str )
127
119
}
128
120
} ,
129
121
render ( h , { props, data, children } ) {
0 commit comments