未验证 提交 32209848 编写于 作者: T Tom Xu 提交者: GitHub

fix: Checkbox Group TS typo (#27231)

* fix: Checkbox Group TS typo

* Revert "fix: Checkbox Group TS typo"

This reverts commit 0898f84ff73cee9532f7a7bb15f1fe932be16112.

* Update Group.tsx

* Create type.test.tsx
上级 ff1b5c27
......@@ -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 {
......
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();
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册