image.vue.d.ts 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. declare function clickHandler(): void;
  2. declare var __VLS_1: {}, __VLS_3: {}, __VLS_14: {}, __VLS_17: {
  3. activeIndex: number;
  4. total: number;
  5. }, __VLS_20: {
  6. actions: (action: import("element-plus/es/components/image-viewer").ImageViewerAction, options?: {}) => void;
  7. prev: () => void;
  8. next: () => void;
  9. reset: () => void;
  10. activeIndex: number;
  11. setActiveItem: (index: number) => void;
  12. }, __VLS_23: {
  13. activeIndex: number;
  14. src: string;
  15. };
  16. type __VLS_Slots = {} & {
  17. error?: (props: typeof __VLS_1) => any;
  18. } & {
  19. placeholder?: (props: typeof __VLS_3) => any;
  20. } & {
  21. viewer?: (props: typeof __VLS_14) => any;
  22. } & {
  23. progress?: (props: typeof __VLS_17) => any;
  24. } & {
  25. toolbar?: (props: typeof __VLS_20) => any;
  26. } & {
  27. 'viewer-error'?: (props: typeof __VLS_23) => any;
  28. };
  29. declare const __VLS_base: import("vue").DefineComponent<{
  30. readonly hideOnClickModal: BooleanConstructor;
  31. readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  32. readonly fit: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "fill" | "contain" | "none" | "cover" | "scale-down", unknown, "", boolean>;
  33. readonly loading: {
  34. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "lazy" | "eager", unknown>>;
  35. readonly required: false;
  36. readonly validator: ((val: unknown) => boolean) | undefined;
  37. __epPropKey: true;
  38. };
  39. readonly lazy: BooleanConstructor;
  40. readonly scrollContainer: {
  41. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement | undefined) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement | undefined))[], unknown, unknown>>;
  42. readonly required: false;
  43. readonly validator: ((val: unknown) => boolean) | undefined;
  44. __epPropKey: true;
  45. };
  46. readonly previewSrcList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
  47. readonly previewTeleported: BooleanConstructor;
  48. readonly zIndex: {
  49. readonly type: import("vue").PropType<number>;
  50. readonly required: false;
  51. readonly validator: ((val: unknown) => boolean) | undefined;
  52. __epPropKey: true;
  53. };
  54. readonly initialIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  55. readonly infinite: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  56. readonly closeOnPressEscape: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  57. readonly zoomRate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
  58. readonly scale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
  59. readonly minScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
  60. readonly maxScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
  61. readonly showProgress: BooleanConstructor;
  62. readonly crossorigin: {
  63. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
  64. readonly required: false;
  65. readonly validator: ((val: unknown) => boolean) | undefined;
  66. __epPropKey: true;
  67. };
  68. }, {
  69. /** @description manually open preview */
  70. showPreview: typeof clickHandler;
  71. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
  72. switch: (val: number) => void;
  73. show: () => void;
  74. close: () => void;
  75. error: (evt: Event) => void;
  76. load: (evt: Event) => void;
  77. }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
  78. readonly hideOnClickModal: BooleanConstructor;
  79. readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  80. readonly fit: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "fill" | "contain" | "none" | "cover" | "scale-down", unknown, "", boolean>;
  81. readonly loading: {
  82. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "lazy" | "eager", unknown>>;
  83. readonly required: false;
  84. readonly validator: ((val: unknown) => boolean) | undefined;
  85. __epPropKey: true;
  86. };
  87. readonly lazy: BooleanConstructor;
  88. readonly scrollContainer: {
  89. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement | undefined) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement | undefined))[], unknown, unknown>>;
  90. readonly required: false;
  91. readonly validator: ((val: unknown) => boolean) | undefined;
  92. __epPropKey: true;
  93. };
  94. readonly previewSrcList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
  95. readonly previewTeleported: BooleanConstructor;
  96. readonly zIndex: {
  97. readonly type: import("vue").PropType<number>;
  98. readonly required: false;
  99. readonly validator: ((val: unknown) => boolean) | undefined;
  100. __epPropKey: true;
  101. };
  102. readonly initialIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  103. readonly infinite: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  104. readonly closeOnPressEscape: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  105. readonly zoomRate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
  106. readonly scale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
  107. readonly minScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
  108. readonly maxScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
  109. readonly showProgress: BooleanConstructor;
  110. readonly crossorigin: {
  111. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
  112. readonly required: false;
  113. readonly validator: ((val: unknown) => boolean) | undefined;
  114. __epPropKey: true;
  115. };
  116. }>> & {
  117. onShow?: (() => any) | undefined;
  118. onClose?: (() => any) | undefined;
  119. onError?: ((evt: Event) => any) | undefined;
  120. onLoad?: ((evt: Event) => any) | undefined;
  121. onSwitch?: ((val: number) => any) | undefined;
  122. }, {
  123. readonly scale: number;
  124. readonly infinite: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  125. readonly lazy: boolean;
  126. readonly src: string;
  127. readonly fit: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "fill" | "contain" | "none" | "cover" | "scale-down", unknown>;
  128. readonly closeOnPressEscape: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  129. readonly initialIndex: number;
  130. readonly zoomRate: number;
  131. readonly minScale: number;
  132. readonly maxScale: number;
  133. readonly hideOnClickModal: boolean;
  134. readonly showProgress: boolean;
  135. readonly previewSrcList: string[];
  136. readonly previewTeleported: boolean;
  137. }, {}>;
  138. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  139. declare const _default: typeof __VLS_export;
  140. export default _default;
  141. type __VLS_WithSlots<T, S> = T & {
  142. new (): {
  143. $slots: S;
  144. };
  145. };