UNPKG

hongluan-ui

Version:
39 lines (38 loc) 2.19 kB
import type { ExtractPropTypes } from 'vue'; import type ImageViewer from './image-viewer.vue'; export declare type ImageViewerAction = 'zoomIn' | 'zoomOut' | 'clockwise' | 'anticlockwise'; export interface ImageViewerMode { name: string; icon: string; } export declare const imageViewerProps: { readonly urlList: import("hongluan-ui/es/utils").EpPropFinalized<import("vue").PropType<string[]>, unknown, unknown, () => [], boolean>; readonly zIndex: { readonly type: import("vue").PropType<number>; readonly required: false; readonly validator: (val: unknown) => boolean; __epPropKey: true; }; readonly initialIndex: import("hongluan-ui/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>; readonly infinite: import("hongluan-ui/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>; readonly hideOnClickModal: BooleanConstructor; readonly teleported: BooleanConstructor; readonly closeOnPressEscape: import("hongluan-ui/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>; readonly zoomRate: import("hongluan-ui/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>; readonly minScale: import("hongluan-ui/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>; readonly maxScale: import("hongluan-ui/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>; readonly crossorigin: { readonly type: import("vue").PropType<import("hongluan-ui/es/utils").EpPropMergeType<import("vue").PropType<"" | "anonymous" | "use-credentials">, unknown, unknown>>; readonly required: false; readonly validator: (val: unknown) => boolean; __epPropKey: true; }; }; export declare type ImageViewerProps = ExtractPropTypes<typeof imageViewerProps>; export declare const imageViewerEmits: { close: () => boolean; switch: (index: number) => boolean; rotate: (deg: number) => boolean; }; export declare type ImageViewerEmits = typeof imageViewerEmits; export declare type ImageViewerInstance = InstanceType<typeof ImageViewer>;