<template>
<div class="right-list-toobar">
  <el-tabs v-model="activeName" @tab-click="handleClick">
    <el-tab-pane label="内容统计" name="contentCount">
      <content-count :active-name="activeName"></content-count>
    </el-tab-pane>
    <el-tab-pane label="内容统计" name="pushCount">
      <push-count :active-name="activeName"></push-count>
    </el-tab-pane>
  </el-tabs>
</div>
</template>
<script>
import PushCountStat from '../components/PushCountStat.vue'
import ContentCountStat from '../components/ContentCountStat.vue'
export default {
  components: {
    'push-count': PushCountStat,
    'content-count': ContentCountStat
  },
  data() {
    return {
      activeName: 'contentCount'// 选中菜单名称
    }
  },
  mounted() {},
  methods: {
    handleClick(tab, event) {
      this.activeName = tab.name
    }
  }
}
</script>
