progress.d.ts 712 B

12345678910111213141516171819202122232425262728
  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. /** The canvas width of circle progress bar */
  17. width: number
  18. /** Whether to show percentage */
  19. showText: boolean
  20. }