CheckboxGroup.d.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
  2. import type { CheckerShape, CheckerDirection } from '../checkbox/Checker';
  3. import type { CheckboxGroupProvide } from './types';
  4. export declare const checkboxGroupProps: {
  5. max: (NumberConstructor | StringConstructor)[];
  6. shape: {
  7. type: PropType<CheckerShape>;
  8. default: CheckerShape;
  9. };
  10. disabled: BooleanConstructor;
  11. iconSize: (NumberConstructor | StringConstructor)[];
  12. direction: PropType<CheckerDirection>;
  13. modelValue: {
  14. type: PropType<unknown[]>;
  15. default: () => never[];
  16. };
  17. checkedColor: StringConstructor;
  18. };
  19. export type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;
  20. export declare const CHECKBOX_GROUP_KEY: InjectionKey<CheckboxGroupProvide>;
  21. declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
  22. max: (NumberConstructor | StringConstructor)[];
  23. shape: {
  24. type: PropType<CheckerShape>;
  25. default: CheckerShape;
  26. };
  27. disabled: BooleanConstructor;
  28. iconSize: (NumberConstructor | StringConstructor)[];
  29. direction: PropType<CheckerDirection>;
  30. modelValue: {
  31. type: PropType<unknown[]>;
  32. default: () => never[];
  33. };
  34. checkedColor: StringConstructor;
  35. }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<ExtractPropTypes<{
  36. max: (NumberConstructor | StringConstructor)[];
  37. shape: {
  38. type: PropType<CheckerShape>;
  39. default: CheckerShape;
  40. };
  41. disabled: BooleanConstructor;
  42. iconSize: (NumberConstructor | StringConstructor)[];
  43. direction: PropType<CheckerDirection>;
  44. modelValue: {
  45. type: PropType<unknown[]>;
  46. default: () => never[];
  47. };
  48. checkedColor: StringConstructor;
  49. }>> & Readonly<{
  50. onChange?: ((...args: any[]) => any) | undefined;
  51. "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
  52. }>, {
  53. disabled: boolean;
  54. shape: CheckerShape;
  55. modelValue: unknown[];
  56. }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
  57. export default _default;