type.d.ts 919 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { BadgeProps } from '../badge/index';
  2. import { ImageProps } from '../image/index';
  3. export interface TdGridItemProps {
  4. badgeProps?: {
  5. type: ObjectConstructor;
  6. value?: BadgeProps;
  7. };
  8. description?: {
  9. type: StringConstructor;
  10. value?: string;
  11. };
  12. icon?: {
  13. type: null;
  14. value?: string | object;
  15. };
  16. image?: {
  17. type: StringConstructor;
  18. value?: string;
  19. };
  20. imageProps?: {
  21. type: ObjectConstructor;
  22. value?: ImageProps;
  23. };
  24. jumpType?: {
  25. type: StringConstructor;
  26. value?: 'redirect-to' | 'switch-tab' | 'relaunch' | 'navigate-to';
  27. };
  28. layout?: {
  29. type: StringConstructor;
  30. value?: 'vertical' | 'horizontal';
  31. };
  32. text?: {
  33. type: StringConstructor;
  34. value?: string;
  35. };
  36. url?: {
  37. type: StringConstructor;
  38. value?: string;
  39. };
  40. }