You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-step

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-step

Mobile Step Navigation Component Based On Vue.js

1.3.0
latest
Source
npmnpm
Version published
Weekly downloads
967
-0.72%
Maintainers
1
Weekly downloads
 
Created
Source

vue-step

基于Vue.js的移动端步骤导航组件 Mobile Step Navigation Component Based On Vue.js

NPM

Installation

npm i vue-step -S

API

ParamDescriptionTypeDefault
now-stepThe current step, The starting value is 1.Number-
step-listName of all stepsArray-
active-colorActive status colorString'#1fb11d'
style-typeYou can set 'style1' or 'style2'String'style1'
directionYou can set 'horizontal' or 'vertical'String'horizontal'
@selectedEvent issued when an item is selected / clickedEvent-

Usage

# example
<template>
  <div id="app">
    <vue-step :now-step="nowStep" :step-list="stepList"></vue-step>
  </div>
</template>

<script>
import vueStep from 'vue-step'

export default {
  name: 'app',
  data () {
    return {
      nowStep: 2,
      stepList: [
        'First Step',
        'Second Step',
        'Third Step',
        'Four Step'
      ]
    }
  },
  components: {
    vueStep
  }
}
</script>

Demo Screenshot

Demo Screenshot

License

MIT

Keywords

步骤条

FAQs

Package last updated on 28 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts