2017-10-17 16:36:12 +08:00
|
|
|
import { ElementUIComponent } from './component'
|
|
|
|
|
|
|
|
export type ProgressType = 'line' | 'circle'
|
2018-11-13 11:24:15 +08:00
|
|
|
export type ProgressStatus = 'success' | 'exception' | 'text'
|
2017-10-17 16:36:12 +08:00
|
|
|
|
|
|
|
/** Progress Component */
|
|
|
|
export declare class ElProgress extends ElementUIComponent {
|
|
|
|
/** Percentage, required */
|
|
|
|
percentage: number
|
|
|
|
|
|
|
|
/** The type of progress bar */
|
|
|
|
type: ProgressType
|
|
|
|
|
|
|
|
/** The width of progress bar */
|
|
|
|
strokeWidth: number
|
|
|
|
|
|
|
|
/** Whether to place the percentage inside progress bar, only works when type is 'line' */
|
|
|
|
textInside: boolean
|
|
|
|
|
|
|
|
/** The current status of progress bar */
|
|
|
|
status: ProgressStatus
|
|
|
|
|
2018-03-26 11:43:19 +08:00
|
|
|
/** Background color of progress bar. Overrides `status` prop */
|
|
|
|
color: string
|
|
|
|
|
2017-10-17 16:36:12 +08:00
|
|
|
/** The canvas width of circle progress bar */
|
|
|
|
width: number
|
|
|
|
|
|
|
|
/** Whether to show percentage */
|
|
|
|
showText: boolean
|
|
|
|
}
|