<template>
  <div class='tuitui-tab'>
    <BKTab :tabList="tabList" :tabChange="tabChange"></BKTab>
  </div>
</template>
<script>
import BKTab from '@/components/BKTab'

export default {
  components: {
    BKTab
  },
  data () {
    return {
      tabList: ['处理中', '已结束', '开始']
    }
  },
  mounted () {
    wx.setNavigationBarTitle({
      title: 'BKTab 标签页'
    })
  },
  methods: {
    tabChange (item, index) {
      console.log(item, index)
    }
  }
}
</script>
<style scoped>
.tuitui-tab {
  overflow-x: hidden;
  background: #f8f8f8;
  min-width: 100vw;
  min-height: 100vh;
  box-sizing: border-box;
}
.title {
  font-size: 26px;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 20px;
  margin-top: 40px;
}
</style>
