image.d.ts 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import type { ExtractPropTypes, __ExtractPublicPropTypes } 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 scale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
  33. readonly minScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
  34. readonly maxScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
  35. readonly showProgress: BooleanConstructor;
  36. readonly crossorigin: {
  37. 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>>;
  38. readonly required: false;
  39. readonly validator: ((val: unknown) => boolean) | undefined;
  40. __epPropKey: true;
  41. };
  42. };
  43. export type ImageProps = ExtractPropTypes<typeof imageProps>;
  44. export type ImagePropsPublic = __ExtractPublicPropTypes<typeof imageProps>;
  45. export declare const imageEmits: {
  46. load: (evt: Event) => boolean;
  47. error: (evt: Event) => boolean;
  48. switch: (val: number) => boolean;
  49. close: () => boolean;
  50. show: () => boolean;
  51. };
  52. export type ImageEmits = typeof imageEmits;
  53. export type ImageInstance = InstanceType<typeof Image> & unknown;