Steps

Show the progress bar as per the steps.

Property

DescriptionTypeDefault

Required

classNameOutermost layer overlapping style.String

No

activeIndexCurrent active step.Number1

Yes

failIndex Current failed step (effective only in vertical mode).Number0

No

directionDisplaying direction, options including vertical and horizontal.Stringhorizontal

No

sizeUniform icon size, in px.Number0

No

itemsStep details.Array[{title, description, icon,   activeIcon, size}][]

Yes

Items attribute detailed description

Property

DescriptionType

Required

items.titleTitle of step details.String

Yes

items.descriptionDescription of step details.String

Yes

items.iconIcon for unreached step (effective only in vertical mode).String

Yes

items.activeIconIcon for reached step (effective only in vertical mode)String

Yes

items.sizeSize of icon for reached step, in px. (effective only in vertical mode)Number

Yes

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',
    }]
  }
});