image.vue.d.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. import { ImageViewerAction } from "../../image-viewer/src/image-viewer.js";
  2. import "../../image-viewer/index.js";
  3. import { ImageFitType, ImageProps } from "./image.js";
  4. import * as vue from "vue";
  5. //#region ../../packages/components/image/src/image.vue.d.ts
  6. declare function clickHandler(): void;
  7. declare var __VLS_1: {}, __VLS_3: {}, __VLS_14: {}, __VLS_17: {
  8. activeIndex: number;
  9. total: number;
  10. }, __VLS_20: {
  11. actions: (action: ImageViewerAction, options?: {}) => void;
  12. prev: () => void;
  13. next: () => void;
  14. reset: () => void;
  15. activeIndex: number;
  16. setActiveItem: (index: number) => void;
  17. }, __VLS_23: {
  18. activeIndex: number;
  19. src: string;
  20. };
  21. type __VLS_Slots = {} & {
  22. error?: (props: typeof __VLS_1) => any;
  23. } & {
  24. placeholder?: (props: typeof __VLS_3) => any;
  25. } & {
  26. viewer?: (props: typeof __VLS_14) => any;
  27. } & {
  28. progress?: (props: typeof __VLS_17) => any;
  29. } & {
  30. toolbar?: (props: typeof __VLS_20) => any;
  31. } & {
  32. 'viewer-error'?: (props: typeof __VLS_23) => any;
  33. };
  34. declare const __VLS_base: vue.DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ImageProps>, {
  35. src: string;
  36. fit: string;
  37. previewSrcList: () => never[];
  38. initialIndex: number;
  39. infinite: boolean;
  40. closeOnPressEscape: boolean;
  41. zoomRate: number;
  42. scale: number;
  43. minScale: number;
  44. maxScale: number;
  45. }>, {
  46. /** @description manually open preview */showPreview: typeof clickHandler;
  47. }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  48. close: () => void;
  49. error: (evt: Event) => void;
  50. show: () => void;
  51. load: (evt: Event) => void;
  52. switch: (val: number) => void;
  53. }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ImageProps>, {
  54. src: string;
  55. fit: string;
  56. previewSrcList: () => never[];
  57. initialIndex: number;
  58. infinite: boolean;
  59. closeOnPressEscape: boolean;
  60. zoomRate: number;
  61. scale: number;
  62. minScale: number;
  63. maxScale: number;
  64. }>>> & {
  65. onClose?: (() => any) | undefined;
  66. onLoad?: ((evt: Event) => any) | undefined;
  67. onError?: ((evt: Event) => any) | undefined;
  68. onShow?: (() => any) | undefined;
  69. onSwitch?: ((val: number) => any) | undefined;
  70. }, {
  71. infinite: boolean;
  72. scale: number;
  73. src: string;
  74. fit: ImageFitType;
  75. initialIndex: number;
  76. closeOnPressEscape: boolean;
  77. previewSrcList: string[];
  78. zoomRate: number;
  79. minScale: number;
  80. maxScale: number;
  81. }, {}>;
  82. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  83. declare const _default: typeof __VLS_export;
  84. type __VLS_TypePropsToOption<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? {
  85. type: vue.PropType<Required<T>[K]>;
  86. } : {
  87. type: vue.PropType<T[K]>;
  88. required: true;
  89. } };
  90. type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
  91. default: D[K];
  92. }> : P[K] };
  93. type __VLS_WithSlots<T, S> = T & {
  94. new (): {
  95. $slots: S;
  96. };
  97. };
  98. type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
  99. //#endregion
  100. export { _default };