Wrapper 可设置成 无
This commit is contained in:
parent
2f5b47751c
commit
16faff306c
|
@ -20,4 +20,8 @@
|
||||||
&--xl {
|
&--xl {
|
||||||
padding: px2rem(50px);
|
padding: px2rem(50px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&--none {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ export default class Wrapper extends React.Component<WrapperProps, object> {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cx('Wrapper', size && size !== 'none' ? `Wrapper${size ? `--${size}` : ''}` : '', className)}
|
className={cx('Wrapper', size ? `Wrapper--${size}` : '', className)}
|
||||||
>
|
>
|
||||||
{this.renderBody()}
|
{this.renderBody()}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue