project init

This commit is contained in:
limqhz
2022-11-17 17:05:46 +08:00
parent 597b107cf7
commit eec0e5575f
108 changed files with 4483 additions and 36 deletions

38
components/image/type.d.ts vendored Normal file
View File

@@ -0,0 +1,38 @@
export interface TdImageProps {
error?: {
type: StringConstructor;
value?: string;
};
externalClasses?: {
type: ArrayConstructor;
value?: ['t-class', 't-class-load'];
};
lazy?: {
type: BooleanConstructor;
value?: boolean;
};
loading?: {
type: StringConstructor;
value?: string;
};
shape?: {
type: StringConstructor;
value?: 'circle' | 'round' | 'square';
};
src?: {
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';
};
webp?: {
type: BooleanConstructor;
value?: boolean;
};
showMenuByLongpress?: {
type: BooleanConstructor;
value?: boolean;
};
}