type.d.ts 804 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. export interface TdBadgeProps {
  2. color?: {
  3. type: StringConstructor;
  4. value?: string;
  5. };
  6. content?: {
  7. type: StringConstructor;
  8. value?: string;
  9. };
  10. count?: {
  11. type: null;
  12. value?: string | number;
  13. };
  14. dot?: {
  15. type: BooleanConstructor;
  16. value?: boolean;
  17. };
  18. maxCount?: {
  19. type: NumberConstructor;
  20. value?: number;
  21. };
  22. offset?: {
  23. type: ArrayConstructor;
  24. value?: Array<string | number>;
  25. };
  26. shape?: {
  27. type: StringConstructor;
  28. value?: 'circle' | 'square' | 'bubble' | 'ribbon';
  29. };
  30. showZero?: {
  31. type: BooleanConstructor;
  32. value?: boolean;
  33. };
  34. size?: {
  35. type: StringConstructor;
  36. value?: 'medium' | 'large';
  37. };
  38. }