index.d.ts 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. import type { ExtractPropTypes, PropType } from 'vue';
  2. import type { NodeMouseEventHandler } from '../vc-tree/contextTypes';
  3. declare const AlertTypes: ["success", "info", "warning", "error"];
  4. export type AlertType = (typeof AlertTypes)[number];
  5. export declare const alertProps: () => {
  6. /**
  7. * Type of Alert styles, options: `success`, `info`, `warning`, `error`
  8. */
  9. type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
  10. /** Whether Alert can be closed */
  11. closable: {
  12. type: BooleanConstructor;
  13. default: any;
  14. };
  15. /** Close text to show */
  16. closeText: import("vue-types").VueTypeValidableDef<any>;
  17. /** Content of Alert */
  18. message: import("vue-types").VueTypeValidableDef<any>;
  19. /** Additional content of Alert */
  20. description: import("vue-types").VueTypeValidableDef<any>;
  21. /** Trigger when animation ending of Alert */
  22. afterClose: PropType<() => void>;
  23. /** Whether to show icon */
  24. showIcon: {
  25. type: BooleanConstructor;
  26. default: any;
  27. };
  28. prefixCls: StringConstructor;
  29. banner: {
  30. type: BooleanConstructor;
  31. default: any;
  32. };
  33. icon: import("vue-types").VueTypeValidableDef<any>;
  34. closeIcon: import("vue-types").VueTypeValidableDef<any>;
  35. onClose: PropType<NodeMouseEventHandler>;
  36. };
  37. export type AlertProps = Partial<ExtractPropTypes<ReturnType<typeof alertProps>>>;
  38. declare const _default: {
  39. new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
  40. /**
  41. * Type of Alert styles, options: `success`, `info`, `warning`, `error`
  42. */
  43. type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
  44. /** Whether Alert can be closed */
  45. closable: {
  46. type: BooleanConstructor;
  47. default: any;
  48. };
  49. /** Close text to show */
  50. closeText: import("vue-types").VueTypeValidableDef<any>;
  51. /** Content of Alert */
  52. message: import("vue-types").VueTypeValidableDef<any>;
  53. /** Additional content of Alert */
  54. description: import("vue-types").VueTypeValidableDef<any>;
  55. /** Trigger when animation ending of Alert */
  56. afterClose: PropType<() => void>;
  57. /** Whether to show icon */
  58. showIcon: {
  59. type: BooleanConstructor;
  60. default: any;
  61. };
  62. prefixCls: StringConstructor;
  63. banner: {
  64. type: BooleanConstructor;
  65. default: any;
  66. };
  67. icon: import("vue-types").VueTypeValidableDef<any>;
  68. closeIcon: import("vue-types").VueTypeValidableDef<any>;
  69. onClose: PropType<NodeMouseEventHandler>;
  70. }>>, () => import("../_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<ExtractPropTypes<{
  71. /**
  72. * Type of Alert styles, options: `success`, `info`, `warning`, `error`
  73. */
  74. type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
  75. /** Whether Alert can be closed */
  76. closable: {
  77. type: BooleanConstructor;
  78. default: any;
  79. };
  80. /** Close text to show */
  81. closeText: import("vue-types").VueTypeValidableDef<any>;
  82. /** Content of Alert */
  83. message: import("vue-types").VueTypeValidableDef<any>;
  84. /** Additional content of Alert */
  85. description: import("vue-types").VueTypeValidableDef<any>;
  86. /** Trigger when animation ending of Alert */
  87. afterClose: PropType<() => void>;
  88. /** Whether to show icon */
  89. showIcon: {
  90. type: BooleanConstructor;
  91. default: any;
  92. };
  93. prefixCls: StringConstructor;
  94. banner: {
  95. type: BooleanConstructor;
  96. default: any;
  97. };
  98. icon: import("vue-types").VueTypeValidableDef<any>;
  99. closeIcon: import("vue-types").VueTypeValidableDef<any>;
  100. onClose: PropType<NodeMouseEventHandler>;
  101. }>>, {
  102. showIcon: boolean;
  103. closable: boolean;
  104. banner: boolean;
  105. }, true, {}, {}, {
  106. P: {};
  107. B: {};
  108. D: {};
  109. C: {};
  110. M: {};
  111. Defaults: {};
  112. }, Readonly<ExtractPropTypes<{
  113. /**
  114. * Type of Alert styles, options: `success`, `info`, `warning`, `error`
  115. */
  116. type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
  117. /** Whether Alert can be closed */
  118. closable: {
  119. type: BooleanConstructor;
  120. default: any;
  121. };
  122. /** Close text to show */
  123. closeText: import("vue-types").VueTypeValidableDef<any>;
  124. /** Content of Alert */
  125. message: import("vue-types").VueTypeValidableDef<any>;
  126. /** Additional content of Alert */
  127. description: import("vue-types").VueTypeValidableDef<any>;
  128. /** Trigger when animation ending of Alert */
  129. afterClose: PropType<() => void>;
  130. /** Whether to show icon */
  131. showIcon: {
  132. type: BooleanConstructor;
  133. default: any;
  134. };
  135. prefixCls: StringConstructor;
  136. banner: {
  137. type: BooleanConstructor;
  138. default: any;
  139. };
  140. icon: import("vue-types").VueTypeValidableDef<any>;
  141. closeIcon: import("vue-types").VueTypeValidableDef<any>;
  142. onClose: PropType<NodeMouseEventHandler>;
  143. }>>, () => import("../_util/type").VueNode, {}, {}, {}, {
  144. showIcon: boolean;
  145. closable: boolean;
  146. banner: boolean;
  147. }>;
  148. __isFragment?: never;
  149. __isTeleport?: never;
  150. __isSuspense?: never;
  151. } & import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
  152. /**
  153. * Type of Alert styles, options: `success`, `info`, `warning`, `error`
  154. */
  155. type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
  156. /** Whether Alert can be closed */
  157. closable: {
  158. type: BooleanConstructor;
  159. default: any;
  160. };
  161. /** Close text to show */
  162. closeText: import("vue-types").VueTypeValidableDef<any>;
  163. /** Content of Alert */
  164. message: import("vue-types").VueTypeValidableDef<any>;
  165. /** Additional content of Alert */
  166. description: import("vue-types").VueTypeValidableDef<any>;
  167. /** Trigger when animation ending of Alert */
  168. afterClose: PropType<() => void>;
  169. /** Whether to show icon */
  170. showIcon: {
  171. type: BooleanConstructor;
  172. default: any;
  173. };
  174. prefixCls: StringConstructor;
  175. banner: {
  176. type: BooleanConstructor;
  177. default: any;
  178. };
  179. icon: import("vue-types").VueTypeValidableDef<any>;
  180. closeIcon: import("vue-types").VueTypeValidableDef<any>;
  181. onClose: PropType<NodeMouseEventHandler>;
  182. }>>, () => import("../_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  183. showIcon: boolean;
  184. closable: boolean;
  185. banner: boolean;
  186. }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
  187. export default _default;