feat(CheckboxGroup): toggleAll support skipDisabled option (#7644)

This commit is contained in:
neverland
2020-11-26 19:34:51 +08:00
committed by GitHub
parent 9f2187f021
commit 488d90aab9
5 changed files with 78 additions and 16 deletions

View File

@@ -1,5 +1,10 @@
import { VanComponent } from './component';
export type ToggleAllOptions = {
checked?: boolean;
skipDisabled?: boolean;
};
export class CheckboxGroup extends VanComponent {
toggleAll(checked?: boolean): void;
toggleAll(options?: boolean | ToggleAllOptions): void;
}