amis-rpc-design/node_modules/antd/es/checkbox/GroupContext.d.ts
2023-10-07 19:42:30 +08:00

13 lines
420 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;
}
declare const GroupContext: React.Context<CheckboxGroupContext | null>;
export default GroupContext;