fix: Checkbox Group TS typo (#27231)

* fix: Checkbox Group TS typo

* Revert "fix: Checkbox Group TS typo"

This reverts commit 0898f84ff7.

* Update Group.tsx

* Create type.test.tsx
This commit is contained in:
Tom Xu 2020-10-19 16:42:07 +08:00 committed by GitHub
parent ff1b5c279d
commit 322098487f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -27,6 +27,7 @@ export interface CheckboxGroupProps extends AbstractCheckboxGroupProps {
defaultValue?: Array<CheckboxValueType>;
value?: Array<CheckboxValueType>;
onChange?: (checkedValue: Array<CheckboxValueType>) => void;
children?: React.ReactNode;
}
export interface CheckboxGroupContext {

View File

@ -0,0 +1,15 @@
import * as React from 'react';
import Checkbox from '..';
import Input from '../../input';
describe('Checkbox.typescript', () => {
it('Checkbox.Group', () => {
const group = (
<Checkbox.Group>
<Input />
</Checkbox.Group>
);
expect(group).toBeTruthy();
});
});