Skip to content

Step Progress

Baisc Usage

iStepProgress differs from progress bar components of Element Plus that the later displays only numerical progress, while iStepProgress displays step progress, such as workflow steps or task status.

You can customize the text of the step progress by using the text slot.

size controls the diameter of the outer circle of the circular progress bar, strokeWidth controls the width of the circular progress bar, and gap controls the spacing between the circular progress bars.

Rectangle Progress Bar

The default shape of iStepProgress is a circle. Yon can change it to a rectangle by setting the type attribute to 'line'. In this case, you can set the size of the progress bar by setting the height and width attributes.

Theme Color

set color attribute to change the theme color of the progress bar.

API

Attributes

Nameis RequiredDescriptionTypeDefault Value
currentNocurrent stepNumber, String, Object0
stepsNowhole step listArrayNumber
typeNoshape of progress barString'circle'
strokeWidthNowidth of progressbar, valid only when type='circle'Number20
sizeNodiameter of outer circle, valid only when type='circle'Number100
gapNogap of two progress barsNumber20
stepKeyNokey name of step,valid only when steps attribute is Array of Object and current is an objectstring'id'
widthNowidth of progress bar, valid only when type='line'Number10
heightNoheight of progress bar, valid only when type='line'Number30
colorNotheme colorstringvar(--el-color-success)

Slot

Slot NameDescription
texttext of current step