index.d.ts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. import type { ExtractPropTypes, ImgHTMLAttributes, Plugin } from 'vue';
  2. import { imageProps } from '../vc-image/src/Image';
  3. import PreviewGroup from './PreviewGroup';
  4. export declare type ImageProps = Partial<ExtractPropTypes<ReturnType<typeof imageProps>> & Omit<ImgHTMLAttributes, 'placeholder' | 'onClick'>>;
  5. export { imageProps };
  6. export { PreviewGroup as ImagePreviewGroup };
  7. declare const _default: {
  8. new (...args: any[]): {
  9. $: import("vue").ComponentInternalInstance;
  10. $data: {};
  11. $props: Partial<{
  12. class?: any;
  13. placeholder?: any;
  14. inlist?: any;
  15. }> & Omit<Readonly<Partial<{
  16. preview: boolean | import("../vc-image").ImagePreviewType;
  17. wrapperStyle: import("vue").CSSProperties;
  18. } & {
  19. onError?: OnErrorEventHandlerNonNull;
  20. onClick?: import("../_util/EventInterface").MouseEventHandler;
  21. prefixCls?: string;
  22. placeholder?: any;
  23. wrapperClassName?: string;
  24. src?: string;
  25. rootClassName?: string;
  26. previewPrefixCls?: string;
  27. previewMask?: false | (() => any);
  28. fallback?: string;
  29. } & Omit<ImgHTMLAttributes, "onClick" | "placeholder">>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "class" | "placeholder" | "inlist">;
  30. $attrs: {
  31. [x: string]: unknown;
  32. };
  33. $refs: {
  34. [x: string]: unknown;
  35. };
  36. $slots: Readonly<{
  37. [name: string]: import("vue").Slot;
  38. }>;
  39. $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
  40. $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
  41. $emit: (event: string, ...args: any[]) => void;
  42. $el: any;
  43. $options: import("vue").ComponentOptionsBase<Readonly<Partial<{
  44. preview: boolean | import("../vc-image").ImagePreviewType;
  45. wrapperStyle: import("vue").CSSProperties;
  46. } & {
  47. onError?: OnErrorEventHandlerNonNull;
  48. onClick?: import("../_util/EventInterface").MouseEventHandler;
  49. prefixCls?: string;
  50. placeholder?: any;
  51. wrapperClassName?: string;
  52. src?: string;
  53. rootClassName?: string;
  54. previewPrefixCls?: string;
  55. previewMask?: false | (() => any);
  56. fallback?: string;
  57. } & Omit<ImgHTMLAttributes, "onClick" | "placeholder">>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  58. class?: any;
  59. placeholder?: any;
  60. inlist?: any;
  61. }> & {
  62. beforeCreate?: (() => void) | (() => void)[];
  63. created?: (() => void) | (() => void)[];
  64. beforeMount?: (() => void) | (() => void)[];
  65. mounted?: (() => void) | (() => void)[];
  66. beforeUpdate?: (() => void) | (() => void)[];
  67. updated?: (() => void) | (() => void)[];
  68. activated?: (() => void) | (() => void)[];
  69. deactivated?: (() => void) | (() => void)[];
  70. beforeDestroy?: (() => void) | (() => void)[];
  71. beforeUnmount?: (() => void) | (() => void)[];
  72. destroyed?: (() => void) | (() => void)[];
  73. unmounted?: (() => void) | (() => void)[];
  74. renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
  75. renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
  76. errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
  77. };
  78. $forceUpdate: () => void;
  79. $nextTick: typeof import("vue").nextTick;
  80. $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
  81. } & Readonly<Partial<{
  82. preview: boolean | import("../vc-image").ImagePreviewType;
  83. wrapperStyle: import("vue").CSSProperties;
  84. } & {
  85. onError?: OnErrorEventHandlerNonNull;
  86. onClick?: import("../_util/EventInterface").MouseEventHandler;
  87. prefixCls?: string;
  88. placeholder?: any;
  89. wrapperClassName?: string;
  90. src?: string;
  91. rootClassName?: string;
  92. previewPrefixCls?: string;
  93. previewMask?: false | (() => any);
  94. fallback?: string;
  95. } & Omit<ImgHTMLAttributes, "onClick" | "placeholder">>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
  96. __isFragment?: never;
  97. __isTeleport?: never;
  98. __isSuspense?: never;
  99. } & import("vue").ComponentOptionsBase<Readonly<Partial<{
  100. preview: boolean | import("../vc-image").ImagePreviewType;
  101. wrapperStyle: import("vue").CSSProperties;
  102. } & {
  103. onError?: OnErrorEventHandlerNonNull;
  104. onClick?: import("../_util/EventInterface").MouseEventHandler;
  105. prefixCls?: string;
  106. placeholder?: any;
  107. wrapperClassName?: string;
  108. src?: string;
  109. rootClassName?: string;
  110. previewPrefixCls?: string;
  111. previewMask?: false | (() => any);
  112. fallback?: string;
  113. } & Omit<ImgHTMLAttributes, "onClick" | "placeholder">>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  114. class?: any;
  115. placeholder?: any;
  116. inlist?: any;
  117. }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Plugin & {
  118. readonly PreviewGroup: typeof PreviewGroup;
  119. };
  120. export default _default;