index.d.ts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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").CreateComponentPublicInstanceWithMixins<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. }>> & Readonly<{}>, () => import("../_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
  71. showIcon: boolean;
  72. closable: boolean;
  73. banner: boolean;
  74. }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
  75. P: {};
  76. B: {};
  77. D: {};
  78. C: {};
  79. M: {};
  80. Defaults: {};
  81. }, Readonly<ExtractPropTypes<{
  82. /**
  83. * Type of Alert styles, options: `success`, `info`, `warning`, `error`
  84. */
  85. type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
  86. /** Whether Alert can be closed */
  87. closable: {
  88. type: BooleanConstructor;
  89. default: any;
  90. };
  91. /** Close text to show */
  92. closeText: import("vue-types").VueTypeValidableDef<any>;
  93. /** Content of Alert */
  94. message: import("vue-types").VueTypeValidableDef<any>;
  95. /** Additional content of Alert */
  96. description: import("vue-types").VueTypeValidableDef<any>;
  97. /** Trigger when animation ending of Alert */
  98. afterClose: PropType<() => void>;
  99. /** Whether to show icon */
  100. showIcon: {
  101. type: BooleanConstructor;
  102. default: any;
  103. };
  104. prefixCls: StringConstructor;
  105. banner: {
  106. type: BooleanConstructor;
  107. default: any;
  108. };
  109. icon: import("vue-types").VueTypeValidableDef<any>;
  110. closeIcon: import("vue-types").VueTypeValidableDef<any>;
  111. onClose: PropType<NodeMouseEventHandler>;
  112. }>> & Readonly<{}>, () => import("../_util/type").VueNode, {}, {}, {}, {
  113. showIcon: boolean;
  114. closable: boolean;
  115. banner: boolean;
  116. }>;
  117. __isFragment?: never;
  118. __isTeleport?: never;
  119. __isSuspense?: never;
  120. } & import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
  121. /**
  122. * Type of Alert styles, options: `success`, `info`, `warning`, `error`
  123. */
  124. type: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "info">;
  125. /** Whether Alert can be closed */
  126. closable: {
  127. type: BooleanConstructor;
  128. default: any;
  129. };
  130. /** Close text to show */
  131. closeText: import("vue-types").VueTypeValidableDef<any>;
  132. /** Content of Alert */
  133. message: import("vue-types").VueTypeValidableDef<any>;
  134. /** Additional content of Alert */
  135. description: import("vue-types").VueTypeValidableDef<any>;
  136. /** Trigger when animation ending of Alert */
  137. afterClose: PropType<() => void>;
  138. /** Whether to show icon */
  139. showIcon: {
  140. type: BooleanConstructor;
  141. default: any;
  142. };
  143. prefixCls: StringConstructor;
  144. banner: {
  145. type: BooleanConstructor;
  146. default: any;
  147. };
  148. icon: import("vue-types").VueTypeValidableDef<any>;
  149. closeIcon: import("vue-types").VueTypeValidableDef<any>;
  150. onClose: PropType<NodeMouseEventHandler>;
  151. }>> & Readonly<{}>, () => import("../_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  152. showIcon: boolean;
  153. closable: boolean;
  154. banner: boolean;
  155. }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
  156. export default _default;