Skip to content

Commit

Permalink
refactor: ts Progress (ant-design#2640)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddcat1115 authored and benjycui committed Aug 9, 2016
1 parent 08c4f82 commit e0d02b1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ export { Popconfirm };
import Popover from './popover';
export { Popover };

import Progress from './progress';
export { Progress };

import Transfer from './transfer';
export { Transfer };

Expand Down
16 changes: 15 additions & 1 deletion components/progress/progress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,21 @@ const statusColorMap = {
success: '#87d068',
};

export default class Line extends React.Component {
export interface ProgressProps {
type?: 'line' | 'circle';
percent?: number;
format?: (percent: number) => string;
status?: 'success' | 'active' | 'exception';
showInfo?: boolean;
strokeWidth?: number;
width?: number;
style?: React.CSSProperties;
}

export default class Progress extends React.Component<ProgressProps, any> {
static Line: any;
static Circle: any;

static defaultProps = {
type: 'line',
percent: 0,
Expand Down

0 comments on commit e0d02b1

Please sign in to comment.