Radio.d.ts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. import type { ExtractPropTypes } from 'vue';
  2. import type { RadioChangeEvent } from './interface';
  3. import type { FocusEventHandler, MouseEventHandler } from '../_util/EventInterface';
  4. export declare const radioProps: () => {
  5. prefixCls: StringConstructor;
  6. checked: {
  7. type: BooleanConstructor;
  8. default: boolean;
  9. };
  10. disabled: {
  11. type: BooleanConstructor;
  12. default: boolean;
  13. };
  14. isGroup: {
  15. type: BooleanConstructor;
  16. default: boolean;
  17. };
  18. value: import("vue-types").VueTypeValidableDef<any>;
  19. name: StringConstructor;
  20. id: StringConstructor;
  21. autofocus: {
  22. type: BooleanConstructor;
  23. default: boolean;
  24. };
  25. onChange: {
  26. type: import("vue").PropType<(event: RadioChangeEvent) => void>;
  27. default: (event: RadioChangeEvent) => void;
  28. };
  29. onFocus: {
  30. type: import("vue").PropType<FocusEventHandler>;
  31. default: FocusEventHandler;
  32. };
  33. onBlur: {
  34. type: import("vue").PropType<FocusEventHandler>;
  35. default: FocusEventHandler;
  36. };
  37. onClick: {
  38. type: import("vue").PropType<MouseEventHandler>;
  39. default: MouseEventHandler;
  40. };
  41. 'onUpdate:checked': {
  42. type: import("vue").PropType<(checked: boolean) => void>;
  43. default: (checked: boolean) => void;
  44. };
  45. 'onUpdate:value': {
  46. type: import("vue").PropType<(checked: boolean) => void>;
  47. default: (checked: boolean) => void;
  48. };
  49. };
  50. export type RadioProps = Partial<ExtractPropTypes<ReturnType<typeof radioProps>>>;
  51. declare const _default: import("vue").DefineComponent<{
  52. prefixCls: StringConstructor;
  53. checked: {
  54. type: BooleanConstructor;
  55. default: boolean;
  56. };
  57. disabled: {
  58. type: BooleanConstructor;
  59. default: boolean;
  60. };
  61. isGroup: {
  62. type: BooleanConstructor;
  63. default: boolean;
  64. };
  65. value: import("vue-types").VueTypeValidableDef<any>;
  66. name: StringConstructor;
  67. id: StringConstructor;
  68. autofocus: {
  69. type: BooleanConstructor;
  70. default: boolean;
  71. };
  72. onChange: {
  73. type: import("vue").PropType<(event: RadioChangeEvent) => void>;
  74. default: (event: RadioChangeEvent) => void;
  75. };
  76. onFocus: {
  77. type: import("vue").PropType<FocusEventHandler>;
  78. default: FocusEventHandler;
  79. };
  80. onBlur: {
  81. type: import("vue").PropType<FocusEventHandler>;
  82. default: FocusEventHandler;
  83. };
  84. onClick: {
  85. type: import("vue").PropType<MouseEventHandler>;
  86. default: MouseEventHandler;
  87. };
  88. 'onUpdate:checked': {
  89. type: import("vue").PropType<(checked: boolean) => void>;
  90. default: (checked: boolean) => void;
  91. };
  92. 'onUpdate:value': {
  93. type: import("vue").PropType<(checked: boolean) => void>;
  94. default: (checked: boolean) => void;
  95. };
  96. }, () => import("../_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
  97. prefixCls: StringConstructor;
  98. checked: {
  99. type: BooleanConstructor;
  100. default: boolean;
  101. };
  102. disabled: {
  103. type: BooleanConstructor;
  104. default: boolean;
  105. };
  106. isGroup: {
  107. type: BooleanConstructor;
  108. default: boolean;
  109. };
  110. value: import("vue-types").VueTypeValidableDef<any>;
  111. name: StringConstructor;
  112. id: StringConstructor;
  113. autofocus: {
  114. type: BooleanConstructor;
  115. default: boolean;
  116. };
  117. onChange: {
  118. type: import("vue").PropType<(event: RadioChangeEvent) => void>;
  119. default: (event: RadioChangeEvent) => void;
  120. };
  121. onFocus: {
  122. type: import("vue").PropType<FocusEventHandler>;
  123. default: FocusEventHandler;
  124. };
  125. onBlur: {
  126. type: import("vue").PropType<FocusEventHandler>;
  127. default: FocusEventHandler;
  128. };
  129. onClick: {
  130. type: import("vue").PropType<MouseEventHandler>;
  131. default: MouseEventHandler;
  132. };
  133. 'onUpdate:checked': {
  134. type: import("vue").PropType<(checked: boolean) => void>;
  135. default: (checked: boolean) => void;
  136. };
  137. 'onUpdate:value': {
  138. type: import("vue").PropType<(checked: boolean) => void>;
  139. default: (checked: boolean) => void;
  140. };
  141. }>>, {
  142. onClick: MouseEventHandler;
  143. onFocus: FocusEventHandler;
  144. onBlur: FocusEventHandler;
  145. onChange: (event: RadioChangeEvent) => void;
  146. disabled: boolean;
  147. autofocus: boolean;
  148. checked: boolean;
  149. isGroup: boolean;
  150. 'onUpdate:checked': (checked: boolean) => void;
  151. 'onUpdate:value': (checked: boolean) => void;
  152. }, {}>;
  153. export default _default;