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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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