image.d.ts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import type { ExtractPropTypes } from 'vue';
  2. import type Image from './image.vue';
  3. export declare const imageProps: {
  4. readonly hideOnClickModal: BooleanConstructor;
  5. readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  6. readonly fit: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "fill" | "contain" | "none" | "cover" | "scale-down", unknown, "", boolean>;
  7. readonly loading: {
  8. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "lazy" | "eager", unknown>>;
  9. readonly required: false;
  10. readonly validator: ((val: unknown) => boolean) | undefined;
  11. __epPropKey: true;
  12. };
  13. readonly lazy: BooleanConstructor;
  14. readonly scrollContainer: {
  15. 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>>;
  16. readonly required: false;
  17. readonly validator: ((val: unknown) => boolean) | undefined;
  18. __epPropKey: true;
  19. };
  20. readonly previewSrcList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
  21. readonly previewTeleported: BooleanConstructor;
  22. readonly zIndex: {
  23. readonly type: import("vue").PropType<number>;
  24. readonly required: false;
  25. readonly validator: ((val: unknown) => boolean) | undefined;
  26. __epPropKey: true;
  27. };
  28. readonly initialIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  29. readonly infinite: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  30. readonly closeOnPressEscape: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  31. readonly zoomRate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
  32. readonly minScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
  33. readonly maxScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
  34. readonly showProgress: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  35. readonly crossorigin: {
  36. 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>>;
  37. readonly required: false;
  38. readonly validator: ((val: unknown) => boolean) | undefined;
  39. __epPropKey: true;
  40. };
  41. };
  42. export type ImageProps = ExtractPropTypes<typeof imageProps>;
  43. export declare const imageEmits: {
  44. load: (evt: Event) => boolean;
  45. error: (evt: Event) => boolean;
  46. switch: (val: number) => boolean;
  47. close: () => boolean;
  48. show: () => boolean;
  49. };
  50. export type ImageEmits = typeof imageEmits;
  51. export type ImageInstance = InstanceType<typeof Image> & unknown;