UNPKG

tdesign-mobile-vue

Version:
217 lines (216 loc) 9.53 kB
import './style'; import { TdImageViewerProps } from './type'; export * from './type'; export type ImageViewerProps = TdImageViewerProps; export declare const ImageViewer: { new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{ closeBtn: { type: import("vue").PropType<boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; default: boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue); }; cover: { type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>; }; deleteBtn: { type: import("vue").PropType<boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; default: boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue); }; image: { type: import("vue").PropType<(h: typeof import("vue").h, props: import("@/components").ImageSlotParams) => import("@/common").SlotReturnValue>; }; images: { type: import("vue").PropType<(string | import("@/components").ImageInfo)[]>; default: () => (string | import("@/components").ImageInfo)[]; }; index: { type: NumberConstructor; default: any; }; defaultIndex: { type: NumberConstructor; }; maxZoom: { type: NumberConstructor; default: number; }; showIndex: BooleanConstructor; visible: { type: BooleanConstructor; default: any; }; modelValue: { type: BooleanConstructor; default: any; }; defaultVisible: BooleanConstructor; onClose: import("vue").PropType<(context: { trigger: import("@/components").ImageViewerCloseTrigger; visible: boolean; index: number; }) => void>; onDelete: import("vue").PropType<(index: number) => void>; onIndexChange: import("vue").PropType<(index: number, context: { trigger: "next" | "prev"; }) => void>; }>> & Readonly<{ onClose?: (...args: any[]) => any; onDelete?: (...args: any[]) => any; "onIndex-change"?: (...args: any[]) => any; "onUpdate:index"?: (...args: any[]) => any; "onUpdate:modelValue"?: (...args: any[]) => any; "onUpdate:visible"?: (...args: any[]) => any; }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "delete" | "index-change" | "update:index" | "update:modelValue" | "update:visible")[], import("vue").PublicProps, { closeBtn: boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue); deleteBtn: boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue); images: (string | import("@/components").ImageInfo)[]; index: number; maxZoom: number; showIndex: boolean; visible: boolean; modelValue: boolean; defaultVisible: boolean; }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly<import("vue").ExtractPropTypes<{ closeBtn: { type: import("vue").PropType<boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; default: boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue); }; cover: { type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>; }; deleteBtn: { type: import("vue").PropType<boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; default: boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue); }; image: { type: import("vue").PropType<(h: typeof import("vue").h, props: import("@/components").ImageSlotParams) => import("@/common").SlotReturnValue>; }; images: { type: import("vue").PropType<(string | import("@/components").ImageInfo)[]>; default: () => (string | import("@/components").ImageInfo)[]; }; index: { type: NumberConstructor; default: any; }; defaultIndex: { type: NumberConstructor; }; maxZoom: { type: NumberConstructor; default: number; }; showIndex: BooleanConstructor; visible: { type: BooleanConstructor; default: any; }; modelValue: { type: BooleanConstructor; default: any; }; defaultVisible: BooleanConstructor; onClose: import("vue").PropType<(context: { trigger: import("@/components").ImageViewerCloseTrigger; visible: boolean; index: number; }) => void>; onDelete: import("vue").PropType<(index: number) => void>; onIndexChange: import("vue").PropType<(index: number, context: { trigger: "next" | "prev"; }) => void>; }>> & Readonly<{ onClose?: (...args: any[]) => any; onDelete?: (...args: any[]) => any; "onIndex-change"?: (...args: any[]) => any; "onUpdate:index"?: (...args: any[]) => any; "onUpdate:modelValue"?: (...args: any[]) => any; "onUpdate:visible"?: (...args: any[]) => any; }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, { closeBtn: boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue); deleteBtn: boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue); images: (string | import("@/components").ImageInfo)[]; index: number; maxZoom: number; showIndex: boolean; visible: boolean; modelValue: boolean; defaultVisible: boolean; }>; __isFragment?: never; __isTeleport?: never; __isSuspense?: never; } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{ closeBtn: { type: import("vue").PropType<boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; default: boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue); }; cover: { type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>; }; deleteBtn: { type: import("vue").PropType<boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; default: boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue); }; image: { type: import("vue").PropType<(h: typeof import("vue").h, props: import("@/components").ImageSlotParams) => import("@/common").SlotReturnValue>; }; images: { type: import("vue").PropType<(string | import("@/components").ImageInfo)[]>; default: () => (string | import("@/components").ImageInfo)[]; }; index: { type: NumberConstructor; default: any; }; defaultIndex: { type: NumberConstructor; }; maxZoom: { type: NumberConstructor; default: number; }; showIndex: BooleanConstructor; visible: { type: BooleanConstructor; default: any; }; modelValue: { type: BooleanConstructor; default: any; }; defaultVisible: BooleanConstructor; onClose: import("vue").PropType<(context: { trigger: import("@/components").ImageViewerCloseTrigger; visible: boolean; index: number; }) => void>; onDelete: import("vue").PropType<(index: number) => void>; onIndexChange: import("vue").PropType<(index: number, context: { trigger: "next" | "prev"; }) => void>; }>> & Readonly<{ onClose?: (...args: any[]) => any; onDelete?: (...args: any[]) => any; "onIndex-change"?: (...args: any[]) => any; "onUpdate:index"?: (...args: any[]) => any; "onUpdate:modelValue"?: (...args: any[]) => any; "onUpdate:visible"?: (...args: any[]) => any; }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "delete" | "index-change" | "update:index" | "update:modelValue" | "update:visible")[], "close" | "delete" | "index-change" | "update:index" | "update:modelValue" | "update:visible", { closeBtn: boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue); deleteBtn: boolean | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue); images: (string | import("@/components").ImageInfo)[]; index: number; maxZoom: number; showIndex: boolean; visible: boolean; modelValue: boolean; defaultVisible: boolean; }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin; export default ImageViewer;