antd-hz
Version:
华卓科技基于 antd 5.0 定制的组件库
13 lines (12 loc) • 500 B
TypeScript
import React from 'react';
import type { CheckboxOptionType, CheckboxValueType } from './Group';
export interface CheckboxGroupContext<T extends CheckboxValueType = CheckboxValueType> {
name?: string;
toggleOption?: (option: CheckboxOptionType<T>) => void;
value?: any;
disabled?: boolean;
registerValue: (val: T) => void;
cancelValue: (val: T) => void;
}
declare const GroupContext: React.Context<CheckboxGroupContext<CheckboxValueType> | null>;
export default GroupContext;