UNPKG

tdesign-mobile-vue

Version:
184 lines (183 loc) 7.84 kB
import './style'; import { TdImageProps } from './type'; export * from './type'; export type ImageProps = TdImageProps; export declare const Image: { new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{ alt: { type: StringConstructor; default: string; }; error: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; fallback: { type: StringConstructor; default: string; }; fit: { type: import("vue").PropType<"contain" | "cover" | "fill" | "none" | "scale-down">; default: "contain" | "cover" | "fill" | "none" | "scale-down"; validator(val: "contain" | "cover" | "fill" | "none" | "scale-down"): boolean; }; lazy: BooleanConstructor; loading: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; position: { type: StringConstructor; default: string; }; referrerpolicy: { type: import("vue").PropType<"no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url">; validator(val: "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"): boolean; }; shape: { type: import("vue").PropType<"circle" | "round" | "square">; default: "circle" | "round" | "square"; validator(val: "circle" | "round" | "square"): boolean; }; src: { type: StringConstructor; default: string; }; srcset: { type: import("vue").PropType<import("@/components").ImageSrcset>; }; onError: import("vue").PropType<(context: { e: Event; }) => void>; onLoad: import("vue").PropType<(context: { e: Event; }) => void>; }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, { alt: string; fallback: string; fit: "contain" | "cover" | "fill" | "none" | "scale-down"; lazy: boolean; position: string; shape: "circle" | "round" | "square"; src: string; }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly<import("vue").ExtractPropTypes<{ alt: { type: StringConstructor; default: string; }; error: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; fallback: { type: StringConstructor; default: string; }; fit: { type: import("vue").PropType<"contain" | "cover" | "fill" | "none" | "scale-down">; default: "contain" | "cover" | "fill" | "none" | "scale-down"; validator(val: "contain" | "cover" | "fill" | "none" | "scale-down"): boolean; }; lazy: BooleanConstructor; loading: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; position: { type: StringConstructor; default: string; }; referrerpolicy: { type: import("vue").PropType<"no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url">; validator(val: "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"): boolean; }; shape: { type: import("vue").PropType<"circle" | "round" | "square">; default: "circle" | "round" | "square"; validator(val: "circle" | "round" | "square"): boolean; }; src: { type: StringConstructor; default: string; }; srcset: { type: import("vue").PropType<import("@/components").ImageSrcset>; }; onError: import("vue").PropType<(context: { e: Event; }) => void>; onLoad: import("vue").PropType<(context: { e: Event; }) => void>; }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, { alt: string; fallback: string; fit: "contain" | "cover" | "fill" | "none" | "scale-down"; lazy: boolean; position: string; shape: "circle" | "round" | "square"; src: string; }>; __isFragment?: never; __isTeleport?: never; __isSuspense?: never; } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{ alt: { type: StringConstructor; default: string; }; error: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; fallback: { type: StringConstructor; default: string; }; fit: { type: import("vue").PropType<"contain" | "cover" | "fill" | "none" | "scale-down">; default: "contain" | "cover" | "fill" | "none" | "scale-down"; validator(val: "contain" | "cover" | "fill" | "none" | "scale-down"): boolean; }; lazy: BooleanConstructor; loading: { type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; position: { type: StringConstructor; default: string; }; referrerpolicy: { type: import("vue").PropType<"no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url">; validator(val: "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"): boolean; }; shape: { type: import("vue").PropType<"circle" | "round" | "square">; default: "circle" | "round" | "square"; validator(val: "circle" | "round" | "square"): boolean; }; src: { type: StringConstructor; default: string; }; srcset: { type: import("vue").PropType<import("@/components").ImageSrcset>; }; onError: import("vue").PropType<(context: { e: Event; }) => void>; onLoad: import("vue").PropType<(context: { e: Event; }) => void>; }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, { alt: string; fallback: string; fit: "contain" | "cover" | "fill" | "none" | "scale-down"; lazy: boolean; position: string; shape: "circle" | "round" | "square"; src: string; }, {}, 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 Image;