33be3fc06cff1beb23630b6adda6c63418d945737bd0c57412387e5e6d668541348e4dbdbd79b621d2cea0d5d3383bf12854d2339501de095fea6a2690f34b 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import type { Component, ExtractPropTypes, __ExtractPublicPropTypes } from 'vue';
  2. import type ImageViewer from './image-viewer.vue';
  3. export type ImageViewerAction = 'zoomIn' | 'zoomOut' | 'clockwise' | 'anticlockwise';
  4. export declare const imageViewerProps: {
  5. readonly urlList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
  6. readonly zIndex: {
  7. readonly type: import("vue").PropType<number>;
  8. readonly required: false;
  9. readonly validator: ((val: unknown) => boolean) | undefined;
  10. __epPropKey: true;
  11. };
  12. readonly initialIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  13. readonly infinite: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  14. readonly hideOnClickModal: BooleanConstructor;
  15. readonly teleported: BooleanConstructor;
  16. readonly closeOnPressEscape: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  17. readonly zoomRate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
  18. readonly scale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
  19. readonly minScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
  20. readonly maxScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
  21. readonly showProgress: BooleanConstructor;
  22. readonly crossorigin: {
  23. 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>>;
  24. readonly required: false;
  25. readonly validator: ((val: unknown) => boolean) | undefined;
  26. __epPropKey: true;
  27. };
  28. };
  29. export type ImageViewerProps = ExtractPropTypes<typeof imageViewerProps>;
  30. export type ImageViewerPropsPublic = __ExtractPublicPropTypes<typeof imageViewerProps>;
  31. export declare const imageViewerEmits: {
  32. close: () => boolean;
  33. error: (evt: Event) => boolean;
  34. switch: (index: number) => boolean;
  35. rotate: (deg: number) => boolean;
  36. };
  37. export type ImageViewerEmits = typeof imageViewerEmits;
  38. export interface ImageViewerMode {
  39. name: string;
  40. icon: Component;
  41. }
  42. export type ImageViewerInstance = InstanceType<typeof ImageViewer> & unknown;