image-viewer.d.ts 1.8 KB

1234567891011121314151617181920212223242526272829
  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: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  15. readonly teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  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. };
  19. export declare type ImageViewerProps = ExtractPropTypes<typeof imageViewerProps>;
  20. export declare const imageViewerEmits: {
  21. close: () => boolean;
  22. switch: (index: number) => boolean;
  23. };
  24. export declare type ImageViewerEmits = typeof imageViewerEmits;
  25. export interface ImageViewerMode {
  26. name: string;
  27. icon: Component;
  28. }
  29. export declare type ImageViewerInstance = InstanceType<typeof ImageViewer>;