checkbox-group.d.ts 1.7 KB

12345678910111213141516171819202122232425262728
  1. import type { ExtractPropTypes } from 'vue';
  2. import type checkboxGroup from './checkbox-group.vue';
  3. import type { CheckboxValueType } from './checkbox';
  4. export type CheckboxGroupValueType = Exclude<CheckboxValueType, boolean>[];
  5. export declare const checkboxGroupProps: {
  6. readonly ariaLabel: StringConstructor;
  7. readonly modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => CheckboxGroupValueType) | (() => CheckboxGroupValueType) | ((new (...args: any[]) => CheckboxGroupValueType) | (() => CheckboxGroupValueType))[], unknown, unknown, () => never[], boolean>;
  8. readonly disabled: BooleanConstructor;
  9. readonly min: NumberConstructor;
  10. readonly max: NumberConstructor;
  11. readonly size: {
  12. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
  13. readonly required: false;
  14. readonly validator: ((val: unknown) => boolean) | undefined;
  15. __epPropKey: true;
  16. };
  17. readonly fill: StringConstructor;
  18. readonly textColor: StringConstructor;
  19. readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
  20. readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  21. };
  22. export declare const checkboxGroupEmits: {
  23. "update:modelValue": (val: CheckboxGroupValueType) => boolean;
  24. change: (val: CheckboxValueType[]) => boolean;
  25. };
  26. export type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;
  27. export type CheckboxGroupEmits = typeof checkboxGroupEmits;
  28. export type CheckboxGroupInstance = InstanceType<typeof checkboxGroup> & unknown;