UNPKG

796 BTypeScriptView Raw
1import { ElementUIComponent } from './component'
2
3export type ProgressType = 'line' | 'circle'
4export type ProgressStatus = 'success' | 'exception'
5
6/** Progress Component */
7export declare class ElProgress extends ElementUIComponent {
8 /** Percentage, required */
9 percentage: number
10
11 /** The type of progress bar */
12 type: ProgressType
13
14 /** The width of progress bar */
15 strokeWidth: number
16
17 /** Whether to place the percentage inside progress bar, only works when type is 'line' */
18 textInside: boolean
19
20 /** The current status of progress bar */
21 status: ProgressStatus
22
23 /** Background color of progress bar. Overrides `status` prop */
24 color: string
25
26 /** The canvas width of circle progress bar */
27 width: number
28
29 /** Whether to show percentage */
30 showText: boolean
31}