index.d.ts 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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 declare 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 declare type AlertProps = Partial<ExtractPropTypes<ReturnType<typeof alertProps>>>;
  38. declare const _default: {
  39. new (...args: any[]): {
  40. $: import("vue").ComponentInternalInstance;
  41. $data: {};
  42. $props: Partial<{
  43. showIcon: boolean;
  44. closable: boolean;
  45. banner: boolean;
  46. }> & Omit<Readonly<ExtractPropTypes<{
  47. /**
  48. * Type of Alert styles, options: `success`, `info`, `warning`, `error`
  49. */
  50. type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
  51. /** Whether Alert can be closed */
  52. closable: {
  53. type: BooleanConstructor;
  54. default: any;
  55. };
  56. /** Close text to show */
  57. closeText: import("vue-types").VueTypeValidableDef<any>;
  58. /** Content of Alert */
  59. message: import("vue-types").VueTypeValidableDef<any>;
  60. /** Additional content of Alert */
  61. description: import("vue-types").VueTypeValidableDef<any>;
  62. /** Trigger when animation ending of Alert */
  63. afterClose: PropType<() => void>;
  64. /** Whether to show icon */
  65. showIcon: {
  66. type: BooleanConstructor;
  67. default: any;
  68. };
  69. prefixCls: StringConstructor;
  70. banner: {
  71. type: BooleanConstructor;
  72. default: any;
  73. };
  74. icon: import("vue-types").VueTypeValidableDef<any>;
  75. closeIcon: import("vue-types").VueTypeValidableDef<any>;
  76. onClose: PropType<NodeMouseEventHandler>;
  77. }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "showIcon" | "closable" | "banner">;
  78. $attrs: {
  79. [x: string]: unknown;
  80. };
  81. $refs: {
  82. [x: string]: unknown;
  83. };
  84. $slots: Readonly<{
  85. [name: string]: import("vue").Slot;
  86. }>;
  87. $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
  88. $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
  89. $emit: (event: string, ...args: any[]) => void;
  90. $el: any;
  91. $options: import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
  92. /**
  93. * Type of Alert styles, options: `success`, `info`, `warning`, `error`
  94. */
  95. type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
  96. /** Whether Alert can be closed */
  97. closable: {
  98. type: BooleanConstructor;
  99. default: any;
  100. };
  101. /** Close text to show */
  102. closeText: import("vue-types").VueTypeValidableDef<any>;
  103. /** Content of Alert */
  104. message: import("vue-types").VueTypeValidableDef<any>;
  105. /** Additional content of Alert */
  106. description: import("vue-types").VueTypeValidableDef<any>;
  107. /** Trigger when animation ending of Alert */
  108. afterClose: PropType<() => void>;
  109. /** Whether to show icon */
  110. showIcon: {
  111. type: BooleanConstructor;
  112. default: any;
  113. };
  114. prefixCls: StringConstructor;
  115. banner: {
  116. type: BooleanConstructor;
  117. default: any;
  118. };
  119. icon: import("vue-types").VueTypeValidableDef<any>;
  120. closeIcon: import("vue-types").VueTypeValidableDef<any>;
  121. onClose: PropType<NodeMouseEventHandler>;
  122. }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  123. showIcon: boolean;
  124. closable: boolean;
  125. banner: boolean;
  126. }, {}, string> & {
  127. beforeCreate?: (() => void) | (() => void)[];
  128. created?: (() => void) | (() => void)[];
  129. beforeMount?: (() => void) | (() => void)[];
  130. mounted?: (() => void) | (() => void)[];
  131. beforeUpdate?: (() => void) | (() => void)[];
  132. updated?: (() => void) | (() => void)[];
  133. activated?: (() => void) | (() => void)[];
  134. deactivated?: (() => void) | (() => void)[];
  135. beforeDestroy?: (() => void) | (() => void)[];
  136. beforeUnmount?: (() => void) | (() => void)[];
  137. destroyed?: (() => void) | (() => void)[];
  138. unmounted?: (() => void) | (() => void)[];
  139. renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
  140. renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
  141. errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
  142. };
  143. $forceUpdate: () => void;
  144. $nextTick: typeof import("vue").nextTick;
  145. $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
  146. } & Readonly<ExtractPropTypes<{
  147. /**
  148. * Type of Alert styles, options: `success`, `info`, `warning`, `error`
  149. */
  150. type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
  151. /** Whether Alert can be closed */
  152. closable: {
  153. type: BooleanConstructor;
  154. default: any;
  155. };
  156. /** Close text to show */
  157. closeText: import("vue-types").VueTypeValidableDef<any>;
  158. /** Content of Alert */
  159. message: import("vue-types").VueTypeValidableDef<any>;
  160. /** Additional content of Alert */
  161. description: import("vue-types").VueTypeValidableDef<any>;
  162. /** Trigger when animation ending of Alert */
  163. afterClose: PropType<() => void>;
  164. /** Whether to show icon */
  165. showIcon: {
  166. type: BooleanConstructor;
  167. default: any;
  168. };
  169. prefixCls: StringConstructor;
  170. banner: {
  171. type: BooleanConstructor;
  172. default: any;
  173. };
  174. icon: import("vue-types").VueTypeValidableDef<any>;
  175. closeIcon: import("vue-types").VueTypeValidableDef<any>;
  176. onClose: PropType<NodeMouseEventHandler>;
  177. }>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
  178. __isFragment?: never;
  179. __isTeleport?: never;
  180. __isSuspense?: never;
  181. } & import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
  182. /**
  183. * Type of Alert styles, options: `success`, `info`, `warning`, `error`
  184. */
  185. type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
  186. /** Whether Alert can be closed */
  187. closable: {
  188. type: BooleanConstructor;
  189. default: any;
  190. };
  191. /** Close text to show */
  192. closeText: import("vue-types").VueTypeValidableDef<any>;
  193. /** Content of Alert */
  194. message: import("vue-types").VueTypeValidableDef<any>;
  195. /** Additional content of Alert */
  196. description: import("vue-types").VueTypeValidableDef<any>;
  197. /** Trigger when animation ending of Alert */
  198. afterClose: PropType<() => void>;
  199. /** Whether to show icon */
  200. showIcon: {
  201. type: BooleanConstructor;
  202. default: any;
  203. };
  204. prefixCls: StringConstructor;
  205. banner: {
  206. type: BooleanConstructor;
  207. default: any;
  208. };
  209. icon: import("vue-types").VueTypeValidableDef<any>;
  210. closeIcon: import("vue-types").VueTypeValidableDef<any>;
  211. onClose: PropType<NodeMouseEventHandler>;
  212. }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  213. showIcon: boolean;
  214. closable: boolean;
  215. banner: boolean;
  216. }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin<any[]>;
  217. export default _default;