Skip to content

Commit eac8321

Browse files
authored
feat(Checkbox): add support of multiple content
close #170
1 parent 94f1112 commit eac8321

File tree

8 files changed

+2013
-1124
lines changed

8 files changed

+2013
-1124
lines changed

src/components/Checkbox/Checkbox.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import createReactContext from 'create-react-context';
55
import itemDecorator from 'src/decorators/selectableWithStore/item';
66
import uncontrolledDecorator from 'src/decorators/uncontrolled';
77

8-
import { CheckboxWrap, CheckboxIcon, CheckboxCardWrap } from './style';
8+
import { CheckboxWrap, CheckboxIcon, CheckboxCardWrap, CheckboxContentWrap } from './style';
99

1010
const Size = ['sm', 'md', 'lg'];
1111
const StyleType = ['default', 'card'];
@@ -68,7 +68,7 @@ class Checkbox extends Component {
6868
onClick={(...args) => this.onClick(props, ...args)}
6969
>
7070
<CheckboxIcon disabled={disabled} type={checked ? 'checkbox-ed' : 'checkbox'} />
71-
{children}
71+
<CheckboxContentWrap>{children}</CheckboxContentWrap>
7272
</CheckboxWrap>
7373
);
7474
}

0 commit comments

Comments
 (0)