mand-mobile/components/steps
xuxiaoyan 5ad9d7166f example(steps): fix step value 2019-01-18 17:48:45 +08:00
..
demo example(steps): fix step value 2019-01-18 17:48:45 +08:00
test fix(steps): style compatibility issues 2018-12-17 16:52:28 +08:00
README.en-US.md doc: update readme example link 2018-12-18 16:06:20 +08:00
README.md doc: update readme example link 2018-12-18 16:06:20 +08:00
component.js Initial commit 2018-03-26 16:04:04 +08:00
index.vue code-style(steps): clear invalid code 2018-12-17 16:56:03 +08:00

README.en-US.md

title preview
Steps https://mand-mobile.github.io/2x-doc/examples/#/steps

A navigation bar helps users complete tasks through the process and displays the current step

Import

import { Steps } from 'mand-mobile'

Vue.component(Steps.name, Steps)

Code Examples

API

Steps Props

Props Description Type Default Note
steps array of step information Array<{name, text}> - -
current current step Number 0 support for decimal point
direction to specify the direction of the step bar String horizontal horizontal, vertical
transition progress change transition Boolean false -
vertical-adaptive step height adaptive Boolean false only for vertical, ** if set to true then adaptive according to container height, setting .mfe-steps height is necessary**

Steps Slots

reached

Slot of step icon that has been completed, generally used to customize the completed step icon, and the scoped slot is supported as follows:

<template slot="reached" slot-scope="{ index }">
  <!-- Custom icon if the index value is 1 -->
  <md-icon name="checked" v-if="index === 1"></md-icon>
  <!-- Default step icon -->
  <div class="step-node-default" v-else></div>
</template>

current

Slot of current step icon, generally used to customize the current step icon, supports scoped slot and has the same usage as reached

content

slot of step content

<template
  slot="content"
  slot-scope="{ index, step }"
>
  <!-- index step index -->
  <!-- step step data -->
</template>