image-viewer.d.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import type { Component, ExtractPropTypes } 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 minScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
  19. readonly maxScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
  20. readonly showProgress: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  21. readonly crossorigin: {
  22. 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>>;
  23. readonly required: false;
  24. readonly validator: ((val: unknown) => boolean) | undefined;
  25. __epPropKey: true;
  26. };
  27. };
  28. export type ImageViewerProps = ExtractPropTypes<typeof imageViewerProps>;
  29. export declare const imageViewerEmits: {
  30. close: () => boolean;
  31. switch: (index: number) => boolean;
  32. rotate: (deg: number) => boolean;
  33. };
  34. export type ImageViewerEmits = typeof imageViewerEmits;
  35. export interface ImageViewerMode {
  36. name: string;
  37. icon: Component;
  38. }
  39. export type ImageViewerInstance = InstanceType<typeof ImageViewer> & unknown;