index.d.ts 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. import type { Plugin, ExtractPropTypes, PropType } from 'vue';
  2. import noFound from './noFound';
  3. import serverError from './serverError';
  4. import unauthorized from './unauthorized';
  5. export declare const IconMap: {
  6. success: import("@ant-design/icons-vue/lib/icons/CheckCircleFilled").CheckCircleFilledIconType;
  7. error: import("@ant-design/icons-vue/lib/icons/CloseCircleFilled").CloseCircleFilledIconType;
  8. info: import("@ant-design/icons-vue/lib/icons/ExclamationCircleFilled").ExclamationCircleFilledIconType;
  9. warning: import("@ant-design/icons-vue/lib/icons/WarningFilled").WarningFilledIconType;
  10. };
  11. export declare const ExceptionMap: {
  12. '404': () => JSX.Element;
  13. '500': () => JSX.Element;
  14. '403': () => JSX.Element;
  15. };
  16. export declare type ExceptionStatusType = 403 | 404 | 500 | '403' | '404' | '500';
  17. export declare type ResultStatusType = ExceptionStatusType | keyof typeof IconMap;
  18. export declare const resultProps: () => {
  19. prefixCls: StringConstructor;
  20. icon: import("vue-types").VueTypeValidableDef<any>;
  21. status: {
  22. type: PropType<ResultStatusType>;
  23. default: string;
  24. };
  25. title: import("vue-types").VueTypeValidableDef<any>;
  26. subTitle: import("vue-types").VueTypeValidableDef<any>;
  27. extra: import("vue-types").VueTypeValidableDef<any>;
  28. };
  29. export declare type ResultProps = Partial<ExtractPropTypes<ReturnType<typeof resultProps>>>;
  30. declare const _default: {
  31. new (...args: any[]): {
  32. $: import("vue").ComponentInternalInstance;
  33. $data: {};
  34. $props: Partial<{
  35. status: ResultStatusType;
  36. }> & Omit<Readonly<ExtractPropTypes<{
  37. prefixCls: StringConstructor;
  38. icon: import("vue-types").VueTypeValidableDef<any>;
  39. status: {
  40. type: PropType<ResultStatusType>;
  41. default: string;
  42. };
  43. title: import("vue-types").VueTypeValidableDef<any>;
  44. subTitle: import("vue-types").VueTypeValidableDef<any>;
  45. extra: import("vue-types").VueTypeValidableDef<any>;
  46. }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "status">;
  47. $attrs: {
  48. [x: string]: unknown;
  49. };
  50. $refs: {
  51. [x: string]: unknown;
  52. };
  53. $slots: Readonly<{
  54. [name: string]: import("vue").Slot;
  55. }>;
  56. $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
  57. $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
  58. $emit: (event: string, ...args: any[]) => void;
  59. $el: any;
  60. $options: import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
  61. prefixCls: StringConstructor;
  62. icon: import("vue-types").VueTypeValidableDef<any>;
  63. status: {
  64. type: PropType<ResultStatusType>;
  65. default: string;
  66. };
  67. title: import("vue-types").VueTypeValidableDef<any>;
  68. subTitle: import("vue-types").VueTypeValidableDef<any>;
  69. extra: import("vue-types").VueTypeValidableDef<any>;
  70. }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  71. status: ResultStatusType;
  72. }, {}, string> & {
  73. beforeCreate?: (() => void) | (() => void)[];
  74. created?: (() => void) | (() => void)[];
  75. beforeMount?: (() => void) | (() => void)[];
  76. mounted?: (() => void) | (() => void)[];
  77. beforeUpdate?: (() => void) | (() => void)[];
  78. updated?: (() => void) | (() => void)[];
  79. activated?: (() => void) | (() => void)[];
  80. deactivated?: (() => void) | (() => void)[];
  81. beforeDestroy?: (() => void) | (() => void)[];
  82. beforeUnmount?: (() => void) | (() => void)[];
  83. destroyed?: (() => void) | (() => void)[];
  84. unmounted?: (() => void) | (() => void)[];
  85. renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
  86. renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
  87. 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)[];
  88. };
  89. $forceUpdate: () => void;
  90. $nextTick: typeof import("vue").nextTick;
  91. $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;
  92. } & Readonly<ExtractPropTypes<{
  93. prefixCls: StringConstructor;
  94. icon: import("vue-types").VueTypeValidableDef<any>;
  95. status: {
  96. type: PropType<ResultStatusType>;
  97. default: string;
  98. };
  99. title: import("vue-types").VueTypeValidableDef<any>;
  100. subTitle: import("vue-types").VueTypeValidableDef<any>;
  101. extra: import("vue-types").VueTypeValidableDef<any>;
  102. }>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
  103. __isFragment?: never;
  104. __isTeleport?: never;
  105. __isSuspense?: never;
  106. } & import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
  107. prefixCls: StringConstructor;
  108. icon: import("vue-types").VueTypeValidableDef<any>;
  109. status: {
  110. type: PropType<ResultStatusType>;
  111. default: string;
  112. };
  113. title: import("vue-types").VueTypeValidableDef<any>;
  114. subTitle: import("vue-types").VueTypeValidableDef<any>;
  115. extra: import("vue-types").VueTypeValidableDef<any>;
  116. }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  117. status: ResultStatusType;
  118. }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Plugin<any[]> & {
  119. readonly PRESENTED_IMAGE_403: typeof unauthorized;
  120. readonly PRESENTED_IMAGE_404: typeof noFound;
  121. readonly PRESENTED_IMAGE_500: typeof serverError;
  122. };
  123. export default _default;