step.d.ts 735 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { VNode } from 'vue'
  2. import { ElementUIComponent } from './component'
  3. import { ElementUIIcon } from './icon'
  4. export type StepStatus = 'wait' | 'process' | 'finish' | 'error' | 'success'
  5. export interface StepRenderSlots {
  6. /** Custom icon */
  7. icon: VNode[],
  8. /** Step title */
  9. title: VNode[],
  10. /** Step description */
  11. description: VNode[],
  12. [key: string]: VNode[]
  13. }
  14. /** Step Component */
  15. export declare class ElStep extends ElementUIComponent {
  16. /** Step title */
  17. title: string
  18. /** Step description */
  19. description: string
  20. /** Step icon */
  21. icon: ElementUIIcon
  22. /** Current status. It will be automatically set by Steps if not configured. */
  23. status: StepStatus
  24. readonly $slots: StepRenderSlots
  25. }