interface.d.ts 866 B

1234567891011121314151617181920212223242526
  1. /// <reference types="react" />
  2. export interface ProgressProps {
  3. id?: string;
  4. strokeWidth?: number;
  5. trailWidth?: number;
  6. className?: string;
  7. percent?: number | number[];
  8. strokeColor?: StrokeColorType;
  9. trailColor?: string;
  10. strokeLinecap?: StrokeLinecapType;
  11. prefixCls?: string;
  12. style?: React.CSSProperties;
  13. gapDegree?: number;
  14. gapPosition?: GapPositionType;
  15. transition?: string;
  16. onClick?: React.MouseEventHandler;
  17. steps?: number | {
  18. count: number;
  19. gap: number;
  20. };
  21. }
  22. export type StrokeColorObject = Record<string, string>;
  23. export type BaseStrokeColorType = string | StrokeColorObject;
  24. export type StrokeColorType = BaseStrokeColorType | BaseStrokeColorType[];
  25. export type GapPositionType = 'top' | 'right' | 'bottom' | 'left';
  26. export type StrokeLinecapType = 'round' | 'butt' | 'square';