tdesign-miniprogram
Version:
TDesign Component for miniprogram
47 lines (46 loc) • 1.09 kB
TypeScript
export interface TdImageProps {
error?: {
type: StringConstructor;
value?: string;
};
height?: {
type: null;
value?: string | number;
};
lazy?: {
type: BooleanConstructor;
value?: boolean;
};
loading?: {
type: StringConstructor;
value?: string;
};
mode?: {
type: StringConstructor;
value?: 'scaleToFill' | 'aspectFit' | 'aspectFill' | 'widthFix' | 'heightFix' | 'top' | 'bottom' | 'center' | 'left' | 'right' | 'top left' | 'top right' | 'bottom left' | 'bottom right';
};
shape?: {
type: StringConstructor;
value?: 'circle' | 'round' | 'square';
};
showMenuByLongpress?: {
type: BooleanConstructor;
value?: boolean;
};
src?: {
type: StringConstructor;
value?: string;
};
tId?: {
type: StringConstructor;
value?: string;
};
webp?: {
type: BooleanConstructor;
value?: boolean;
};
width?: {
type: null;
value?: string | number;
};
}