RadioGroup.d.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
  2. import type { RadioShape } from '../radio';
  3. import type { CheckerDirection } from '../checkbox/Checker';
  4. export type RadioGroupDirection = CheckerDirection;
  5. export declare const radioGroupProps: {
  6. shape: PropType<RadioShape>;
  7. disabled: BooleanConstructor;
  8. iconSize: (NumberConstructor | StringConstructor)[];
  9. direction: PropType<RadioGroupDirection>;
  10. modelValue: PropType<unknown>;
  11. checkedColor: StringConstructor;
  12. };
  13. export type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;
  14. export type RadioGroupProvide = {
  15. props: RadioGroupProps;
  16. updateValue: (value: unknown) => void;
  17. };
  18. export declare const RADIO_KEY: InjectionKey<RadioGroupProvide>;
  19. declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
  20. shape: PropType<RadioShape>;
  21. disabled: BooleanConstructor;
  22. iconSize: (NumberConstructor | StringConstructor)[];
  23. direction: PropType<RadioGroupDirection>;
  24. modelValue: PropType<unknown>;
  25. checkedColor: StringConstructor;
  26. }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<ExtractPropTypes<{
  27. shape: PropType<RadioShape>;
  28. disabled: BooleanConstructor;
  29. iconSize: (NumberConstructor | StringConstructor)[];
  30. direction: PropType<RadioGroupDirection>;
  31. modelValue: PropType<unknown>;
  32. checkedColor: StringConstructor;
  33. }>> & Readonly<{
  34. onChange?: ((...args: any[]) => any) | undefined;
  35. "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
  36. }>, {
  37. disabled: boolean;
  38. }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
  39. export default _default;