type.d.ts 904 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import { BadgeProps } from '../badge/index';
  2. import { ImageProps } from '../image/index';
  3. import { ShapeEnum } from '../common/common';
  4. export interface TdAvatarProps {
  5. alt?: {
  6. type: StringConstructor;
  7. value?: string;
  8. };
  9. badgeProps?: {
  10. type: ObjectConstructor;
  11. value?: BadgeProps;
  12. };
  13. bordered?: {
  14. type: BooleanConstructor;
  15. value?: boolean;
  16. };
  17. hideOnLoadFailed?: {
  18. type: BooleanConstructor;
  19. value?: boolean;
  20. };
  21. icon?: {
  22. type: null;
  23. value?: string | object;
  24. };
  25. image?: {
  26. type: StringConstructor;
  27. value?: string;
  28. };
  29. imageProps?: {
  30. type: ObjectConstructor;
  31. value?: ImageProps;
  32. };
  33. shape?: {
  34. type: StringConstructor;
  35. value?: ShapeEnum;
  36. };
  37. size?: {
  38. type: StringConstructor;
  39. value?: string;
  40. };
  41. }