progress.d.ts 943 B

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