mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
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:
parent
ff1b5c279d
commit
322098487f
@ -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
Normal file
15
components/checkbox/__tests__/type.test.tsx
Normal 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();
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user