File tree 3 files changed +12
-12
lines changed
3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ import classNames from 'classnames';
7
7
*/
8
8
export default class PanelBody extends React . Component {
9
9
render ( ) {
10
- const { children, ...others } = this . props ;
11
- const className = classNames ( {
10
+ const { className , children, ...others } = this . props ;
11
+ const cls = classNames ( {
12
12
'weui-panel__bd' : true ,
13
13
[ className ] : className
14
14
} ) ;
15
15
16
16
return (
17
- < div className = { className } { ...others } > { children } </ div >
17
+ < div className = { cls } { ...others } > { children } </ div >
18
18
) ;
19
19
}
20
- } ;
20
+ } ;
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ import classNames from 'classnames';
7
7
*/
8
8
export default class PanelFooter extends React . Component {
9
9
render ( ) {
10
- const { children, ...others } = this . props ;
10
+ const { className , children, ...others } = this . props ;
11
11
const Component = this . props . href ? 'a' : 'div' ;
12
- const className = classNames ( {
12
+ const cls = classNames ( {
13
13
'weui-panel__ft' : true ,
14
14
[ className ] : className
15
15
} ) ;
16
16
17
17
return (
18
- < Component className = { className } { ...others } > { children } </ Component >
18
+ < Component className = { cls } { ...others } > { children } </ Component >
19
19
) ;
20
20
}
21
- } ;
21
+ } ;
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ import classNames from 'classnames';
7
7
*/
8
8
export default class PanelHeader extends React . Component {
9
9
render ( ) {
10
- const { children, ...others } = this . props ;
11
- const className = classNames ( {
10
+ const { className , children, ...others } = this . props ;
11
+ const cls = classNames ( {
12
12
'weui-panel__hd' : true ,
13
13
[ className ] : className
14
14
} ) ;
15
15
16
16
return (
17
- < div className = { className } { ...others } > { children } </ div >
17
+ < div className = { cls } { ...others } > { children } </ div >
18
18
) ;
19
19
}
20
- } ;
20
+ } ;
You can’t perform that action at this time.
0 commit comments