0.0.4 • Published 7 years ago

vue-slide-nav v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

vue-slide-nav

QuickStart

require('vue-slide-nav/dist/vue-slide-nav.css');

// in ES6 modules
import { slideNav } from 'vue-slide-nav';

// in CommonJS
const { slideNav } = require('vue-slide-nav');

// in Global variable
const { slideNav } = VueSlideNav;

Vue.component('c-slide-nav',slideNav);
<!-- in vue template -->
<!--list:[
    {text:'bing'},
    {text:'sougou搜索'},
    {text:'360',callback:funcion(){}},
    {text:'百度一下'}
]-->
<c-slide-nav :items="list" back-class="backLine"></c-slide-nav>

Params

  • items: a list contains {text:'',link:''} object,text respents item's text,if callback,it will be call after click
  • offset: the back item's left and right padding to normal item
  • backClass: the back item's class, defalut is backBar, other build-in class is backLine

Preview

slide nav image

0.0.4

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago