type.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. export interface TdRateProps {
  2. allowHalf?: {
  3. type: BooleanConstructor;
  4. value?: boolean;
  5. };
  6. color?: {
  7. type: null;
  8. value?: string | Array<string>;
  9. };
  10. count?: {
  11. type: NumberConstructor;
  12. value?: number;
  13. };
  14. disabled?: {
  15. type: BooleanConstructor;
  16. value?: boolean;
  17. };
  18. gap?: {
  19. type: null;
  20. value?: string | number;
  21. };
  22. icon?: {
  23. type: null;
  24. value?: string | string[];
  25. };
  26. iconPrefix?: {
  27. type: StringConstructor;
  28. value?: string;
  29. };
  30. placement?: {
  31. type: StringConstructor;
  32. value?: 'top' | 'bottom' | '';
  33. };
  34. showText?: {
  35. type: BooleanConstructor;
  36. value?: boolean;
  37. };
  38. size?: {
  39. type: StringConstructor;
  40. value?: string;
  41. };
  42. texts?: {
  43. type: ArrayConstructor;
  44. value?: Array<string>;
  45. };
  46. value?: {
  47. type: NumberConstructor;
  48. value?: number;
  49. };
  50. defaultValue?: {
  51. type: NumberConstructor;
  52. value?: number;
  53. };
  54. variant?: {
  55. type: StringConstructor;
  56. value?: 'outline' | 'filled';
  57. };
  58. }