Wrapper 可设置成 无

This commit is contained in:
liaoxuezhi 2019-07-12 23:02:51 +08:00
parent 2f5b47751c
commit 16faff306c
2 changed files with 5 additions and 1 deletions

View File

@ -20,4 +20,8 @@
&--xl {
padding: px2rem(50px);
}
&--none {
padding: 0;
}
}

View File

@ -33,7 +33,7 @@ export default class Wrapper extends React.Component<WrapperProps, object> {
return (
<div
className={cx('Wrapper', size && size !== 'none' ? `Wrapper${size ? `--${size}` : ''}` : '', className)}
className={cx('Wrapper', size ? `Wrapper--${size}` : '', className)}
>
{this.renderBody()}
</div>