Skip to content

shellhong6/vue-tabs

Repository files navigation

Vue-Tabs

一个基于vue2.x的移动端tabs切换组件

demo

Build Setup

构建基于vue-cli

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

组件使用实例

  • list: 页签头相关的数据列表
  • slider-w: 页签头滑动条的宽度,默认为100px
<template>
  <div id="app">
    <VueTabs :list='list' slider-w='80'>
      <li>
        111111<br>
        111111<br>
        111111<br>
        111111<br>
        111111<br>
        111111<br>
        111111<br>
        111111<br>
      </li>
      <li>
        222222<br>
        222222<br>
        222222<br>
        222222<br>
        222222<br>
        222222<br>
        222222<br>
        222222<br>
      </li>
      <li>
        333333<br>
        333333<br>
        333333<br>
        333333<br>
        333333<br>
        333333<br>
        333333<br>
        333333<br>
      </li>
    </VueTabs>
  </div>
</template>

<script>
import VueTabs from './components/Vue-Tabs'

export default {
  name: 'app',
  data () {
    return {
      list: ['全部', '收入', '支出']
    }
  },
  components: {
    VueTabs
  }
}
</script>

About

个基于vue2.x的移动端tabs切换组件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published