mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
e74661f509
* refactor: resolve circular reference of Checkbox * chore: add export
16 lines
416 B
TypeScript
16 lines
416 B
TypeScript
import React from 'react';
|
|
import type { CheckboxOptionType } from './Group';
|
|
|
|
export interface CheckboxGroupContext {
|
|
name?: string;
|
|
toggleOption?: (option: CheckboxOptionType) => void;
|
|
value?: any;
|
|
disabled?: boolean;
|
|
registerValue: (val: string) => void;
|
|
cancelValue: (val: string) => void;
|
|
}
|
|
|
|
const GroupContext = React.createContext<CheckboxGroupContext | null>(null);
|
|
|
|
export default GroupContext;
|