1.1.3 • Published 6 years ago

tab-slider v1.1.3

Weekly downloads
69
License
-
Repository
-
Last release
6 years ago

tab-slider

npm

A Vue component that can switch tabs by swiping the screen to the left or right

Install

npm install tab-slider -S

Usage

  1. in main.js
import TabSlider from 'tab-slider'
import 'tab-slider/dist/index.css'
Vue.use(TabSlider)
  1. in .Vue file

    note that you still need import the css file in main.js

import TabSlider from 'tab-slider'
export default {
  components: {
    TabSlider
  }
}

API

AttributeDescriptionTypeexample
comp(required)A array contains all router componentsArray{name: 'comp1', component: foo}, {name: 'comp2', component: bar}
defalut-index(optional)index of default component to dispaly, default to 0Number1

note the name attribute in comp must same as the name in route,that is,you must identify a route with a name,see Named Routes or you can pass the path attribute to it.

中文版本:

属性描述类型例子
comp(必需)包含所有路由组件的数组Array{name: 'comp1', component: foo}, {name: 'comp2', component: bar}
defalut-index(可选)默认要跳转的路由索引,从0开始Number1

comp属性中的name属性的值必须和路由name属性的值相同,也就是说,你必须给你的路由组件命名。相关信息命名路由,或者你也可以传path参数进去。

no tab

因为tab样式可能是多种多样的。所以不做tab,只关注slider部分。

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago