Group.d.ts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. import type { ExtractPropTypes } from 'vue';
  2. import type { RadioChangeEvent, RadioGroupButtonStyle, RadioGroupOptionType } from './interface';
  3. declare const RadioGroupSizeTypes: readonly ["large", "default", "small"];
  4. export type RadioGroupSize = (typeof RadioGroupSizeTypes)[number];
  5. export type RadioGroupOption = RadioGroupOptionType;
  6. export 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: {
  15. type: import("vue").PropType<"default" | "small" | "large">;
  16. default: "default" | "small" | "large";
  17. };
  18. options: {
  19. type: import("vue").PropType<(string | number | RadioGroupChildOption)[]>;
  20. default: (string | number | RadioGroupChildOption)[];
  21. };
  22. disabled: {
  23. type: BooleanConstructor;
  24. default: boolean;
  25. };
  26. name: StringConstructor;
  27. buttonStyle: {
  28. type: import("vue").PropType<RadioGroupButtonStyle>;
  29. default: RadioGroupButtonStyle;
  30. };
  31. id: StringConstructor;
  32. optionType: {
  33. type: import("vue").PropType<RadioGroupOptionType>;
  34. default: RadioGroupOptionType;
  35. };
  36. onChange: {
  37. type: import("vue").PropType<(e: RadioChangeEvent) => void>;
  38. default: (e: RadioChangeEvent) => void;
  39. };
  40. 'onUpdate:value': {
  41. type: import("vue").PropType<(val: any) => void>;
  42. default: (val: any) => void;
  43. };
  44. };
  45. export type RadioGroupProps = Partial<ExtractPropTypes<ReturnType<typeof radioGroupProps>>>;
  46. declare const _default: import("vue").DefineComponent<{
  47. prefixCls: StringConstructor;
  48. value: import("vue-types").VueTypeValidableDef<any>;
  49. size: {
  50. type: import("vue").PropType<"default" | "small" | "large">;
  51. default: "default" | "small" | "large";
  52. };
  53. options: {
  54. type: import("vue").PropType<(string | number | RadioGroupChildOption)[]>;
  55. default: (string | number | RadioGroupChildOption)[];
  56. };
  57. disabled: {
  58. type: BooleanConstructor;
  59. default: boolean;
  60. };
  61. name: StringConstructor;
  62. buttonStyle: {
  63. type: import("vue").PropType<RadioGroupButtonStyle>;
  64. default: RadioGroupButtonStyle;
  65. };
  66. id: StringConstructor;
  67. optionType: {
  68. type: import("vue").PropType<RadioGroupOptionType>;
  69. default: RadioGroupOptionType;
  70. };
  71. onChange: {
  72. type: import("vue").PropType<(e: RadioChangeEvent) => void>;
  73. default: (e: RadioChangeEvent) => void;
  74. };
  75. 'onUpdate:value': {
  76. type: import("vue").PropType<(val: any) => void>;
  77. default: (val: any) => void;
  78. };
  79. }, () => import("../_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
  80. prefixCls: StringConstructor;
  81. value: import("vue-types").VueTypeValidableDef<any>;
  82. size: {
  83. type: import("vue").PropType<"default" | "small" | "large">;
  84. default: "default" | "small" | "large";
  85. };
  86. options: {
  87. type: import("vue").PropType<(string | number | RadioGroupChildOption)[]>;
  88. default: (string | number | RadioGroupChildOption)[];
  89. };
  90. disabled: {
  91. type: BooleanConstructor;
  92. default: boolean;
  93. };
  94. name: StringConstructor;
  95. buttonStyle: {
  96. type: import("vue").PropType<RadioGroupButtonStyle>;
  97. default: RadioGroupButtonStyle;
  98. };
  99. id: StringConstructor;
  100. optionType: {
  101. type: import("vue").PropType<RadioGroupOptionType>;
  102. default: RadioGroupOptionType;
  103. };
  104. onChange: {
  105. type: import("vue").PropType<(e: RadioChangeEvent) => void>;
  106. default: (e: RadioChangeEvent) => void;
  107. };
  108. 'onUpdate:value': {
  109. type: import("vue").PropType<(val: any) => void>;
  110. default: (val: any) => void;
  111. };
  112. }>>, {
  113. size: "default" | "small" | "large";
  114. onChange: (e: RadioChangeEvent) => void;
  115. disabled: boolean;
  116. 'onUpdate:value': (val: any) => void;
  117. options: (string | number | RadioGroupChildOption)[];
  118. buttonStyle: RadioGroupButtonStyle;
  119. optionType: RadioGroupOptionType;
  120. }, {}>;
  121. export default _default;