UNPKG

691 BTypeScriptView Raw
1import type { ComponentPublicInstance } from 'vue';
2import type { CheckboxGroupProps } from './CheckboxGroup';
3import type { CheckerParent, CheckerDirection } from '../checkbox/Checker';
4export type CheckboxGroupDirection = CheckerDirection;
5export type CheckboxGroupToggleAllOptions = boolean | {
6 checked?: boolean;
7 skipDisabled?: boolean;
8};
9export type CheckboxGroupExpose = {
10 toggleAll: (options?: CheckboxGroupToggleAllOptions) => void;
11};
12export type CheckboxGroupInstance = ComponentPublicInstance<CheckboxGroupProps, CheckboxGroupExpose>;
13export type CheckboxGroupProvide = CheckerParent & {
14 props: CheckboxGroupProps;
15 updateValue: (value: unknown[]) => void;
16};