tdesign-mobile-vue
Version:
tdesign-mobile-vue
52 lines (51 loc) • 1.6 kB
TypeScript
import { TdImageProps } from './type';
import { PropType } from 'vue';
declare const _default: {
alt: {
type: StringConstructor;
default: string;
};
error: {
type: PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
};
fallback: {
type: StringConstructor;
default: string;
};
fit: {
type: PropType<"fill" | "none" | "contain" | "cover" | "scale-down">;
default: "fill" | "none" | "contain" | "cover" | "scale-down";
validator(val: TdImageProps['fit']): boolean;
};
lazy: BooleanConstructor;
loading: {
type: PropType<string | ((h: typeof import("vue").h) => import("..").SlotReturnValue)>;
};
position: {
type: StringConstructor;
default: string;
};
referrerpolicy: {
type: PropType<"origin" | "no-referrer" | "no-referrer-when-downgrade" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url">;
validator(val: TdImageProps['referrerpolicy']): boolean;
};
shape: {
type: PropType<"circle" | "round" | "square">;
default: "circle" | "round" | "square";
validator(val: TdImageProps['shape']): boolean;
};
src: {
type: StringConstructor;
default: string;
};
srcset: {
type: PropType<import("./type").ImageSrcset>;
};
onError: PropType<(context: {
e: Event;
}) => void>;
onLoad: PropType<(context: {
e: Event;
}) => void>;
};
export default _default;