step.d.ts 689 B

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