progress.d.ts 1013 B

12345678910111213141516171819202122232425262728293031323334353637
  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. /** Circle progress bar stroke line cap */
  13. strokeLinecap: string
  14. /** Whether to place the percentage inside progress bar, only works when type is 'line' */
  15. textInside: boolean
  16. /** The current status of progress bar */
  17. status: ProgressStatus
  18. /** Background color of progress bar. Overrides `status` prop */
  19. color: string | Function | Array<string | { color: string, percentage: number }>
  20. /** The canvas width of circle progress bar */
  21. width: number
  22. /** Whether to show percentage */
  23. showText: boolean
  24. /** Template function of the content */
  25. format(percentage: number): string
  26. }