You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
8.2 KiB

3 months ago
  1. declare function clickHandler(): void;
  2. declare function __VLS_template(): {
  3. error?(_: {}): any;
  4. placeholder?(_: {}): any;
  5. viewer?(_: {}): any;
  6. progress?(_: {
  7. activeIndex: number;
  8. total: number;
  9. }): any;
  10. toolbar?(_: {
  11. actions: (action: import("element-plus/es/components/image-viewer").ImageViewerAction, options?: {}) => void;
  12. prev: () => void;
  13. next: () => void;
  14. reset: () => void;
  15. activeIndex: number;
  16. setActiveItem: (index: number) => void;
  17. }): any;
  18. };
  19. declare const __VLS_component: import("vue").DefineComponent<{
  20. readonly hideOnClickModal: BooleanConstructor;
  21. readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  22. readonly fit: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "fill" | "contain" | "none" | "cover" | "scale-down", unknown, "", boolean>;
  23. readonly loading: {
  24. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "lazy" | "eager", unknown>>;
  25. readonly required: false;
  26. readonly validator: ((val: unknown) => boolean) | undefined;
  27. __epPropKey: true;
  28. };
  29. readonly lazy: BooleanConstructor;
  30. readonly scrollContainer: {
  31. 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>>;
  32. readonly required: false;
  33. readonly validator: ((val: unknown) => boolean) | undefined;
  34. __epPropKey: true;
  35. };
  36. readonly previewSrcList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
  37. readonly previewTeleported: BooleanConstructor;
  38. readonly zIndex: {
  39. readonly type: import("vue").PropType<number>;
  40. readonly required: false;
  41. readonly validator: ((val: unknown) => boolean) | undefined;
  42. __epPropKey: true;
  43. };
  44. readonly initialIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  45. readonly infinite: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  46. readonly closeOnPressEscape: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  47. readonly zoomRate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
  48. readonly minScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
  49. readonly maxScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
  50. readonly showProgress: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  51. readonly crossorigin: {
  52. 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>>;
  53. readonly required: false;
  54. readonly validator: ((val: unknown) => boolean) | undefined;
  55. __epPropKey: true;
  56. };
  57. }, {
  58. /** @description manually open preview */
  59. showPreview: typeof clickHandler;
  60. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
  61. switch: (val: number) => void;
  62. show: () => void;
  63. close: () => void;
  64. error: (evt: Event) => void;
  65. load: (evt: Event) => void;
  66. }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  67. readonly hideOnClickModal: BooleanConstructor;
  68. readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  69. readonly fit: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "fill" | "contain" | "none" | "cover" | "scale-down", unknown, "", boolean>;
  70. readonly loading: {
  71. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "lazy" | "eager", unknown>>;
  72. readonly required: false;
  73. readonly validator: ((val: unknown) => boolean) | undefined;
  74. __epPropKey: true;
  75. };
  76. readonly lazy: BooleanConstructor;
  77. readonly scrollContainer: {
  78. 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>>;
  79. readonly required: false;
  80. readonly validator: ((val: unknown) => boolean) | undefined;
  81. __epPropKey: true;
  82. };
  83. readonly previewSrcList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
  84. readonly previewTeleported: BooleanConstructor;
  85. readonly zIndex: {
  86. readonly type: import("vue").PropType<number>;
  87. readonly required: false;
  88. readonly validator: ((val: unknown) => boolean) | undefined;
  89. __epPropKey: true;
  90. };
  91. readonly initialIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  92. readonly infinite: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  93. readonly closeOnPressEscape: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  94. readonly zoomRate: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
  95. readonly minScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
  96. readonly maxScale: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
  97. readonly showProgress: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  98. readonly crossorigin: {
  99. 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>>;
  100. readonly required: false;
  101. readonly validator: ((val: unknown) => boolean) | undefined;
  102. __epPropKey: true;
  103. };
  104. }>> & {
  105. onShow?: (() => any) | undefined;
  106. onLoad?: ((evt: Event) => any) | undefined;
  107. onError?: ((evt: Event) => any) | undefined;
  108. onClose?: (() => any) | undefined;
  109. onSwitch?: ((val: number) => any) | undefined;
  110. }, {
  111. readonly infinite: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  112. readonly src: string;
  113. readonly fit: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "fill" | "contain" | "none" | "cover" | "scale-down", unknown>;
  114. readonly initialIndex: number;
  115. readonly lazy: boolean;
  116. readonly closeOnPressEscape: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  117. readonly zoomRate: number;
  118. readonly minScale: number;
  119. readonly maxScale: number;
  120. readonly showProgress: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  121. readonly hideOnClickModal: boolean;
  122. readonly previewSrcList: string[];
  123. readonly previewTeleported: boolean;
  124. }>;
  125. declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
  126. export default _default;
  127. type __VLS_WithTemplateSlots<T, S> = T & {
  128. new (): {
  129. $slots: S;
  130. };
  131. };