Browse Source

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
pull/27236/head
Tom Xu 4 years ago
committed by GitHub
parent
commit
322098487f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      components/checkbox/Group.tsx
  2. 15
      components/checkbox/__tests__/type.test.tsx

1
components/checkbox/Group.tsx

@ -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 {

15
components/checkbox/__tests__/type.test.tsx

@ -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();
});
});
Loading…
Cancel
Save