index.d.ts 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. import type { Plugin } from 'vue';
  2. import Group from './Group';
  3. import Button from './RadioButton';
  4. export type { RadioProps } from './Radio';
  5. export type { RadioGroupProps } from './Group';
  6. export type { RadioChangeEventTarget, RadioChangeEvent } from './interface';
  7. export { Button, Group, Button as RadioButton, Group as RadioGroup };
  8. declare const _default: {
  9. new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
  10. prefixCls: StringConstructor;
  11. checked: {
  12. type: BooleanConstructor;
  13. default: boolean;
  14. };
  15. disabled: {
  16. type: BooleanConstructor;
  17. default: boolean;
  18. };
  19. isGroup: {
  20. type: BooleanConstructor;
  21. default: boolean;
  22. };
  23. value: import("vue-types").VueTypeValidableDef<any>;
  24. name: StringConstructor;
  25. id: StringConstructor;
  26. autofocus: {
  27. type: BooleanConstructor;
  28. default: boolean;
  29. };
  30. onChange: {
  31. type: import("vue").PropType<(event: import("./interface").RadioChangeEvent) => void>;
  32. default: (event: import("./interface").RadioChangeEvent) => void;
  33. };
  34. onFocus: {
  35. type: import("vue").PropType<import("../_util/EventInterface").FocusEventHandler>;
  36. default: import("../_util/EventInterface").FocusEventHandler;
  37. };
  38. onBlur: {
  39. type: import("vue").PropType<import("../_util/EventInterface").FocusEventHandler>;
  40. default: import("../_util/EventInterface").FocusEventHandler;
  41. };
  42. onClick: {
  43. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  44. default: import("../_util/EventInterface").MouseEventHandler;
  45. };
  46. 'onUpdate:checked': {
  47. type: import("vue").PropType<(checked: boolean) => void>;
  48. default: (checked: boolean) => void;
  49. };
  50. 'onUpdate:value': {
  51. type: import("vue").PropType<(checked: boolean) => void>;
  52. default: (checked: boolean) => void;
  53. };
  54. }>> & Readonly<{}>, () => import("../_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
  55. onClick: import("../_util/EventInterface").MouseEventHandler;
  56. onFocus: import("../_util/EventInterface").FocusEventHandler;
  57. onBlur: import("../_util/EventInterface").FocusEventHandler;
  58. onChange: (event: import("./interface").RadioChangeEvent) => void;
  59. disabled: boolean;
  60. autofocus: boolean;
  61. checked: boolean;
  62. isGroup: boolean;
  63. 'onUpdate:checked': (checked: boolean) => void;
  64. 'onUpdate:value': (checked: boolean) => void;
  65. }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
  66. P: {};
  67. B: {};
  68. D: {};
  69. C: {};
  70. M: {};
  71. Defaults: {};
  72. }, Readonly<import("vue").ExtractPropTypes<{
  73. prefixCls: StringConstructor;
  74. checked: {
  75. type: BooleanConstructor;
  76. default: boolean;
  77. };
  78. disabled: {
  79. type: BooleanConstructor;
  80. default: boolean;
  81. };
  82. isGroup: {
  83. type: BooleanConstructor;
  84. default: boolean;
  85. };
  86. value: import("vue-types").VueTypeValidableDef<any>;
  87. name: StringConstructor;
  88. id: StringConstructor;
  89. autofocus: {
  90. type: BooleanConstructor;
  91. default: boolean;
  92. };
  93. onChange: {
  94. type: import("vue").PropType<(event: import("./interface").RadioChangeEvent) => void>;
  95. default: (event: import("./interface").RadioChangeEvent) => void;
  96. };
  97. onFocus: {
  98. type: import("vue").PropType<import("../_util/EventInterface").FocusEventHandler>;
  99. default: import("../_util/EventInterface").FocusEventHandler;
  100. };
  101. onBlur: {
  102. type: import("vue").PropType<import("../_util/EventInterface").FocusEventHandler>;
  103. default: import("../_util/EventInterface").FocusEventHandler;
  104. };
  105. onClick: {
  106. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  107. default: import("../_util/EventInterface").MouseEventHandler;
  108. };
  109. 'onUpdate:checked': {
  110. type: import("vue").PropType<(checked: boolean) => void>;
  111. default: (checked: boolean) => void;
  112. };
  113. 'onUpdate:value': {
  114. type: import("vue").PropType<(checked: boolean) => void>;
  115. default: (checked: boolean) => void;
  116. };
  117. }>> & Readonly<{}>, () => import("../_util/type").VueNode, {}, {}, {}, {
  118. onClick: import("../_util/EventInterface").MouseEventHandler;
  119. onFocus: import("../_util/EventInterface").FocusEventHandler;
  120. onBlur: import("../_util/EventInterface").FocusEventHandler;
  121. onChange: (event: import("./interface").RadioChangeEvent) => void;
  122. disabled: boolean;
  123. autofocus: boolean;
  124. checked: boolean;
  125. isGroup: boolean;
  126. 'onUpdate:checked': (checked: boolean) => void;
  127. 'onUpdate:value': (checked: boolean) => void;
  128. }>;
  129. __isFragment?: never;
  130. __isTeleport?: never;
  131. __isSuspense?: never;
  132. } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
  133. prefixCls: StringConstructor;
  134. checked: {
  135. type: BooleanConstructor;
  136. default: boolean;
  137. };
  138. disabled: {
  139. type: BooleanConstructor;
  140. default: boolean;
  141. };
  142. isGroup: {
  143. type: BooleanConstructor;
  144. default: boolean;
  145. };
  146. value: import("vue-types").VueTypeValidableDef<any>;
  147. name: StringConstructor;
  148. id: StringConstructor;
  149. autofocus: {
  150. type: BooleanConstructor;
  151. default: boolean;
  152. };
  153. onChange: {
  154. type: import("vue").PropType<(event: import("./interface").RadioChangeEvent) => void>;
  155. default: (event: import("./interface").RadioChangeEvent) => void;
  156. };
  157. onFocus: {
  158. type: import("vue").PropType<import("../_util/EventInterface").FocusEventHandler>;
  159. default: import("../_util/EventInterface").FocusEventHandler;
  160. };
  161. onBlur: {
  162. type: import("vue").PropType<import("../_util/EventInterface").FocusEventHandler>;
  163. default: import("../_util/EventInterface").FocusEventHandler;
  164. };
  165. onClick: {
  166. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  167. default: import("../_util/EventInterface").MouseEventHandler;
  168. };
  169. 'onUpdate:checked': {
  170. type: import("vue").PropType<(checked: boolean) => void>;
  171. default: (checked: boolean) => void;
  172. };
  173. 'onUpdate:value': {
  174. type: import("vue").PropType<(checked: boolean) => void>;
  175. default: (checked: boolean) => void;
  176. };
  177. }>> & Readonly<{}>, () => import("../_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  178. onClick: import("../_util/EventInterface").MouseEventHandler;
  179. onFocus: import("../_util/EventInterface").FocusEventHandler;
  180. onBlur: import("../_util/EventInterface").FocusEventHandler;
  181. onChange: (event: import("./interface").RadioChangeEvent) => void;
  182. disabled: boolean;
  183. autofocus: boolean;
  184. checked: boolean;
  185. isGroup: boolean;
  186. 'onUpdate:checked': (checked: boolean) => void;
  187. 'onUpdate:value': (checked: boolean) => void;
  188. }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Plugin<any[]> & {
  189. readonly Group: typeof Group;
  190. readonly Button: typeof Button;
  191. };
  192. export default _default;