<template>
  <div class="bottom-tabs">
    <div class="btns">
      <div v-for="(btn, i) in btns" :key="i">
        <m-count :style="`font-size:1.6rem;color:${colors[i]};`" :value="btn.count" :decimal="0"/>
        <p>{{btn.name}}</p>
      </div>
      <!-- <div class="btn" @click="$emit('click')">
        <m-count style="font-size:1.6rem;color:#00f2ff;" :value="24" :decimal="0"/>
        <p>管理要素明细</p>
      </div> -->
    </div>
    <img class="bar" :src="require(`@/assets/images/tab-bar.png`)">
  </div>
</template>

<script>
export default {
  name: 'BottomTabs',
  data() {
    return {
      btns: [
        {name: '任务总数', count: 7},
        {name: '自治处置', count: 2},
        {name: '联合处置', count: 2},
        {name: '协同处置', count: 1},
        {name: '处置完成', count: 2},
      ],
      colors: ['#00f2ff', 'gold', 'gold', 'gold', '#00f2ff'],
    }
  },
}
</script>

<style lang="stylus" scoped>
.bottom-tabs
  width 40%
  position fixed
  bottom 23%
  left 0
  right 0
  margin 0 auto
  font-weight bold
  .btns
    display flex
    justify-content space-around
    padding 0 1rem
    >div
      text-align center
      &.btn
        cursor pointer
        &:hover
          color $edgeColor
  .bar
    width 100%
    height 1.2rem
</style>
