UNPKG

hongluan-ui

Version:
106 lines (105 loc) 2.91 kB
import type { ExtractPropTypes, PropType } from 'vue'; import type checkboxGroup from './checkbox-group.vue'; import type { CheckboxValueType } from './checkbox'; export declare type CheckboxGroupValueType = Exclude<CheckboxValueType, boolean>[]; export declare const checkboxGroupProps: { ariaLabel: StringConstructor; id: { type: StringConstructor; default: any; }; /** * @deprecated label for screen reader */ label: { type: StringConstructor; default: any; }; /** * @description whether to trigger form validation */ validateEvent: { type: BooleanConstructor; default: boolean; }; dir: { type: PropType<"horizontal" | "vertical">; default: string; }; merge: { type: BooleanConstructor; default: boolean; }; deepMerge: { type: BooleanConstructor; default: boolean; }; indent: { type: (BooleanConstructor | StringConstructor)[]; default: boolean; }; /** * @description binding value */ gap: StringConstructor; gapX: StringConstructor; gapY: StringConstructor; full: { type: (BooleanConstructor | StringConstructor)[]; default: boolean; }; wrap: { type: BooleanConstructor; default: boolean; }; align: { type: StringConstructor; /** * @description minimum number of checkbox checked */ default: string; }; block: { type: BooleanConstructor; default: boolean; }; size: { type: PropType<"xxxs" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl">; validator: (val: string) => boolean; }; disabled: BooleanConstructor; fill: BooleanConstructor; type: { type: PropType<"success" | "info" | "warning" | "danger" | "link" | "primary">; validator: (val: string) => boolean; }; /** * @description binding value */ modelValue: { type: PropType<CheckboxGroupValueType>; default: () => any[]; }; bold: BooleanConstructor; custom: BooleanConstructor; round: BooleanConstructor; /** * @description minimum number of checkbox checked */ min: { type: NumberConstructor; default: any; }; /** * @description maximum number of checkbox checked */ max: { type: NumberConstructor; default: any; }; }; export declare const checkboxGroupEmits: { "update:modelValue": (val: CheckboxGroupValueType) => boolean; change: (val: CheckboxValueType[]) => boolean; }; export declare type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>; export declare type CheckboxGroupEmits = typeof checkboxGroupEmits; export declare type CheckboxGroupInstance = InstanceType<typeof checkboxGroup>;