type.d.ts 855 B

123456789101112131415161718192021222324252627282930313233343536
  1. export interface TdProgressProps {
  2. color?: {
  3. type: null;
  4. value?: string | Array<string> | Record<string, string>;
  5. };
  6. label?: {
  7. type: null;
  8. value?: string | boolean;
  9. };
  10. percentage?: {
  11. type: NumberConstructor;
  12. value?: number;
  13. };
  14. size?: {
  15. type: null;
  16. value?: string | number;
  17. };
  18. status?: {
  19. type: StringConstructor;
  20. value?: ProgressStatus;
  21. };
  22. strokeWidth?: {
  23. type: null;
  24. value?: string | number;
  25. };
  26. theme?: {
  27. type: StringConstructor;
  28. value?: ProgressTheme;
  29. };
  30. trackColor?: {
  31. type: StringConstructor;
  32. value?: string;
  33. };
  34. }
  35. export declare type ProgressStatus = 'success' | 'error' | 'warning' | 'active';
  36. export declare type ProgressTheme = 'line' | 'plump' | 'circle';