/** * @file 定义Progress的数据接口 * @author liuhanwei */ import { CSSProperties } from 'react'; import { SizeType } from '../config-provider/SizeContext'; export type ProgressType = 'line' | 'circle'; export type ProgressInfoPosition = 'outer' | 'inner'; export type ProgressStatus = 'active' | 'success' | 'error'; export type ProgressStrokeLinecap = 'round' | 'square'; export type ProgressInfoType = 'text' | 'icon' | 'none'; export type ProgressSizeType = SizeType; export interface ProgressSuccessStyle { strokeColor: string; textColor: string; textSize: number; } export interface ProgressProps { percent?: number; type?: ProgressType; size?: SizeType; infoPosition?: ProgressInfoPosition; status?: ProgressStatus; stageWidth?: number; strokeWidth?: number; strokeRatio?: number; strokeColor?: string; iconStrokeColor?: string; strokeLinecap?: ProgressStrokeLinecap; trailColor?: string; textColor?: string; infoType?: ProgressInfoType; labelText?: string; textSize?: number; style?: CSSProperties; className?: string; prefixCls?: string; successStyle?: ProgressSuccessStyle; format?: Function; }