types(CheckboxGroup): toggleAll should allow boolean type (#8133)

This commit is contained in:
neverland
2021-02-11 12:21:57 +08:00
committed by GitHub
parent 58cb5b6d6b
commit 1019463e89

View File

@@ -9,10 +9,12 @@ const [createComponent, bem] = createNamespace('checkbox-group');
export const CHECKBOX_GROUP_KEY = 'vanCheckboxGroup';
export type CheckboxGroupToggleAllOptions = {
checked?: boolean;
skipDisabled?: boolean;
};
export type CheckboxGroupToggleAllOptions =
| boolean
| {
checked?: boolean;
skipDisabled?: boolean;
};
export type CheckboxGroupProvide = CheckerParent & {
props: {