Group.d.ts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import type { PropType, ExtractPropTypes } from 'vue';
  2. import type { RadioChangeEvent, RadioGroupButtonStyle, RadioGroupOptionType } from './interface';
  3. declare const RadioGroupSizeTypes: ["large", "default", "small"];
  4. export declare type RadioGroupSize = typeof RadioGroupSizeTypes[number];
  5. export declare type RadioGroupOption = RadioGroupOptionType;
  6. export declare type RadioGroupChildOption = {
  7. label?: any;
  8. value: any;
  9. disabled?: boolean;
  10. };
  11. export declare const radioGroupProps: () => {
  12. prefixCls: StringConstructor;
  13. value: import("vue-types").VueTypeValidableDef<any>;
  14. size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
  15. options: {
  16. type: PropType<(string | number | RadioGroupChildOption)[]>;
  17. };
  18. disabled: {
  19. type: BooleanConstructor;
  20. default: any;
  21. };
  22. name: StringConstructor;
  23. buttonStyle: {
  24. type: PropType<RadioGroupButtonStyle>;
  25. default: string;
  26. };
  27. id: StringConstructor;
  28. optionType: {
  29. type: PropType<RadioGroupOptionType>;
  30. default: string;
  31. };
  32. onChange: PropType<(e: RadioChangeEvent) => void>;
  33. 'onUpdate:value': PropType<(val: any) => void>;
  34. };
  35. export declare type RadioGroupProps = Partial<ExtractPropTypes<ReturnType<typeof radioGroupProps>>>;
  36. declare const _default: import("vue").DefineComponent<{
  37. prefixCls: StringConstructor;
  38. value: import("vue-types").VueTypeValidableDef<any>;
  39. size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
  40. options: {
  41. type: PropType<(string | number | RadioGroupChildOption)[]>;
  42. };
  43. disabled: {
  44. type: BooleanConstructor;
  45. default: any;
  46. };
  47. name: StringConstructor;
  48. buttonStyle: {
  49. type: PropType<RadioGroupButtonStyle>;
  50. default: string;
  51. };
  52. id: StringConstructor;
  53. optionType: {
  54. type: PropType<RadioGroupOptionType>;
  55. default: string;
  56. };
  57. onChange: PropType<(e: RadioChangeEvent) => void>;
  58. 'onUpdate:value': PropType<(val: any) => void>;
  59. }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
  60. prefixCls: StringConstructor;
  61. value: import("vue-types").VueTypeValidableDef<any>;
  62. size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
  63. options: {
  64. type: PropType<(string | number | RadioGroupChildOption)[]>;
  65. };
  66. disabled: {
  67. type: BooleanConstructor;
  68. default: any;
  69. };
  70. name: StringConstructor;
  71. buttonStyle: {
  72. type: PropType<RadioGroupButtonStyle>;
  73. default: string;
  74. };
  75. id: StringConstructor;
  76. optionType: {
  77. type: PropType<RadioGroupOptionType>;
  78. default: string;
  79. };
  80. onChange: PropType<(e: RadioChangeEvent) => void>;
  81. 'onUpdate:value': PropType<(val: any) => void>;
  82. }>>, {
  83. disabled: boolean;
  84. buttonStyle: RadioGroupButtonStyle;
  85. optionType: RadioGroupOptionType;
  86. }>;
  87. export default _default;