amis-rpc-design/node_modules/rc-progress/lib/interface.d.ts
2023-10-07 19:42:30 +08:00

27 lines
868 B
TypeScript

/// <reference types="react" />
export interface ProgressProps {
id?: string;
strokeWidth?: number;
trailWidth?: number;
className?: string;
percent?: number | number[];
strokeColor?: StrokeColorType;
trailColor?: string;
strokeLinecap?: StrokeLinecapType;
prefixCls?: string;
style?: React.CSSProperties;
gapDegree?: number;
gapPosition?: GapPositionType;
transition?: string;
onClick?: React.MouseEventHandler;
steps?: number | {
count: number;
space: number;
};
}
export type StrokeColorObject = Record<string, string>;
export type BaseStrokeColorType = string | StrokeColorObject;
export type StrokeColorType = BaseStrokeColorType | BaseStrokeColorType[];
export type GapPositionType = 'top' | 'right' | 'bottom' | 'left';
export type StrokeLinecapType = 'round' | 'butt' | 'square';