xdesign-vue-next
Version:
XDesign Component for vue-next
23 lines (22 loc) • 704 B
TypeScript
import { ComputedRef, InjectionKey } from 'vue';
import { TdCheckboxGroupProps, TdCheckboxProps } from './type';
export interface CheckboxGroupInjectData {
name?: string;
isCheckAll: boolean;
maxExceeded: boolean;
disabled: boolean;
indeterminate: boolean;
checkedValues: TdCheckboxGroupProps['value'];
handleCheckboxChange: (data: {
checked: boolean;
e: Event;
option: TdCheckboxProps;
}) => void;
onCheckedChange: (p: {
checked: boolean;
checkAll: boolean;
e: Event;
option: TdCheckboxProps;
}) => void;
}
export declare const CheckboxGroupInjectionKey: InjectionKey<ComputedRef<CheckboxGroupInjectData>>;