1
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
/// <reference types="react" />
|
||||
export type SemanticName = 'root' | 'rail' | 'track';
|
||||
export interface ProgressProps {
|
||||
id?: string;
|
||||
strokeWidth?: number;
|
||||
railWidth?: number;
|
||||
className?: string;
|
||||
classNames?: Partial<Record<SemanticName, string>>;
|
||||
styles?: Partial<Record<SemanticName, React.CSSProperties>>;
|
||||
percent?: number | number[];
|
||||
strokeColor?: StrokeColorType;
|
||||
railColor?: string;
|
||||
strokeLinecap?: StrokeLinecapType;
|
||||
prefixCls?: string;
|
||||
style?: React.CSSProperties;
|
||||
gapDegree?: number;
|
||||
gapPosition?: GapPositionType;
|
||||
transition?: string;
|
||||
onClick?: React.MouseEventHandler;
|
||||
steps?: number | {
|
||||
count: number;
|
||||
gap: number;
|
||||
};
|
||||
loading?: boolean;
|
||||
}
|
||||
export type StrokeColorObject = Record<string, string | boolean>;
|
||||
export type BaseStrokeColorType = string | StrokeColorObject;
|
||||
export type StrokeColorType = BaseStrokeColorType | BaseStrokeColorType[];
|
||||
export type GapPositionType = 'top' | 'right' | 'bottom' | 'left';
|
||||
export type StrokeLinecapType = 'round' | 'butt' | 'square';
|
||||
Reference in New Issue
Block a user