1 |
|
2 |
|
3 | import * as React from 'react';
|
4 | import CommonProps from '../util';
|
5 |
|
6 | export interface ProgressProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
|
7 | |
8 |
|
9 |
|
10 | shape?: 'circle' | 'line';
|
11 |
|
12 | |
13 |
|
14 |
|
15 | size?: 'small' | 'medium' | 'large';
|
16 |
|
17 | |
18 |
|
19 |
|
20 | percent?: number;
|
21 |
|
22 | |
23 |
|
24 |
|
25 | state?: 'normal' | 'success' | 'error';
|
26 |
|
27 | |
28 |
|
29 |
|
30 | progressive?: boolean;
|
31 |
|
32 | |
33 |
|
34 |
|
35 | hasBorder?: boolean;
|
36 |
|
37 | |
38 |
|
39 |
|
40 | textRender?: (percent: number, option: {}) => React.ReactNode;
|
41 |
|
42 | |
43 |
|
44 |
|
45 | color?: string;
|
46 |
|
47 | |
48 |
|
49 |
|
50 | backgroundColor?: string;
|
51 | }
|
52 |
|
53 | export default class Progress extends React.Component<ProgressProps, any> {}
|