image-viewer.d.ts 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import type { Component, ExtractPropTypes } from 'vue';
  2. import type ImageViewer from './image-viewer.vue';
  3. export declare 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 crossorigin: {
  21. 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>>;
  22. readonly required: false;
  23. readonly validator: ((val: unknown) => boolean) | undefined;
  24. __epPropKey: true;
  25. };
  26. };
  27. export declare type ImageViewerProps = ExtractPropTypes<typeof imageViewerProps>;
  28. export declare const imageViewerEmits: {
  29. close: () => boolean;
  30. switch: (index: number) => boolean;
  31. rotate: (deg: number) => boolean;
  32. };
  33. export declare type ImageViewerEmits = typeof imageViewerEmits;
  34. export interface ImageViewerMode {
  35. name: string;
  36. icon: Component;
  37. }
  38. export declare type ImageViewerInstance = InstanceType<typeof ImageViewer>;