type.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. export interface TdImageProps {
  2. error?: {
  3. type: StringConstructor;
  4. value?: string;
  5. };
  6. height?: {
  7. type: null;
  8. value?: string | number;
  9. };
  10. lazy?: {
  11. type: BooleanConstructor;
  12. value?: boolean;
  13. };
  14. loading?: {
  15. type: StringConstructor;
  16. value?: string;
  17. };
  18. mode?: {
  19. type: StringConstructor;
  20. value?: 'scaleToFill' | 'aspectFit' | 'aspectFill' | 'widthFix' | 'heightFix' | 'top' | 'bottom' | 'center' | 'left' | 'right' | 'top left' | 'top right' | 'bottom left' | 'bottom right';
  21. };
  22. shape?: {
  23. type: StringConstructor;
  24. value?: 'circle' | 'round' | 'square';
  25. };
  26. showMenuByLongpress?: {
  27. type: BooleanConstructor;
  28. value?: boolean;
  29. };
  30. src?: {
  31. type: StringConstructor;
  32. value?: string;
  33. };
  34. tId?: {
  35. type: StringConstructor;
  36. value?: string;
  37. };
  38. webp?: {
  39. type: BooleanConstructor;
  40. value?: boolean;
  41. };
  42. width?: {
  43. type: null;
  44. value?: string | number;
  45. };
  46. }