File tree 2 files changed +11
-5
lines changed
packages/react-layouts/src/Columns
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import PropTypes from 'prop-types' ;
3
3
import classNames from 'classnames' ;
4
- // import './Columns.scss';
4
+ import './Columns.scss' ;
5
5
6
6
const columnsPropTypes = {
7
7
children : PropTypes . node ,
@@ -13,7 +13,7 @@ const columnsDefaultProps = {
13
13
} ;
14
14
15
15
const Columns = ( { children, className } ) => (
16
- < div className = { classNames ( 'columns' , className ) } > { children } </ div >
16
+ < div className = { classNames ( 'rc- columns' , className ) } > { children } </ div >
17
17
) ;
18
18
19
19
Columns . propTypes = columnsPropTypes ;
@@ -31,7 +31,9 @@ const columnDefaultProps = {
31
31
} ;
32
32
33
33
const Column = ( { children, className, fixed } ) => (
34
- < div className = { classNames ( 'column' , className , { fixed } ) } > { children } </ div >
34
+ < div className = { classNames ( 'rc-column' , className , { fixed } ) } >
35
+ { children }
36
+ </ div >
35
37
) ;
36
38
37
39
Column . propTypes = columnPropTypes ;
Original file line number Diff line number Diff line change 1
- .columns {
1
+ .rc- columns {
2
2
display : flex ;
3
3
flex-direction : row ;
4
4
}
5
5
6
- .column {
6
+ .rc- column {
7
7
flex-grow : 1 ;
8
8
flex-shrink : 1 ;
9
9
flex-basis : auto ;
10
10
min-width : 0 ;
11
11
12
+ & :empty {
13
+ display : none ;
14
+ }
15
+
12
16
& .fixed {
13
17
flex-grow : 0 ;
14
18
flex-shrink : 0 ;
You can’t perform that action at this time.
0 commit comments