Steps

Show the progress bar as per the steps.

Attribute NameDescriptionTypeDefaultMandatory
classNameOutermost layer overlapping styleStringfalse
activeIndexCurrent active stepNumber1true
failIndexCurrent failed step (effective only   in vertical mode)Number0false
directionDisplaying direction, options including vertical and horizontalStringhorizontalfalse
sizeUniform icon size, in pxNumber0false
itemsStep detailsArray[{title, description, icon,   activeIcon, size}][]true

Items attribute detailed description

Attribute nameDescriptionTypeDefaultMandatory
items.titleTitle of step detailsStringtrue
items.descriptionDescription of step detailsStringtrue
items.iconIcon for unreached step (effective   only in vertical mode)Stringtrue
items.activeIconIcon for reached step (effective   only in vertical mode)Stringtrue
items.sizeSize of icon for reached step, in px (effective only in vertical mode)Numbertrue

Example

copy
{
  "usingComponents": {
    "steps": "mini-antui/es/steps/index"
  }
}
copy
<steps 
  activeIndex="{{activeIndex}}"
  items="{{items}}"
</steps>
copy
Page({
  data: {
    activeIndex: 1,
    items: [{
      title: 'Step one',
      description: 'This is step one',
    }, {
      title: 'Step two',
      description: 'This is step two',
    }, {
      title: 'Step three',
      description: 'This is step three',
    }]
  }
});